Свойство | Тип | Описание | |
---|---|---|---|
CreateBuffers | void | ||
DestroyBuffers | void | ||
SyncBuffers | void |
Метод | Описание | |
---|---|---|
AddQuad ( Quad quad ) : void |
Adds a quad or image. Make sure you only add quads with an equal state.
|
|
AddQuad ( Quad quad, float alpha ) : void |
Adds a quad or image using a custom alpha value (ignoring the quad's original alpha). Make sure you only add quads with an equal state.
|
|
AddQuad ( Quad quad, float alpha, uint blendMode, Matrix matrix = null ) : void |
Adds a quad or image to the batch, using custom alpha and blend mode values (ignoring the quad's original values) and transforming each vertex by a certain transformation matrix. Make sure you only add quads with an equal state.
|
|
AddQuadBatch ( |
Adds another quad batch to this batch.
|
|
AddQuadBatch ( |
Adds another quad batch to this batch, using a custom alpha value (ignoring the batch's original alpha).
|
|
AddQuadBatch ( |
Adds another quad batch to this batch, using custom alpha and blend mode values (ignoring the batch's original values) and transforming each vertex by a certain transformation matrix. Just like the 'AddQuad' method, you have to make sure that you only add batches with an equal state.
|
|
BoundsInSpace ( |
||
Compile ( |
Analyses an object that is made up exclusively of quads (or other containers) and saves the resulting quad batches into the specified an array; batches inside that array are reused.
|
|
Compile ( |
||
IsStateChange ( bool tinted, |
Indicates if specific quads can be added to the batch without causing a state change. A state change occurs if the quad uses a different base texture, has a different 'Smoothing', 'Repeat' or 'Tinted' setting, or if the batch is full (one batch can contain up to 8192 quads).
|
|
QuadBatch ( ) : System | ||
Render ( Matrix matrix ) : void |
Renders the batch with a custom mvp matrix.
|
|
Render ( Matrix matrix, float alpha, uint blendMode ) : void |
Renders the batch with custom alpha and blend mode values, as well as a custom mvp matrix.
|
|
Render ( |
||
Reset ( ) : void |
Resets the batch. The vertex- and index-buffers keep their size, so that they can be reused.
|
Метод | Описание | |
---|---|---|
CreateBuffers ( ) : void | ||
DestroyBuffers ( ) : void | ||
SyncBuffers ( float alpha ) : void |
public AddQuad ( Quad quad, float alpha ) : void | ||
quad | Quad | |
alpha | float | |
Результат | void |
public AddQuad ( Quad quad, float alpha, uint blendMode, Matrix matrix = null ) : void | ||
quad | Quad | |
alpha | float | |
blendMode | uint | |
matrix | Matrix | |
Результат | void |
public AddQuadBatch ( |
||
quadBatch | ||
Результат | void |
public AddQuadBatch ( |
||
quadBatch | ||
alpha | float | |
Результат | void |
public AddQuadBatch ( |
||
quadBatch | ||
alpha | float | |
blendMode | uint | |
matrix | Matrix | |
Результат | void |
public BoundsInSpace ( |
||
targetSpace | ||
Результат |
public static Compile ( |
||
displayObject | ||
quadBatches | List |
|
Результат | List |
public static Compile ( |
||
displayObject | ||
quadBatches | List |
|
quadBatchID | int | |
transformationMatrix | Matrix | |
alpha | float | |
blendMode | uint | |
Результат | int |
public IsStateChange ( bool tinted, |
||
tinted | bool | |
texture | ||
alpha | float | |
premultipliedAlpha | bool | |
blendMode | uint | |
numQuads | int | |
Результат | bool |
public Render ( Matrix matrix, float alpha, uint blendMode ) : void | ||
matrix | Matrix | |
alpha | float | |
blendMode | uint | |
Результат | void |
public Render ( |
||
support | ||
Результат | void |