Tesla Graphics Engine Documentation (January 2012)
D3D10Renderer Class
TeslaTesla.Direct3D10.GraphicsD3D10Renderer
Direct3D10 implementation of BaseRenderer.
Declaration Syntax
C#
public class D3D10Renderer : BaseRenderer
Members
All Members Methods Properties Events



Icon Member Description
Adapter
Gets the graphics adapter that was used to create the renderer.
(Overrides BaseRenderer.Adapter.)
ApplyConcreteState(RenderState)
Method for applying the actual platform-specific render state onto the device.
(Overrides BaseRenderer.ApplyConcreteState(RenderState).)
ApplyRenderState(RenderStateType, RenderState)
Applies the render state to the device. If the state is null, then the default state for its type is used instead. If the renderer is enforcing a state for the specified state type, that is used instead. If the state to be applied already is present in the cache, the renderer returns, preventing redundant state switching. It is important to let the renderer take care of state management, and not to set states directly in your shader program, in your effect pass. Otherwise, the render states may be inconsistent to what is present in the cache.
(Inherited from BaseRenderer.)
BlendFactor
Gets or sets the blend factor which is a constant color used for alpha blending. Default is Color.White. This is a "high frequency" render state, and setting a BlendState to the renderer will override this value.
(Overrides BaseRenderer.BlendFactor.)
BlendState
Gets or sets the BlendState currently active on the device and in the cache. Default is BlendState.Opaque. This is equivalent to using the Get/ApplyRenderState methods.
(Inherited from BaseRenderer.)
Clear(ClearOptions, Color, Single, Int32)
Clears all bounded render targets.
(Overrides BaseRenderer.Clear(ClearOptions, Color, Single, Int32).)
Clear(Color)
Clears all bounded render targets.
(Inherited from BaseRenderer.)
ClearEnforcedState(RenderStateType)
Clears the specific render state from the renderer.
(Inherited from BaseRenderer.)
ClearEnforcedStates()()()()
Clears all enforced states from the renderer.
(Inherited from BaseRenderer.)
ClearRenderState(RenderStateType)
Clears the state of the render.
(Inherited from BaseRenderer.)
ClearRenderStates()()()()
Clears the renderer's render states, setting all state objects to their default values.
(Inherited from BaseRenderer.)
CurrentCamera
Gets or sets the current camera. A camera owns a viewport and is used to perform culling.
(Inherited from BaseRenderer.)
DepthStencilState
Gets or sets the DepthStencilState currently active on the device and in the cache. Default is DepthStencilState.Default. This is equivalent to using the Get/ApplyRenderState methods.
(Inherited from BaseRenderer.)
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Overrides BaseRenderer.Dispose(Boolean).)
Dispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from BaseRenderer.)
Disposing
Event for when the renderer is in the process of disposing itself, where it will clean up all resources.
(Inherited from BaseRenderer.)
Draw(PrimitiveType, Int32, Int32)
Draws non-indexed geometry.
(Overrides BaseRenderer.Draw(PrimitiveType, Int32, Int32).)
DrawIndexed(PrimitiveType, Int32, Int32, Int32)
Draws indexed geometry.
(Overrides BaseRenderer.DrawIndexed(PrimitiveType, Int32, Int32, Int32).)
DrawIndexedInstanced(PrimitiveType, Int32, Int32, Int32, Int32)
Draws indexed, instanced geometry.
(Overrides BaseRenderer.DrawIndexedInstanced(PrimitiveType, Int32, Int32, Int32, Int32).)
EnforcedBlendState
Gets or sets the enforced BlendState, this will override the cached BlendState when ApplyRenderState() is called. This is equivalent to using the Get/SetEnforcedState methods.
(Inherited from BaseRenderer.)
EnforcedDepthStencilState
Gets or sets the enforced DepthStencilState, this will override the cached DepthStencilState when ApplyRenderState() is called. This is equivalent to using the Get/SetEnforcedState methods.
(Inherited from BaseRenderer.)
EnforcedMaterial
Gets or sets the enforced material. This may or may not be ignored when the IRenderable's Render() method is called. If this is not null, it lets the renderable know what material to use instead of its default material. Set this value to null for default behavior.
(Inherited from BaseRenderer.)
EnforcedRasterizerState
Gets or sets the enforced RasterizerState, this will override the cached RasterizerState when ApplyRenderState() is called. This is equivalent to using the Get/SetEnforcedState methods.
(Inherited from BaseRenderer.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Releases unmanaged resources and performs other cleanup operations before the D3D10Renderer is reclaimed by garbage collection.
(Overrides BaseRenderer.Finalize()()()().)
GetEnforcedState(RenderStateType)
Returns the enforced state specified by its type, if it exists.
(Inherited from BaseRenderer.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetIndexBuffer()()()()
Gets the currently bound index buffer.
(Overrides BaseRenderer.GetIndexBuffer()()()().)
GetRenderState(RenderStateType)
Returns the current renderstate of the specified type that has been set to the device, and is present in the cache.
(Inherited from BaseRenderer.)
GetRenderTargets()()()()
Gets the currently bounded render targets.
(Overrides BaseRenderer.GetRenderTargets()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetVertexBuffers()()()()
Gets the currently bounded vertex buffers.
(Overrides BaseRenderer.GetVertexBuffers()()()().)
IsDisposed
Gets if the renderer has been disposed.
(Inherited from BaseRenderer.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MultiSampleMask
Gets or sets the bitmask which defines which samples can be written during multisampling. Default is -1 (0xffffffff). This is a "high frequency" render state, and setting a BlendState to the renderer will override this value.
(Overrides BaseRenderer.MultiSampleMask.)
OnDispose()()()()
Called when the renderer is disposing.
(Inherited from BaseRenderer.)
RasterizerState
Gets or sets the RasterizerState currently active on the device and in the cache. Default is RasterizerState.CullBackClockwiseFront. This is the equivalent to using the Get/ApplyRenderState methods.
(Inherited from BaseRenderer.)
ReferenceStencil
Gets or sets the reference value for stencil testing. Default is zero. This is a "high frequency" render state, and setting a BlendState to the renderer will override this value.
(Overrides BaseRenderer.ReferenceStencil.)
RenderQueue
Gets or sets the render queue that will be used to place renderables, sort them, and render them to the render target.
(Inherited from BaseRenderer.)
SamplerStates
Gets the sampler state collection for setting/getting sampler states used by the pixel shader.
(Overrides BaseRenderer.SamplerStates.)
ScissorRectangle
Gets or sets the rectangle used for scissor testing.
(Overrides BaseRenderer.ScissorRectangle.)
SetEnforcedState(RenderState)
Sets the enforced state that will override the incoming state in ApplyRenderState() method.
(Inherited from BaseRenderer.)
SetIndexBuffer(IndexBuffer)
Sets the index buffer.
(Overrides BaseRenderer.SetIndexBuffer(IndexBuffer).)
SetRenderTarget(RenderTarget2D)
Sets a 2D render target to the first render target slot and unbinds all currently bound targets. Setting this to null unbinds all targets and sets the target to the currently active swap chain's back buffer.
(Overrides BaseRenderer.SetRenderTarget(RenderTarget2D).)
SetRenderTarget(RenderTargetCube, CubeMapFace)
Sets a Cube render target, to the first render target slot and unbinds all currently bound targets. Setting this to null unbinds all targets and sets the target to the currently active swap chain's back buffer.
(Overrides BaseRenderer.SetRenderTarget(RenderTargetCube, CubeMapFace).)
SetRenderTargets(array<RenderTargetBinding>[]()[][])
Sets the array of render targets to the device and unbinds all currently bound targets. The first target in the array is bound to the first slot and so forth. The first render target's depth-stencil buffer is used for all targets.
(Overrides BaseRenderer.SetRenderTargets(array<RenderTargetBinding>[]()[][]).)
SetVertexBuffer(VertexBuffer)
Sets the vertex buffer to the first input slot onto the device.
(Overrides BaseRenderer.SetVertexBuffer(VertexBuffer).)
SetVertexBuffer(VertexBuffer, Int32)
Sets the vertex buffer to the first input slot onto the device
(Overrides BaseRenderer.SetVertexBuffer(VertexBuffer, Int32).)
SetVertexBuffers(array<VertexBufferBinding>[]()[][])
Sets an array of vertex buffers starting from the first input slot.
(Overrides BaseRenderer.SetVertexBuffers(array<VertexBufferBinding>[]()[][]).)
Textures
Gets the texture collection for setting/getting textures used by the pixel shader.
(Overrides BaseRenderer.Textures.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
VertexSamplerStates
Gets the sampler state collection for setting/getting sampler states used by the vertex shader.
(Overrides BaseRenderer.VertexSamplerStates.)
VertexTextures
Gets the texture collection for setting/getting textures used by the vertex shader.
(Overrides BaseRenderer.VertexTextures.)
Viewport
Gets or sets the viewport which identifies the portion of the render target which we will be rendering onto.
(Overrides BaseRenderer.Viewport.)
Inheritance Hierarchy
Object
BaseRenderer
  D3D10Renderer

Assembly: Tesla.Direct3D10 (Module: Tesla.Direct3D10) Version: 0.5.0.0 (0.5.0.0)