Go to the documentation of this file.
9 #ifndef opengl_CTexturedObject_H
10 #define opengl_CTexturedObject_H
virtual void render_texturedobj() const =0
Must be implemented by derived classes.
bool m_enableTransparency
Of the texture using "m_textureImageAlpha".
void assignImage(const mrpt::utils::CImage &img, const mrpt::utils::CImage &imgAlpha)
Assigns a texture and a transparency image, and enables transparency (If the images are not 2^N x 2^M...
mrpt::utils::CImage m_textureImage
mrpt::utils::CImage m_textureImageAlpha
void assignImage(const mrpt::utils::CImage &img)
Assigns a texture image, and disable transparency.
A renderizable object suitable for rendering with OpenGL's display lists.
virtual void render_dl() const MRPT_OVERRIDE
Derived classes must implement this method to the render the object.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A class for storing images as grayscale or RGB bitmaps.
virtual void render_pre() const
void readFromStreamTexturedObject(mrpt::utils::CStream &in)
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
virtual ~CTexturedObject()
int m_pad_y_bottom
The size of the fill in pixels in the textured image, w.r.t the image passed by the user.
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
A base class for all OpenGL objects with loadable textures.
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
virtual void render_post() const
void assignImage_fast(mrpt::utils::CImage &img)
Similar to assignImage, but the passed images will be returned as empty: it avoids making a copy of t...
void loadTextureInOpenGL() const
VERY IMPORTANT: If you use a multi-thread application, you MUST call this from the same thread that w...
unsigned int m_glTextureName
void assignImage_fast(mrpt::utils::CImage &img, mrpt::utils::CImage &imgAlpha)
Similar to assignImage, but the passed images will be returned as empty: it avoids making a copy of t...
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
void writeToStreamTexturedObject(mrpt::utils::CStream &out) const
Page generated by Doxygen 1.8.20 for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020 | | |