Robotran C Documentation
Public Member Functions | Protected Attributes | Private Attributes | List of all members
OglOffscreenVpRenderer Class Reference

implementation of a MbsViewPointRenderer using OpenGL to render offscreen. It re-uses code of OglViewPointRenderer More...

#include <OglOffscreenVpRenderer.hh>

Inheritance diagram for OglOffscreenVpRenderer:
OglViewPointRenderer MbsViewPointRenderer

Public Member Functions

 OglOffscreenVpRenderer (MbsWorld3D *w3d, MbsViewPoint *vp, GLenum format=GL_RGB, bool multisample_enable=false)
 
 ~OglOffscreenVpRenderer ()
 
virtual void Render ()
 Render the current viewpoint renderer. More...
 
virtual void GetImagePixels (unsigned char *image, int width, int height)
 Copy the image data associated to this renderer in the given image buffer. More...
 
virtual MbsViewPoint * GetViewpoint ()
 
virtual int GetWidth ()
 
virtual int GetHeight ()
 

Protected Attributes

MbsWorld3D * world_3d
 3D world More...
 
GLenum format
 format to store the pixels More...
 

Private Attributes

GLuint frame_buf
 
GLuint render_buf
 
GLuint depth_buf
 
GLuint multisample_frame_buf
 
GLuint multisample_render_buf
 
bool multisample_enable
 
int multisample_nb
 
GLuint width
 
GLuint height
 
MbsViewPoint * viewpoint
 

Detailed Description

implementation of a MbsViewPointRenderer using OpenGL to render offscreen. It re-uses code of OglViewPointRenderer

Constructor & Destructor Documentation

◆ OglOffscreenVpRenderer()

OglOffscreenVpRenderer ( MbsWorld3D *  w3d,
MbsViewPoint *  vp,
GLenum  format = GL_RGB,
bool  multisample_enable = false 
)

◆ ~OglOffscreenVpRenderer()

Member Function Documentation

◆ GetHeight()

int GetHeight ( )
virtualinherited

Implements MbsViewPointRenderer.

◆ GetImagePixels()

void GetImagePixels ( unsigned char *  image,
int  width,
int  height 
)
virtual

Copy the image data associated to this renderer in the given image buffer.

Reimplemented from OglViewPointRenderer.

◆ GetViewpoint()

MbsViewPoint * GetViewpoint ( )
virtual

Reimplemented from OglViewPointRenderer.

◆ GetWidth()

int GetWidth ( )
virtualinherited

Implements MbsViewPointRenderer.

◆ Render()

void Render ( )
virtual

Render the current viewpoint renderer.

Reimplemented from OglViewPointRenderer.

Member Data Documentation

◆ depth_buf

GLuint depth_buf
private

◆ format

GLenum format
protectedinherited

format to store the pixels

◆ frame_buf

GLuint frame_buf
private

◆ height

GLuint height
private

◆ multisample_enable

bool multisample_enable
private

◆ multisample_frame_buf

GLuint multisample_frame_buf
private

◆ multisample_nb

int multisample_nb
private

◆ multisample_render_buf

GLuint multisample_render_buf
private

◆ render_buf

GLuint render_buf
private

◆ viewpoint

MbsViewPoint* viewpoint
private

◆ width

GLuint width
private

◆ world_3d

MbsWorld3D* world_3d
protectedinherited

3D world


The documentation for this class was generated from the following files: