Tesla Graphics Engine Documentation (January 2012)
TransparentRenderBucket Class
TeslaTesla.GraphicsTransparentRenderBucket
Render bucket for transparent renderables. Transparent renderables are sorted back-to-front to achieve proper transparency. Transparent renderables with TransparencyType.OneSided are rendered as usual. If a renderable's TransparencyType is TwoSided the renderable is rendered in two passes. The first pass renders the back faces and the second pass renders the front faces. The render states enforced during these passes can be overriden and their defaults are described below. Renderables with a material that has more than one pass defines are rendered as usual, without any state enforcing, as they may not follow the above paradigm.
Declaration Syntax
C#
public sealed class TransparentRenderBucket : RenderBucket
Members
All Members Constructors Methods Properties



Icon Member Description
TransparentRenderBucket(IRenderer, IRenderBucketComparer)
Creates a new TransparentRenderBucket.

Add(IRenderable)
Adds a renderable to the bucket.
(Inherited from RenderBucket.)
BackPassDepthStencilState
Gets or sets the depth stencil state for rendering the back-faces of the geometry. Default is a state set to DepthWriteEnable = false. Setting this null sets the default state.

BackPassRasterizerState
Gets or sets the rasterizer state for rendering the back-faces of the geometry. Default is a state set to CullMode.Front and VertexWinding.CounterClockWise. Setting this null sets the default state.

BucketComparer
Gets the bucket comparer owned by this bucket.
(Inherited from RenderBucket.)
Clear()()()()
Clears all renderables from the bucket.
(Inherited from RenderBucket.)
Count
Gets the current number of renderables contained in the bucket.
(Inherited from RenderBucket.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
FrontPassRasterizerState
Gets or sets the rasterizer state for rendering the front-faces of the geometry. Default is a state with CullMode.Back and VertexWinding.CounterClockWise. Setting this null sets the default state.

GetEnumerator()()()()
Returns the render bucket's enumerator.
(Inherited from RenderBucket.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Item[([( Int32])])
Gets the renderable at the given index in the bucket.
(Inherited from RenderBucket.)
Remove(IRenderable)
Removes a renderable from the bucket.
(Inherited from RenderBucket.)
Render()()()()
Renders all renderables in the bucket.
(Overrides RenderBucket.Render()()()().)
Renderer
Gets the current renderer assigned to this render bucket.
(Inherited from RenderBucket.)
Sort()()()()
Sorts all renderables in the bucket.
(Inherited from RenderBucket.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
RenderBucket
  TransparentRenderBucket

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