Class BatchBase<TDrawInfo>.StaticQuadBufferInfo
A class containing the information required to build a vertex and index buffer for simple quad based batching.
protected class BatchBase<TDrawInfo>.StaticQuadBufferInfo : BatchBase<TDrawInfo>.ResourceBufferInfo
- Inheritance
-
BatchBase<TDrawInfo>.ResourceBufferInfoBatchBase<TDrawInfo>.StaticQuadBufferInfo
- Inherited Members
Remarks
The index buffer is used in static mode and contains six indices for each quad. The vertex buffer contains 4 vertices for each quad. Rectangle is composed of two triangles as follow: v0 - - - v1 v0 - - - v1 | \ | | t1 / | If cycle=true: | \ t1 | If cycle=false: | / | | t2 \ | | / t2 | v3 - - - v2 v2 - - - v3
Fields
IndicesByElement
public const int IndicesByElement = 6
Field Value
VertexByElement
public const int VertexByElement = 4
Field Value
Methods
CreateQuadBufferInfo(string, bool, int, int)
public static BatchBase<TDrawInfo>.StaticQuadBufferInfo CreateQuadBufferInfo(string resourceKey, bool cycle, int maxQuadNumber, int batchCapacity = 64)
Parameters
Returns
- BatchBase<TDrawInfo>.StaticQuadBufferInfo