Tesla Graphics Engine Documentation (January 2012)
XNARenderer Class
TeslaTesla.Xna.GraphicsXNARenderer
Declaration Syntax
C#
public sealed class XNARenderer : BaseRenderer
Members
All Members Methods Properties Events



Icon Member Description
Adapter (Overrides BaseRenderer.Adapter.)
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 (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) (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()()()()
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) (Overrides BaseRenderer.Draw(PrimitiveType, Int32, Int32).)
DrawIndexed(PrimitiveType, Int32, Int32, Int32) (Overrides BaseRenderer.DrawIndexed(PrimitiveType, Int32, Int32, Int32).)
DrawIndexedInstanced(PrimitiveType, Int32, Int32, Int32, Int32) (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.)
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()()()() (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()()()() (Overrides BaseRenderer.GetRenderTargets()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetVertexBuffers()()()() (Overrides BaseRenderer.GetVertexBuffers()()()().)
GraphicsDevice
IsDisposed
Gets if the renderer has been disposed.
(Inherited from BaseRenderer.)
MultiSampleMask (Overrides BaseRenderer.MultiSampleMask.)
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 (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 (Overrides BaseRenderer.SamplerStates.)
ScissorRectangle (Overrides BaseRenderer.ScissorRectangle.)
SetEnforcedState(RenderState)
Sets the enforced state that will override the incoming state in ApplyRenderState() method.
(Inherited from BaseRenderer.)
SetIndexBuffer(IndexBuffer) (Overrides BaseRenderer.SetIndexBuffer(IndexBuffer).)
SetRenderTarget(RenderTarget2D) (Overrides BaseRenderer.SetRenderTarget(RenderTarget2D).)
SetRenderTarget(RenderTargetCube, CubeMapFace) (Overrides BaseRenderer.SetRenderTarget(RenderTargetCube, CubeMapFace).)
SetRenderTargets(array<RenderTargetBinding>[]()[][]) (Overrides BaseRenderer.SetRenderTargets(array<RenderTargetBinding>[]()[][]).)
SetVertexBuffer(VertexBuffer) (Overrides BaseRenderer.SetVertexBuffer(VertexBuffer).)
SetVertexBuffer(VertexBuffer, Int32) (Overrides BaseRenderer.SetVertexBuffer(VertexBuffer, Int32).)
SetVertexBuffers(array<VertexBufferBinding>[]()[][]) (Overrides BaseRenderer.SetVertexBuffers(array<VertexBufferBinding>[]()[][]).)
Textures (Overrides BaseRenderer.Textures.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
VertexSamplerStates (Overrides BaseRenderer.VertexSamplerStates.)
VertexTextures (Overrides BaseRenderer.VertexTextures.)
Viewport (Overrides BaseRenderer.Viewport.)
Inheritance Hierarchy
Object
BaseRenderer
  XNARenderer

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