BatchBase<TDrawInfo>.StaticQuadBufferInfo Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
A class containing the information required to build a vertex and index buffer for simple quad based batching.
Derived from BatchBase<TDrawInfo>.StaticQuadBufferInfo:
protected class StaticQuadBufferInfo : BatchBase<TDrawInfo>.ResourceBufferInfo
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
| Name | Description | |
|---|---|---|
| Fields | ||
| IndicesByElement | ||
| VertexByElement | ||
| Methods | ||
| CreateQuadBufferInfo(String, Boolean, Int32, Int32) | ||
Fields
IndicesByElement
public const int IndicesByElement = 6
Field Value
| Type | Description |
|---|---|
| System.Int32 |
VertexByElement
public const int VertexByElement = 4
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
CreateQuadBufferInfo(String, Boolean, Int32, Int32)
public static BatchBase<TDrawInfo>.StaticQuadBufferInfo CreateQuadBufferInfo(string resourceKey, bool cycle, int maxQuadNumber, int batchCapacity = 64)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceKey | |
| System.Boolean | cycle | |
| System.Int32 | maxQuadNumber | |
| System.Int32 | batchCapacity |
Returns
| Type | Description |
|---|---|
| BatchBase.StaticQuadBufferInfo<> |