SpriteQuadBatch Module
A simple batcher for drawing textured, vertex-colored quads in 3D.
This batcher is intended for Sprite3D-style draws (unlit, texture + vertex color), but it can also be used with custom effects that consume VertexPositionColorTexture. The caller is responsible for configuring the effect (View/Projection/Texture/etc) and device states.
Types
| Type | Description |
|
|
Functions and values
| Function or value |
Description
|
|
Begin a batch.
|
|
|
|
Return pooled arrays. Call when the batch is no longer needed.
|
Full Usage:
draw center right up color uv state
Parameters:
Vector3
-
Center of the quad in world space.
right : Vector3
-
Half-extent vector pointing to the quad's +X direction in world space.
up : Vector3
-
Half-extent vector pointing to the quad's +Y direction in world space.
color : Color
uv : UvRect
state : State
|
|
|
|
|
Mibo