PrimitiveBatch Description struct Tinman.Engine.Rendering.Util.PrimitiveBatch A rendering primitive batch. Public / Constants None public static readonly attribute None → (PrimitiveBatch) The empty primitive batch. Public / Constructors LineList [Pure] public static method LineList → (2) first in : int32 [>=0] First vertex to draw. count in : int32 [>=0] Number of vertices to draw. returns → PrimitiveBatch The primitive batch. Creates a Primitive.LineList primitive batch. LineListIndexed [Pure] public static method LineListIndexed → (2) first in : int32 [>=0] First index to draw. count in : int32 [>=0] Number of indices to draw. returns → PrimitiveBatch The primitive batch. Creates an indexed Primitive.LineList primitive batch. LineStrip [Pure] public static method LineStrip → (2) first in : int32 [>=0] First vertex to draw. count in : int32 [>=0] Number of vertices to draw. returns → PrimitiveBatch The primitive batch. Creates a Primitive.LineStrip primitive batch. LineStripIndexed [Pure] public static method LineStripIndexed → (2) first in : int32 [>=0] First index to draw. count in : int32 [>=0] Number of indices to draw. returns → PrimitiveBatch The primitive batch. Creates an indexed Primitive.LineStrip primitive batch. PointList [Pure] public static method PointList → (2) first in : int32 [>=0] First vertex to draw. count in : int32 [>=0] Number of vertices to draw. returns → PrimitiveBatch The primitive batch. Creates a Primitive.PointList primitive batch. PointListIndexed [Pure] public static method PointListIndexed → (2) first in : int32 [>=0] First index to draw. count in : int32 [>=0] Number of indices to draw. returns → PrimitiveBatch The primitive batch. Creates an indexed Primitive.PointList primitive batch. PrimitiveBatch public constructor PrimitiveBatch → (4) type in : Primitive The primitive type. first in : int32 [>=0] First index resp. vertex to render. count in : int32 [>=0] Number of indices resp. vertices to render. indexed in : bool Draw indexed geometry? Creates a new instance of PrimitiveBatch. TriangleList [Pure] public static method TriangleList → (2) first in : int32 [>=0] First vertex to draw. count in : int32 [>=0] Number of vertices to draw. returns → PrimitiveBatch The primitive batch. Creates a Primitive.TriangleList primitive batch. TriangleListIndexed [Pure] public static method TriangleListIndexed → (2) first in : int32 [>=0] First index to draw. count in : int32 [>=0] Number of indices to draw. returns → PrimitiveBatch The primitive batch. Creates an indexed Primitive.TriangleList primitive batch. TriangleStrip [Pure] public static method TriangleStrip → (2) first in : int32 [>=0] First vertex to draw. count in : int32 [>=0] Number of vertices to draw. returns → PrimitiveBatch The primitive batch. Creates a Primitive.TriangleStrip primitive batch. TriangleStripIndexed [Pure] public static method TriangleStripIndexed → (2) first in : int32 [>=0] First index to draw. count in : int32 [>=0] Number of indices to draw. returns → PrimitiveBatch The primitive batch. Creates an indexed Primitive.TriangleStrip primitive batch. Public / Methods CollectLines public method CollectLines → (1) indices in : int32 [ ] The vertex indices for indexed geometry or null for non-indexed geometry. returns → Vec2I [ ] The collected line primitives or null if none primitives have been collected. Collects all line primitives. CollectPoints public method CollectPoints → (1) indices in : int32 [ ] The vertex indices for indexed geometry or null for non-indexed geometry. returns → int32 [ ] The collected point primitives or null if none primitives have been collected. Collects all point primitives. CollectTriangles public method CollectTriangles → (1) indices in : int32 [ ] The vertex indices for indexed geometry or null for non-indexed geometry. returns → Vec3I [ ] The collected triangle primitives or null if none primitives have been collected. Collects all triangle primitives. Render public method Render → (1) renderer in : IPrimitiveRenderer The primitive renderer to use. Renders this primitive batch using the given renderer in. Public / Attributes Count public readonly attribute Count → (int32) Number of vertex indices. First public readonly attribute First → (int32) Index of first vertex index in buffer. Indexed public readonly attribute Indexed → (bool) Is this an indexed primitive? IsLines public attribute IsLines → (get) value : bool true if this is a line primitive batch, false if not. Is this a line primitive batch? IsPoints public attribute IsPoints → (get) value : bool true if this is a point primitive batch, false if not. Is this a point primitive batch? IsTriangles public attribute IsTriangles → (get) value : bool true if this is a triangle primitive batch, false if not. Is this a triangle primitive batch? Type public readonly attribute Type → (Primitive) The primitive type. MipmapLevelTexture PrimitiveWriter