28 #ifndef opengl_CTexturedObject_H
29 #define opengl_CTexturedObject_H
53 mutable
unsigned int m_glTextureName;
54 mutable
bool m_texture_is_loaded;
55 mutable mrpt::utils::
CImage m_textureImage;
56 mutable mrpt::utils::
CImage m_textureImageAlpha;
57 mutable
bool m_enableTransparency;
58 mutable
int r_width,r_height;
59 mutable
int m_pad_x_right,m_pad_y_bottom;
65 virtual
void render_pre() const;
66 virtual
void render_post() const;
68 virtual
void render_texturedobj() const = 0;
70 void writeToStreamTexturedObject(mrpt::utils::
CStream &out) const;
71 void readFromStreamTexturedObject(mrpt::utils::
CStream &in);
78 const mrpt::utils::
CImage& img,
79 const mrpt::utils::
CImage& imgAlpha );
83 void assignImage(const mrpt::utils::
CImage& img );
86 void assignImage_fast(
88 mrpt::utils::
CImage& imgAlpha );
91 void assignImage_fast(mrpt::utils::
CImage& img );
96 void loadTextureInOpenGL() const;
98 virtual
void render_dl() const;