00001 00012 /*************************************************************************** 00013 * Copyright (C) 2007 by Jan Koci * 00014 * honza.koci@email.cz * 00015 * http://kengine.sourceforge.net/tutorial/ 00016 * * 00017 * This program is free software; you can redistribute it and/or modify * 00018 * it under the terms of the GNU General Public License as published by * 00019 * the Free Software Foundation; either version 2 of the License, or * 00020 * (at your option) any later version. * 00021 * * 00022 * This program is distributed in the hope that it will be useful, * 00023 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00024 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00025 * GNU General Public License for more details. * 00026 * * 00027 * You should have received a copy of the GNU General Public License * 00028 * along with this program; if not, write to the * 00029 * Free Software Foundation, Inc., * 00030 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00031 ***************************************************************************/ 00032 00033 #pragma once 00034 00035 #include "K3dSphere.h" 00036 #include "../GLRenderer/K3dColor3.h" 00037 00038 class K3dSphereVis: public K3dSphere 00039 { 00040 K3dColor3 *m_pColor; 00041 int m_iNumSlices; 00042 int m_iNumStacks; 00043 int m_iTextureId; 00044 public: 00045 00046 K3dSphereVis(); 00047 ~K3dSphereVis(); 00048 00050 int &GetTextureId() 00051 { 00052 return m_iTextureId; 00053 } 00054 00056 K3dColor3 *GetColor() 00057 { 00058 return m_pColor; 00059 } 00060 00062 void SetColor ( K3dColor3 *_pColor ) 00063 { 00064 m_pColor = _pColor; 00065 } 00066 00068 int &GetNumSlices() 00069 { 00070 return m_iNumSlices; 00071 } 00072 00074 int &GetNumStacks() 00075 { 00076 return m_iNumStacks; 00077 } 00078 }; 00079