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

implementation of a MbsViewPointRenderer using OpenGL to render directly to the screen More...

#include <OglViewPointRenderer.hh>

Inheritance diagram for OglViewPointRenderer:
MbsViewPointRenderer OglOffscreenVpRenderer

Public Member Functions

 OglViewPointRenderer (MbsWorld3D *w3d, GLenum format=GL_RGB)
 
 ~OglViewPointRenderer ()
 
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...
 

Detailed Description

implementation of a MbsViewPointRenderer using OpenGL to render directly to the screen

Constructor & Destructor Documentation

◆ OglViewPointRenderer()

OglViewPointRenderer ( MbsWorld3D *  w3d,
GLenum  format = GL_RGB 
)

◆ ~OglViewPointRenderer()

Member Function Documentation

◆ GetHeight()

int GetHeight ( )
virtual

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.

Implements MbsViewPointRenderer.

Reimplemented in OglOffscreenVpRenderer.

◆ GetViewpoint()

MbsViewPoint * GetViewpoint ( )
virtual

Reimplemented in OglOffscreenVpRenderer.

◆ GetWidth()

int GetWidth ( )
virtual

Implements MbsViewPointRenderer.

◆ Render()

void Render ( )
virtual

Render the current viewpoint renderer.

Implements MbsViewPointRenderer.

Reimplemented in OglOffscreenVpRenderer.

Member Data Documentation

◆ format

GLenum format
protected

format to store the pixels

◆ world_3d

MbsWorld3D* world_3d
protected

3D world


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