Tesla Graphics Engine Documentation (January 2012)
TransparentRenderBucketComparer Class
TeslaTesla.GraphicsTransparentRenderBucketComparer
Comparer for transparent objects. These are always rendered back-to-front regardless of material in order to ensure correct rendering.
Declaration Syntax
C#
public sealed class TransparentRenderBucketComparer : IRenderBucketComparer, 
	IComparer<IRenderable>
Members
All Members Constructors Methods



Icon Member Description
TransparentRenderBucketComparer(IRenderer)
Creates a new TransparentRenderBucketComparer.

Compare(IRenderable, IRenderable)
Compares two renderable's by their distance to the camera, renderables farther from the camera are rendered first. If x is less than y, 1 is returned. If x is greater than y, -1 is returned. If they're equal then 0 is returned.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
TransparentRenderBucketComparer

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