text: /*
   *
   *      File            XMGSphereImpl.h
   *      Description     Sphere implemation 
   *      Version         0.20.0801, 2011-08-01
   *      Author          Y.H Mun
   * 
   * --------------------------------------------------------------------------
   *      
   *      Copyright (C) 2010-2011 XMSoft. All rights reserved.
   * 
   *      Contact Email: chris@xmsoft.co.kr 
   *                     xmsoft77@gmail.com	
   * 
   * 
   *      This library is free software; you can redistribute it and/or
   *      modify it under the terms of the GNU Lesser General Public
   *      License as published by the Free Software Foundation; either
   *      version 2 of the License, or (at your option) any later version.
   * 
   *      This library is distributed in the hope that it will be useful,
   *      but WITHOUT ANY WARRANTY; without even the implied warranty of
   *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   *      Lesser General Public License for more details.
   * 
   *      You should have received a copy of the GNU Lesser General Public
   *      License along with this library in the file COPYING.LIB;
   *      if not, write to the Free Software Foundation, Inc.,
   *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
   *
   */
  
  #ifndef __XMGSphereImpl_h__
  #define __XMGSphereImpl_h__
  
  class XMGSphereImpl
  {	
  	friend class XMGSphere;
  
  	private :
  
  		 XMGSphereImpl ( GLsizei slices, GLsizei stacks );
  		~XMGSphereImpl ( void );	
  
  	public :
  
  		static	void	MakeVertexArray ( XMGVector3F* arr, const XMGVector3F& pos, GLfloat rad, GLsizei stack, GLsizei slice );
  		static	void	MakeVertexArray ( XMGVector3X* arr, const XMGVector3X& pos, GLfixed rad, GLsizei stack, GLsizei slice );
  
  		static	void	MakeCoordArray ( XMGVector2F* arr, const XMGRectF& off, const XMGTexture* texture, GLsizei stack, GLsizei slice );
  		static	void	MakeCoordArray ( XMGVector2X* arr, const XMGRectX& off, const XMGTexture* texture, GLsizei stack, GLsizei slice );
  
  	private :
  
  		GLsizei		m_stacks;
  		GLsizei		m_slices;
  };
  
  #endif 
  