00001
00025 #ifndef _CTEXTUREABLE_H_
00026 #define _CTEXTUREABLE_H_
00027
00028 #include "main.h"
00029
00030 class CTextureable {
00031 public:
00032 CTextureable();
00033 ~CTextureable();
00034
00039 void setTextureId(int textureId) {
00040 m_textureId = textureId;
00041 }
00042 ;
00043
00048 int getTextureId() const {
00049 return m_textureId;
00050 }
00051 ;
00052
00057 bool isTextured() const {
00058 return m_textureId >= 0 ? true : false;
00059 }
00060 ;
00061
00066 bool isSetVertices() const {
00067 return m_texCoord == NULL ? false : true;
00068 }
00069 ;
00070
00075 GLfloat *getVertices() const {
00076 return m_texCoord;
00077 }
00078 ;
00079
00085 void setVertices(GLfloat* vertices, int count);
00086
00090 void clean();
00091
00096 void init(int count);
00097
00098 protected:
00099 int m_textureId;
00100 GLfloat* m_texCoord;
00101 int m_countVertices;
00102
00103 };
00104
00105 #endif