Derm.Render.RenderContext Class Reference

Rendering context. More...

List of all members.

Classes

class  Capabilities
 OpenGL implementation capabilities. More...
struct  PixelFormat
 Pixel format description. More...

Public Types

enum  GLSLVersion {
  Version_1_2,
  Version_1_3,
  Version_1_4,
  Version_1_5,
  Current
}
 

Supported OpenGL Shading Language implementations.

More...
enum  GLVersion {
  Version_2_1 = 0,
  Version_3_0,
  Version_3_1,
  Version_3_2,
  Current
}
 

Supported OpenGL implementations.

More...

Public Member Functions

 RenderContext (IntPtr devctx, RenderContext hSharedContext)
 RenderContext constructor.
 RenderContext (IntPtr devctx)
 RenderContext constructor.
void Dispose ()
 Release RenderContext resources.
void Flush ()
 Flush RenderContext commands.
bool IsCurrent ()
 Determine whether rendering context is current to the calling thread.
void PopModel ()
 Replace current model matrices with the previously pushed one.
void PopProjection ()
 Replace current projection matrices with the previously pushed one.
void PopRenderState ()
 Restore previously pushed render states.
void PushModel ()
 Push current model onto the relative stack.
void PushProjection ()
 Push current projection onto the relative stack.
void PushRenderStates (Dictionary< string, RenderState > rStates)
 Inherith render states.

Static Public Member Functions

static List< PixelFormatQueryPixelFormats (IntPtr rDevice)
 Query available pixel format of a device.
static void RequiresGLSLVersion (GLSLVersion glslVersion)
 Requires a specific OpenGL Shading Language implementation.
static void RequiresGLVersion (GLVersion glVersion)
 Requires a specific OpenGL implementation.

Public Attributes

LightManager LightsContext

Properties

IEnumerable< RenderStateActiveShaderStates [get]
 Currently active render states.
static Capabilities Caps [get]
 Get rendering context capabilities.
ModelMatrix Model [get, set]
 Model matrix.
Matrix4x4 ModelInverse [get]
 Model inverse matrix.
ProjectionMatrix Projection [get, set]
 Projection matrix.
Matrix4x4 ProjectionInverse [get]
 Projection inverse matrix.

Detailed Description

Rendering context.


Member Enumeration Documentation

Supported OpenGL Shading Language implementations.

Enumerator:
Version_1_2 

OpenGL Shading Language 1.2.0.

Version_1_3 

OpenGL Shading Language 1.3.0.

Version_1_4 

OpenGL Shading Language 1.4.0.

Version_1_5 

OpenGL Shading Language 1.5.0.

Current 

Current OpenGL Shading Language implementation.

Supported OpenGL implementations.

Enumerator:
Version_2_1 

OpenGL 2.1.

Version_3_0 

OpenGL 3.0.

Version_3_1 

OpenGL 3.1.

Version_3_2 

OpenGL 3.2.

Current 

Current OpenGL implementation.


Constructor & Destructor Documentation

Derm.Render.RenderContext.RenderContext ( IntPtr  devctx  ) 

RenderContext constructor.

Device context associated to this RenderContext.

Parameters:
devctx A IntPtr specifying the device context which has to be linked this this Render context.
Derm.Render.RenderContext.RenderContext ( IntPtr  devctx,
RenderContext  hSharedContext 
)

RenderContext constructor.

Device context associated to this RenderContext.

Parameters:
devctx A IntPtr specifying the device context which has to be linked this this Render context.
hSharedContext A IntPtr specifying the render context which has to be linked this this Render context (to share resource with it).

Member Function Documentation

void Derm.Render.RenderContext.Dispose (  ) 

Release RenderContext resources.

void Derm.Render.RenderContext.Flush (  ) 

Flush RenderContext commands.

bool Derm.Render.RenderContext.IsCurrent (  ) 

Determine whether rendering context is current to the calling thread.

Returns:
It returns true if the render context is current, otherwise it returns false.
void Derm.Render.RenderContext.PopModel (  ) 

Replace current model matrices with the previously pushed one.

void Derm.Render.RenderContext.PopProjection (  ) 

Replace current projection matrices with the previously pushed one.

void Derm.Render.RenderContext.PopRenderState (  ) 

Restore previously pushed render states.

void Derm.Render.RenderContext.PushModel (  ) 

Push current model onto the relative stack.

void Derm.Render.RenderContext.PushProjection (  ) 

Push current projection onto the relative stack.

void Derm.Render.RenderContext.PushRenderStates ( Dictionary< string, RenderState rStates  ) 

Inherith render states.

Parameters:
rStates A Dictionary<string, RenderState> specifying the current render state.
static List<PixelFormat> Derm.Render.RenderContext.QueryPixelFormats ( IntPtr  rDevice  )  [static]

Query available pixel format of a device.

Parameters:
rDevice A IntPtr representing the device context which defined the available pixel formats.
Returns:
static void Derm.Render.RenderContext.RequiresGLSLVersion ( GLSLVersion  glslVersion  )  [static]

Requires a specific OpenGL Shading Language implementation.

Parameters:
glslVersion A GLSLVersion which shall be the requested one when creating ShaderProgram instances.

This routine doesn't modify the required OpenGL version requested with RequiresGLVersion.

static void Derm.Render.RenderContext.RequiresGLVersion ( GLVersion  glVersion  )  [static]

Requires a specific OpenGL implementation.

Parameters:
glVersion A GLVersion which shall be the requested one when creating RenderContext instances.

This routine overrides the required OpenGL shading language version requested with RequiresGLSLVersion.


Member Data Documentation


Property Documentation

IEnumerable<RenderState> Derm.Render.RenderContext.ActiveShaderStates [get]

Currently active render states.

Capabilities Derm.Render.RenderContext.Caps [static, get]

Get rendering context capabilities.

Returns:
A Capabilities which specify all available OpenGL implementation features and limits.
ModelMatrix Derm.Render.RenderContext.Model [get, set]

Model matrix.

This property allow access to the current model view matrix. In the 'get' case the ModelMatrix is returned as is; in the 'set' case the current ModelMatrix is replaced with the supplied value.

Note that replacement doesn't concatenate successive transformations. Use the multiplication between the current model matrix and the local model matrix.

Matrix4x4 Derm.Render.RenderContext.ModelInverse [get]

Model inverse matrix.

This property is read-only. The value is cached untill a new Model value is set.

ProjectionMatrix Derm.Render.RenderContext.Projection [get, set]

Projection matrix.

Matrix4x4 Derm.Render.RenderContext.ProjectionInverse [get]

Projection inverse matrix.

This property is read-only. The value is cached untill a new Projection value is set.



Services powered by Get Deus Ex Render Machina at SourceForge.net. Fast, secure and Free Open Source software downloads