RenderCmd3D Type
A 3D render command.
These commands are queued to a RenderBuffer and executed by Batch3DRenderer.
Union cases
| Union case |
Description
|
Full Usage:
ClearTarget(clearColor, clearDepth)
Parameters:
Color voption
clearDepth : bool
|
Clear the render target. Use between cameras in multi-camera setups.
|
|
Effect-driven billboard draw: user provides an effect and optional setup callback.
|
|
Escape hatch: run an arbitrary draw function.
The function is invoked with the current camera View/Projection matrices (as last set by
|
|
Draw a single line segment using the built-in BasicEffect.
|
Full Usage:
DrawLines(lines, lineCount, pass)
Parameters:
VertexPositionColor[]
lineCount : int
pass : RenderPass
|
Draw line segments using the built-in BasicEffect (vertex colors). Lines are batched together; flushes occur on pass/camera/effect changes.
|
Full Usage:
DrawLinesEffect(lines, lineCount, effect, setup, pass)
Parameters:
VertexPositionColor[]
lineCount : int
effect : Effect
setup : EffectSetup voption
pass : RenderPass
|
Draw line segments using a custom effect. Use for glowing lines, dashed lines, or other custom line effects.
|
Full Usage:
DrawMesh(pass, model, transform, diffuseColor, texture, setup)
Parameters:
RenderPass
model : Model
transform : Matrix
diffuseColor : Color voption
texture : Texture2D voption
setup : EffectSetup voption
|
Draws a 3D mesh from a Model.
|
|
Effect-driven quad draw: user provides an effect and optional setup callback.
|
Full Usage:
DrawSkinned(pass, model, transform, bones, diffuseColor, texture, setup)
Parameters:
RenderPass
model : Model
transform : Matrix
bones : Matrix[]
diffuseColor : Color voption
texture : Texture2D voption
setup : EffectSetup voption
|
Contract for skinned/animated models.
If the underlying model uses SkinnedEffect, this renderer will apply
|
|
Sprite-style billboard draw (90% case): unlit textured billboard using built-in sprite effect.
|
|
Sprite-style quad draw (90% case): unlit textured quad using built-in sprite effect.
|
|
Sets the camera for subsequent draws.
|
|
Set viewport for multi-camera rendering (split-screen, minimaps, etc).
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsClearTarget
Returns: bool
|
|
Full Usage:
this.IsDrawBillboardEffect
Returns: bool
|
|
Full Usage:
this.IsDrawCustom
Returns: bool
|
|
Full Usage:
this.IsDrawLine
Returns: bool
|
|
Full Usage:
this.IsDrawLines
Returns: bool
|
|
Full Usage:
this.IsDrawLinesEffect
Returns: bool
|
|
Full Usage:
this.IsDrawMesh
Returns: bool
|
|
Full Usage:
this.IsDrawQuadEffect
Returns: bool
|
|
Full Usage:
this.IsDrawSkinned
Returns: bool
|
|
Full Usage:
this.IsDrawSpriteBillboard
Returns: bool
|
|
Full Usage:
this.IsDrawSpriteQuad
Returns: bool
|
|
Full Usage:
this.IsSetCamera
Returns: bool
|
|
Full Usage:
this.IsSetViewport
Returns: bool
|
|
Mibo