Rendering context. More...
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< PixelFormat > | QueryPixelFormats (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< RenderState > | ActiveShaderStates [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. |
Rendering context.
Derm.Render.RenderContext.RenderContext | ( | IntPtr | devctx | ) |
RenderContext constructor.
Device context associated to this RenderContext.
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.
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.
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.
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.
rDevice | A IntPtr representing the device context which defined the available pixel formats. |
static void Derm.Render.RenderContext.RequiresGLSLVersion | ( | GLSLVersion | glslVersion | ) | [static] |
Requires a specific OpenGL Shading Language implementation.
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.
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.
IEnumerable<RenderState> Derm.Render.RenderContext.ActiveShaderStates [get] |
Currently active render states.
Capabilities Derm.Render.RenderContext.Caps [static, get] |
Get rendering context capabilities.
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.