Table of Contents

Class BatchBase<TDrawInfo>.StaticQuadBufferInfo

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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>.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

int

VertexByElement

public const int VertexByElement = 4

Field Value

int

Methods

CreateQuadBufferInfo(string, bool, int, int)

public static BatchBase<TDrawInfo>.StaticQuadBufferInfo CreateQuadBufferInfo(string resourceKey, bool cycle, int maxQuadNumber, int batchCapacity = 64)

Parameters

resourceKey string
cycle bool
maxQuadNumber int
batchCapacity int

Returns

BatchBase<TDrawInfo>.StaticQuadBufferInfo