Header menu logo Mibo

QuadBatch Module

A simple batcher for drawing 3D textured quads.

Quads are axis-aligned (not camera-facing like BillboardBatch).

Types

Type Description

State

Functions and values

Function or value Description

begin' effect state

Full Usage: begin' effect state

Parameters:
Modifiers: inline

Begin a batch.

Caller is responsible for configuring the effect before calling.

effect : Effect
state : byref<State>

create graphicsDevice

Full Usage: create graphicsDevice

Parameters:
Returns: State

Creates a new quad batcher.

graphicsDevice : GraphicsDevice
Returns: State

dispose state

Full Usage: dispose state

Parameters:

Return pooled arrays. Call when the batch is no longer needed.

state : byref<State>

draw position size state

Full Usage: draw position size state

Parameters:

Adds a quad to the batch.

position : Vector3
size : Vector2
state : byref<State>

end' state

Full Usage: end' state

Parameters:
Modifiers: inline

Ends the batch and flushes all draw commands to the GPU.

state : byref<State>

flush state

Full Usage: flush state

Parameters:

Flushes the current batch to the GPU.

state : byref<State>

Type something to start searching.