RenderContext3D class

Inheritance

Constructors

RenderContext3D(GraphicsDevice device)

Properties

cameraPosition → Vector3
Camera world-space position, precomputed from the view matrix. Set once per frame via setCamera, avoids repeated matrix inversions.
no setter
device → GraphicsDevice
finalinherited
drawCount → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
jointsInfo → JointsInfo
final
lights ↔ Iterable<Light>
Must be set by the rendering pipeline before elements are bound. Can be accessed by elements in their bind method.
getter/setter pair
model → Matrix4
no setter
projection → Matrix4
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
view → Matrix4
no setter

Methods

applyMaterial(Material material) → void
drawMesh(Mesh mesh) → void
drawSurface(Surface surface) → void
flush() → void
Sort and execute all deferred draws (back-to-front for alpha blending).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCamera(Matrix4 viewMatrix, Matrix4 projectionMatrix) → void
Set camera matrices for this frame.
submitDraw(Object3D object, Matrix4 worldTransform) → void
Submit a deferred draw.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited