Метод | Описание | |
---|---|---|
CreateBatchItem ( ) : |
Create an instance of SpriteBatchItem if there is none available in the free item queue. Otherwise, a previously allocated SpriteBatchItem is reused.
|
|
DrawBatch ( SpriteSortMode sortMode, |
Sorts the batch items and then groups batch drawing into maximal allowed batch sets that do not overflow the 16 bit array indices for vertices.
|
|
SpriteBatcher ( GraphicsDevice device ) : System.Collections.Generic |
Метод | Описание | |
---|---|---|
CompareDepth ( |
Compares the Depth of a against b returning -1 if a is less than b, 0 if equal, and 1 if a is greater than b. The test uses float.CompareTo(float)
|
|
CompareReverseDepth ( |
Implements the opposite of CompareDepth, where b is compared against a.
|
|
CompareTexture ( |
Comparison of the underlying Texture objects for each given SpriteBatchitem.
|
|
EnsureArrayCapacity ( int numBatchItems ) : void |
Resize and recreate the missing indices for the index and vertex position color buffers.
|
|
FlushVertexArray ( int start, int end, |
Sends the triangle list to the graphics device. Here is where the actual drawing starts.
|
public CreateBatchItem ( ) : |
||
Результат |
public DrawBatch ( SpriteSortMode sortMode, |
||
sortMode | SpriteSortMode | The type of depth sorting desired for the rendering. |
effect | The custom effect to apply to the drawn geometry | |
Результат | void |
public SpriteBatcher ( GraphicsDevice device ) : System.Collections.Generic | ||
device | GraphicsDevice | |
Результат | System.Collections.Generic |