Tesla Graphics Engine Documentation (January 2012)
OpaqueRenderBucketComparer Class
TeslaTesla.GraphicsOpaqueRenderBucketComparer
Opaque bucket comparer that will sort renderables based on their material. If those are equal, or the comparison isn't applicable, then they are sorted front-to-back.
Declaration Syntax
C#
public sealed class OpaqueRenderBucketComparer : IRenderBucketComparer, 
	IComparer<IRenderable>
Members
All Members Constructors Methods



Icon Member Description
OpaqueRenderBucketComparer(IRenderer)
Creates a new OpaqueRenderBucketComparerer.

Compare(IRenderable, IRenderable)
Compares two renderable's by their material or if that is equal, then which is closer to the camera. 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
OpaqueRenderBucketComparer

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