Gazebo logo

GLContext Class Reference

Class for managing GL contexts. More...

#include <GLContext.hh>

List of all members.

Public Member Functions

 GLContext ()
 Constructor.
virtual ~GLContext ()
 Destructor.
int Init (int width, int height, int color, int alpha, int depth, const char *method, GLXContext shareList=NULL)
 Initialize the context, based on the requested properties.
void Fini ()
 Finialize the context.
GLXContext GetContext ()
 Get the rendering context.
int GetContextIndex ()
 Get the display list index.
int MakeCurrent ()
 Make this the current rendering context.


Detailed Description

Class for managing GL contexts.

Used by OpenGL-based camera sensors to create GL contexts and display lists.


Constructor & Destructor Documentation

GLContext::GLContext  ) 
 

Constructor.

GLContext::~GLContext  )  [virtual]
 

Destructor.


Member Function Documentation

int GLContext::Init int  width,
int  height,
int  color,
int  alpha,
int  depth,
const char *  method,
GLXContext  shareList = NULL
 

Initialize the context, based on the requested properties.

Parameters:
width,height image dimensions (pixels)
color minimum bits for color buffers
alpha minimum bits for alpha buffer
depth minimum bits for z buffer
method Prefered rendering method: SGIX, GLX or XLIB.
shareList Context with which to share display lists.
Returns:
Returns zero on success, non-zero on errror

void GLContext::Fini  ) 
 

Finialize the context.

GLXContext GLContext::GetContext  )  [inline]
 

Get the rendering context.

int GLContext::GetContextIndex  )  [inline]
 

Get the display list index.

int GLContext::MakeCurrent  ) 
 

Make this the current rendering context.

Returns:
Returns 0 on success.


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

Last updated 12 September 2005 21:38:45