Click or drag to resize

RenderContext Class

The render context contains all functions necessary to manipulate the underlying rendering hardware. Use this class' elements to render geometry to the RenderCanvas associated with this context. If you have worked with OpenGL or DirectX before you will find many similarities in this class' methods and properties.
Inheritance Hierarchy
SystemObject
  Fusee.Engine.CoreRenderContext

Namespace:  Fusee.Engine.Core
Assembly:  Fusee.Engine.Core (in Fusee.Engine.Core.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class RenderContext

The RenderContext type exposes the following members.

Constructors
  NameDescription
Public methodRenderContext
Initializes a new instance of the RenderContext class.
Top
Properties
  NameDescription
Public propertyBones
Public propertyClearColor
The color to use when clearing the color buffer.
Public propertyClearDepth
The depth value to use when clearing the color buffer.
Public propertyCurrentShader
Gets the current shader.
Public propertyDebugLinesEnabled
Gets or sets a value indicating whether [debug lines enabled].
Public propertyHasPickingContext
Public propertyInvModel
Gets the inverted Model matrix.
Public propertyInvModelView
The inverse of the ModelView matrix.
Public propertyInvModelViewProjection
The inverse of the ModelViewProjection matrix.
Public propertyInvProjection
The inverse of the Projection matrix.
Public propertyInvTransModel
The inverse transpose of the Model matrix.
Public propertyInvTransModelView
The inverse transpose of the ModelView matrix.
Public propertyInvTransModelViewProjection
The inverse transpose of the ModelViewProjection matrix.
Public propertyInvTransProjection
The inverse transpose of the Projection matrix.
Public propertyInvTransView
The inverse transpose of the View matrix.
Public propertyInvView
Gets the inverted View matrix.
Public propertyModel
The Model matrix used by the rendering pipeline.
Public propertyModelView
The ModelView matrix used by the rendering pipeline.
Public propertyModelViewProjection
The combination of the ModelView and Projection matrices.
Public propertyProjection
The projection matrix used by the rendering pipeline
Public propertyTransModel
The transpose of the Model matrix.
Public propertyTransModelView
The transpose of the ModelView matrix.
Public propertyTransModelViewProjection
The transpose of the ModelViewProjection matrix.
Public propertyTransProjection
The transpose of the Projection matrix.
Public propertyTransView
The transpose of the View matrix.
Public propertyView
The View matrix used by the rendering pipeline.
Public propertyViewportHeight
Public propertyViewportWidth
Top
Methods
  NameDescription
Public methodClear
Erases the contents of the speciefied rendering buffers.
Public methodColorMask
Enable or disable Color channels to be written to the frame buffer (final image). Use this function as a color channel filter for the final image.
Public methodCopyDepthBufferFromDeferredBuffer
Public methodCreateTexture
Creates a new texture and binds it to the shader.
Public methodCreateWritableTexture
Creates a new writable texture and binds it to the shader. This is done by creating a framebuffer and a renderbuffer (if needed). All bufferhandles are returned with the texture. For binding this texture call SetRenderTarget(Texture)SetRenderTarget The format of writable texture (e.g. Depthbuffer, G-Buffer, ...)
Public methodDebugLine
Draws a Debug Line in 3D Space by using a start and end point (float3).
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBufferContent
Gets the content of the buffer and passes it to the IRenderCanvasImp.
Public methodGetHardwareCapabilities
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetParamValue
Gets the value of a shader parameter.
Public methodGetPixelColor
This method returns the color of one or more pixels from the backbuffer.
Public methodGetPixelDepth
This method returns depth value from the depthbuffer at a given coordinate.
Public methodGetRenderState
Public methodGetShaderParam
Returns an identifiyer for the named (uniform) parameter used in the specified shader program.
Public methodGetShaderParamList
Get a list of (uniform) shader parameters accessed by the given shader.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRender
Renders the specified mesh.
Public methodSetCubeMapRenderTarget
Sets the RenderTarget, if texture is null rendertarget is the main screen, otherwise the picture will be rendered onto given texture
Public methodSetFXParam
Sets global FX Params Overwrites values with the same name in current ShaderEffect
Public methodSetRenderState(RenderStateSet)
Apply a number of render states to this render context. All subsequent rendering will be performed using the currently set state set unless one of its values it is changed. Use this method to change more than one render state at once.
Public methodSetRenderState(RenderState, UInt32)
Apply a single render state to the render context. All subsequent rendering will be performed using the currently set state unless it is changed to a different value.
Public methodSetRenderTarget
Sets the RenderTarget, if texture is null rendertarget is the main screen, otherwise the picture will be rendered onto given texture
Public methodSetShaderEffect
Activates the passed shader effect as the current shader for geometry rendering.
Public methodSetShaderParam(IShaderParam, float2)
Sets the shader parameter to a float2 value.
Public methodSetShaderParam(IShaderParam, float3)
Sets the shader parameter to a float3 value.
Public methodSetShaderParam(IShaderParam, float4)
Sets the shader parameter to a float4 value.
Public methodSetShaderParam(IShaderParam, float4)
Sets the shader parameter to a float4 array.
Public methodSetShaderParam(IShaderParam, float4x4)
Sets the shader parameter to a float4x4 matrix value.
Public methodSetShaderParam(IShaderParam, float4x4)
Sets the shader parameter to a float4x4 matrix array.
Public methodSetShaderParam(IShaderParam, Int32)
Sets the shader parameter to a integer value.
Public methodSetShaderParam(IShaderParam, Single)
Sets the specified shader parameter to a float value.
Public methodSetShaderParamTexture(IShaderParam, Texture)
Sets a Shader Parameter to a created texture.
Public methodSetShaderParamTexture(IShaderParam, ITextureHandle, GBufferHandle)
Sets a Shader Parameter to a created texture.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateTextureFromVideoStream
Copies the current frame image from a IVideoStreamImp into the given Texture.
Public methodUpdateTextureRegion
Updates a rectangular region of a given Texture (dstTexture) by copying a rectangular block from another texture (srcTexture).
Public methodViewport
Sets the rectangular output region within the output buffer(s).
Top
Fields
  NameDescription
Public field_allFXParams
All global FX Params Overwrites values with the same name in current ShaderEffect
Protected field_col
Top
See Also