Interface MeshSink
- All Known Subinterfaces:
LineSink, QuadSink, TexturedSink
public interface MeshSink
What every vertex sink shares: a transform applied on the CPU to everything written after it. Positions are
multiplied by the matrix and normals by its upper 3x3, then normalized. Transforming on the CPU lets meshes with
different transforms, such as the attachments of every player on screen, go out in one draw call.
-
Method Summary
-
Method Details
-
transform
Sets the transform for the vertices that follow. The matrix is copied.- Parameters:
matrix- a column-major 4x4 matrix, ornullfor none- Returns:
- this sink
-