Go to the documentation of this file.
35 unsigned int width = 800,
unsigned int height = 600,
36 const bool skip_glut_window =
false);
62 void resize(
unsigned int width,
unsigned int height);
void setBackgroundColor(const mrpt::img::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.
CFBORender(unsigned int width=800, unsigned int height=600, const bool skip_glut_window=false)
Constructor.
This class allows the user to create, load, save, and render 3D scenes using OpenGL primitives.
const mrpt::img::TColorf & getBackgroundColor() const
Get the default background color (unles an COpenGLViewport defines a custom color)
void resize(unsigned int width, unsigned int height)
Resize the rendering canvas size.
void setCamera(const COpenGLScene &scene, const CCamera &camera)
Change the scene camera.
An RGBA color - floats in the range [0,1].
A camera: if added to a scene, the viewpoint defined by this camera will be used instead of the camer...
virtual ~CFBORender()
Destructor.
void getFrame(const COpenGLScene &scene, mrpt::img::CImage &image)
Render the scene and get the rendered rgb image.
A class for storing images as grayscale or RGB bitmaps.
void getFrame2(const COpenGLScene &scene, mrpt::img::CImage &image)
Render the scene and get the rendered rgb image.
mrpt::img::TColorf m_default_bk_color
A class for rendering 3D scenes off-screen directly into an image using OpenGL extensions (glext).
int isExtensionSupported(const char *extension)
Provide information on Framebuffer object extension.
The namespace for 3D scene representation and rendering.
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 15:15:43 UTC 2020 | |