Powertek.OpenGl.TaoGlContext Class Reference

Helper Class to create a OpenGl Context on a form or control. More...

List of all members.

Public Member Functions

 TaoGlContext ()
bool CreateContext (Form form)
bool CreateContext (Form form, int colorBits, int depthBits, int stencilBits)
bool CreateContext (Control control)
bool CreateSharedContext (TaoGlContext parentContext, Control control)
bool CreateContext (Control control, int colorBits, int depthBits, int stencilBits)
bool CreateContext (IntPtr handle, int colorBits, int depthBits, int stencilBits)
bool CreateSharedContext (IntPtr ParentContext, IntPtr handle, int colorBits, int depthBits, int stencilBits)
void MakeCurrent ()
void SwapBuffers ()
void ReleaseContext ()

Properties

IntPtr DeviceContext [get]
IntPtr RenderingContext [get]
int ColorBits [get]
int DepthBits [get]
int StencilBits [get]


Detailed Description


Constructor & Destructor Documentation

Powertek.OpenGl.TaoGlContext.TaoGlContext (  ) 


Member Function Documentation

bool Powertek.OpenGl.TaoGlContext.CreateContext ( IntPtr  handle,
int  colorBits,
int  depthBits,
int  stencilBits 
)

Create GL Context on the submitted handle.

Parameters:
handle 
colorBits 
depthBits 
stencilBits 
Returns:

bool Powertek.OpenGl.TaoGlContext.CreateContext ( Control  control,
int  colorBits,
int  depthBits,
int  stencilBits 
)

Creates a OpenGl Rendering Context on the Control.

Parameters:
control 
colorBits 
depthBits 
stencilBits 
Returns:

bool Powertek.OpenGl.TaoGlContext.CreateContext ( Control  control  ) 

Creates an OpenGl Rendering Context on the Control with 32 bit ColorDepth and a 16 bit DepthBuffer.

Parameters:
control 
Returns:

bool Powertek.OpenGl.TaoGlContext.CreateContext ( Form  form,
int  colorBits,
int  depthBits,
int  stencilBits 
)

Creates an OpenGl Rendering Context on the Form.

Parameters:
form 
colorBits 
depthBits 
stencilBits 
Returns:

bool Powertek.OpenGl.TaoGlContext.CreateContext ( Form  form  ) 

Creates an OpenGl Rendering Context on the Form with 32 bit ColorDepth and a 16 bit DepthBuffer.

Parameters:
form 
Returns:

bool Powertek.OpenGl.TaoGlContext.CreateSharedContext ( IntPtr  ParentContext,
IntPtr  handle,
int  colorBits,
int  depthBits,
int  stencilBits 
)

Create a Shared OpenGl Context.

Parameters:
ParentContext 
handle 
colorBits 
depthBits 
stencilBits 
Returns:

bool Powertek.OpenGl.TaoGlContext.CreateSharedContext ( TaoGlContext  parentContext,
Control  control 
)

Creates an Shared OpenGl Rendering Context on the Control with 32 bit ColorDepth and a 16 bit DepthBuffer.

Parameters:
parentContext 
control 
Returns:

void Powertek.OpenGl.TaoGlContext.MakeCurrent (  ) 

Activate this as current Context.

void Powertek.OpenGl.TaoGlContext.ReleaseContext (  ) 

Release OpenGL Ressources.

void Powertek.OpenGl.TaoGlContext.SwapBuffers (  ) 

Render OpenGL Screen.


Property Documentation

int Powertek.OpenGl.TaoGlContext.ColorBits [get]

Return number of ColorBits.

int Powertek.OpenGl.TaoGlContext.DepthBits [get]

Return number of Depth Bits.

IntPtr Powertek.OpenGl.TaoGlContext.DeviceContext [get]

Return OpenGL device Context.

IntPtr Powertek.OpenGl.TaoGlContext.RenderingContext [get]

Return OpenGL Rendering Context.

int Powertek.OpenGl.TaoGlContext.StencilBits [get]

Return number of stencil bits.


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

Generated on Thu Nov 20 04:46:33 2008 for Powertek.OpenGl, 2.0.6.64 by  doxygen 1.5.7.1