Click or drag to resize

IRenderContextImp Interface

The render context interface 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 are worked with OpenGL or DirectX before you will find many similarities in this class' methods and properties.

Namespace:  Fusee.Engine.Common
Assembly:  Fusee.Engine.Common (in Fusee.Engine.Common.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public interface IRenderContextImp

The IRenderContextImp type exposes the following members.

Properties
  NameDescription
Public propertyClearColor
The color to use when clearing the color buffer.
Public propertyClearDepth
The depth value to use when clearing the color buffer.
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 methodCreateMeshImp
Creates the mesh implementation.
Public methodCreateShader
Creates a shader object from vertex shader source code and pixel shader source code.
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(ITextureHandle)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 methodGetBufferContent
Gets the content of the buffer.
Public methodGetHardwareCapabilities
Returns the capabilities of the underlying graphics hardware
Public methodGetParamValue
Gets the value of a shader parameter.
Public methodGetPixelColor
Retrieves a sub-image of the given region.
Public methodGetPixelDepth
Retrieves the Z-value at the given pixel position.
Public methodGetRenderState
Retrieves the value of the given render state.
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 methodRemoveBiTangents
Deletes the buffer associated with the mesh implementation.
Public methodRemoveBoneIndices
Deletes the buffer associated with the mesh implementation.
Public methodRemoveBoneWeights
Deletes the buffer associated with the mesh implementation.
Public methodRemoveColors
Deletes the buffer associated with the mesh implementation.
Public methodRemoveNormals
Deletes the buffer associated with the mesh implementation.
Public methodRemoveShader
Removes given shaderprogramm from GPU
Public methodRemoveTangents
Deletes the buffer associated with the mesh implementation.
Public methodRemoveTextureHandle
Removes the TextureHandle's buffers and textures from the graphics card's memory
Public methodRemoveTriangles
Deletes the buffer associated with the mesh implementation.
Public methodRemoveUVs
Deletes the buffer associated with the mesh implementation.
Public methodRemoveVertices
Deletes the buffer associated with the mesh implementation.
Public methodRender
Renders the specified mesh.
Public methodSetBiTangents
Binds the bitangents onto the GL Rendercontext and assigns an BiTangentBuffer index to the passed IMeshImp instance.
Public methodSetBoneIndices
Binds the boneindices onto the GL Rendercontext and assigns an ElementBuffer index to the passed IMeshImp instance.
Public methodSetBoneWeights
Binds the boneweights onto the GL Rendercontext and assigns an ElementBuffer index to the passed IMeshImp instance.
Public methodSetColors
Binds the colors onto the GL Rendercontext and assigns an ColorBuffer index to the passed IMeshImp instance.
Public methodSetCubeMapRenderTarget
Sets the RenderTarget, if texture is null rendertarget is the main screen, otherwise the picture will be rendered onto given texture
Public methodSetNormals
Binds the normals onto the GL Rendercontext and assigns an NormalBuffer index to the passed IMeshImp instance.
Public methodSetRenderState
Sets the specified render state to the given setting.
Public methodSetRenderTarget
Sets the RenderTarget, if texture is null rendertarget is the main screen, otherwise the picture will be rendered onto given texture
Public methodSetShader
Activates the passed shader program 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, ITextureHandle)
Sets a Shader Parameter to a created texture.
Public methodSetShaderParamTexture(IShaderParam, ITextureHandle, GBufferHandle)
Sets a Shader Parameter to a created texture.
Public methodSetTangents
Binds the tangents onto the GL Rendercontext and assigns an TangentBuffer index to the passed IMeshImp instance.
Public methodSetTriangles
Binds the triangles onto the GL Rendercontext and assigns an ElementBuffer index to the passed IMeshImp instance.
Public methodSetUVs
Binds the UV coordinates onto the GL Rendercontext and assigns an UVBuffer index to the passed IMeshImp instance.
Public methodSetVertices
Binds the vertices onto the GL Rendercontext and assigns an VertexBuffer index to the passed IMeshImp instance.
Public methodUpdateTextureFromVideoStream
Updates the texture from video the given video stream.
Public methodUpdateTextureRegion
Updates the given region of a texture with te passed image data.
Public methodViewport
Sets the rectangular output region within the output buffer(s).
Top
See Also