10 #ifndef opengl_CFBORender_H 11 #define opengl_CFBORender_H 39 unsigned int width = 800,
unsigned int height = 600,
40 const bool skip_glut_window =
false);
CFBORender(unsigned int width=800, unsigned int height=600, const bool skip_glut_window=false)
Constructor.
int isExtensionSupported(const char *extension)
Provide information on Framebuffer object extension.
A class for storing images as grayscale or RGB bitmaps.
Keeps a list of text messages which can be rendered to OpenGL contexts by graphic classes...
void getFrame2(const COpenGLScene &scene, mrpt::utils::CImage &image)
Render the scene and get the rendered rgb image.
GLenum GLsizei GLenum GLenum const GLvoid * image
mrpt::utils::TColorf m_default_bk_color
void setBackgroundColor(const mrpt::utils::TColorf &col)
Set the default background color (unles an COpenGLViewport defines a custom color) ...
CCamera & getCamera(const COpenGLScene &scene)
Get a reference to the scene camera.
virtual ~CFBORender()
Destructor.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void setCamera(const COpenGLScene &scene, const CCamera &camera)
Change the scene camera.
void resize(unsigned int width, unsigned int height)
Resize the rendering canvas size.
This class allows the user to create, load, save, and render 3D scenes using OpenGL primitives...
A RGB color - floats in the range [0,1].
const mrpt::utils::TColorf & getBackgroundColor() const
Get the default background color (unles an COpenGLViewport defines a custom color) ...
A camera: if added to a scene, the viewpoint defined by this camera will be used instead of the camer...
GLenum GLsizei GLsizei height
void getFrame(const COpenGLScene &scene, mrpt::utils::CImage &image)
Render the scene and get the rendered rgb image.
A class for rendering 3D scenes off-screen directly into an image using OpenGL extensions (glext)...