Command2D Module
Factory functions that create Command2D values.
Types
| Type | Description |
|
State required to render a 2D sprite via DrawTexturePro. |
|
|
State required to render 2D text via raylib's DrawTextEx. |
Functions and values
| Function or value |
Description
|
Full Usage:
beginCamera layer camera
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
camera : Camera2D
Returns: Command2D
Modifiers: inline |
|
Full Usage:
beginCameraConfig layer config
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
config : Camera2DConfig
Returns: Command2D
Modifiers: inline |
|
Full Usage:
beginShader layer shader
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
shader : Shader
Returns: Command2D
Modifiers: inline |
|
Full Usage:
beginTarget layer target
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
target : RenderTexture2D
Returns: Command2D
Modifiers: inline |
|
Full Usage:
bezier (layer, color, thickness) (start, control, finish)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
thickness : float32
start : Vector2
control : Vector2
finish : Vector2
Returns: Command2D
Modifiers: inline |
|
Full Usage:
circleGradient layer (centerX, centerY, radius, inner, outer)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
centerX : int
centerY : int
radius : float32
inner : Color
outer : Color
Returns: Command2D
Modifiers: inline |
|
Full Usage:
circleOutline (layer, color) (center, radius)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
center : Vector2
radius : float32
Returns: Command2D
Modifiers: inline |
|
Full Usage:
circleSector (layer, color) (center, radius, startAngle, endAngle, segments)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
center : Vector2
radius : float32
startAngle : float32
endAngle : float32
segments : int
Returns: Command2D
Modifiers: inline |
|
Full Usage:
circleSectorOutline (layer, color) (center, radius, startAngle, endAngle, segments)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
center : Vector2
radius : float32
startAngle : float32
endAngle : float32
segments : int
Returns: Command2D
Modifiers: inline |
|
Full Usage:
clear layer color
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
Returns: Command2D
Modifiers: inline |
|
Full Usage:
clearScissor layer
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: Command2D
Modifiers: inline |
|
Full Usage:
disableShadows layer lightCtx
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
lightCtx : LightContext2D
Returns: Command2D
Modifiers: inline |
|
Full Usage:
drawImmediate layer action
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
action : unit -> unit
Returns: Command2D
Modifiers: inline |
|
Full Usage:
ellipseOutline (layer, color) (centerX, centerY, radiusH, radiusV)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
centerX : int
centerY : int
radiusH : float32
radiusV : float32
Returns: Command2D
Modifiers: inline |
|
Full Usage:
enableShadows layer lightCtx
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
lightCtx : LightContext2D
Returns: Command2D
Modifiers: inline |
|
Full Usage:
endCamera layer
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: Command2D
Modifiers: inline |
|
Full Usage:
endShader layer
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: Command2D
Modifiers: inline |
|
Full Usage:
endTarget layer
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: Command2D
Modifiers: inline |
|
Full Usage:
fillCircle (layer, color) (center, radius)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
center : Vector2
radius : float32
Returns: Command2D
Modifiers: inline |
|
Full Usage:
fillEllipse (layer, color) (centerX, centerY, radiusH, radiusV)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
centerX : int
centerY : int
radiusH : float32
radiusV : float32
Returns: Command2D
Modifiers: inline |
|
Full Usage:
fillPoly (layer, color) (center, sides, radius, rotation)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
center : Vector2
sides : int
radius : float32
rotation : float32
Returns: Command2D
Modifiers: inline |
|
Full Usage:
fillRect (layer, color) rect
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
rect : Rectangle
Returns: Command2D
Modifiers: inline |
|
Full Usage:
fillRectRounded (layer, color, roundness, segments) rect
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
roundness : float32
segments : int
rect : Rectangle
Returns: Command2D
Modifiers: inline |
|
Full Usage:
fillRing (layer, color) (center, innerR, outerR, startAngle, endAngle, segments)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
center : Vector2
innerR : float32
outerR : float32
startAngle : float32
endAngle : float32
segments : int
Returns: Command2D
Modifiers: inline |
|
Full Usage:
line (layer, color) (start, finish)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
start : Vector2
finish : Vector2
Returns: Command2D
Modifiers: inline |
|
Full Usage:
lineStrip (layer, color) points
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
points : Vector2[]
Returns: Command2D
Modifiers: inline |
|
Full Usage:
lineThick (layer, color, thickness) (start, finish)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
thickness : float32
start : Vector2
finish : Vector2
Returns: Command2D
Modifiers: inline |
|
Full Usage:
polyOutline (layer, color, thickness) (center, sides, radius, rotation)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
thickness : float32
center : Vector2
sides : int
radius : float32
rotation : float32
Returns: Command2D
Modifiers: inline |
|
Full Usage:
rectGradient layer (rect, tl, bl, tr, br)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
rect : Rectangle
tl : Color
bl : Color
tr : Color
br : Color
Returns: Command2D
Modifiers: inline |
|
Full Usage:
rectGradientH layer (x, y, w, h, left, right)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
x : int
y : int
w : int
h : int
left : Color
right : Color
Returns: Command2D
Modifiers: inline |
|
Full Usage:
rectGradientV layer (x, y, w, h, top, bottom)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
x : int
y : int
w : int
h : int
top : Color
bottom : Color
Returns: Command2D
Modifiers: inline |
|
Full Usage:
rectOutline (layer, color, thickness) rect
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
thickness : float32
rect : Rectangle
Returns: Command2D
Modifiers: inline |
|
Full Usage:
rectRoundedOutline (layer, color, roundness, segments, thickness) rect
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
roundness : float32
segments : int
thickness : float32
rect : Rectangle
Returns: Command2D
Modifiers: inline |
|
Full Usage:
ringOutline (layer, color) (center, innerR, outerR, startAngle, endAngle, segments)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
center : Vector2
innerR : float32
outerR : float32
startAngle : float32
endAngle : float32
segments : int
Returns: Command2D
Modifiers: inline |
|
Full Usage:
setBlend layer mode
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
mode : BlendMode
Returns: Command2D
Modifiers: inline |
|
Full Usage:
setLineWidth layer width
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
width : float32
Returns: Command2D
Modifiers: inline |
|
Full Usage:
setScissor layer (x, y, w, h)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
x : int
y : int
w : int
h : int
Returns: Command2D
Modifiers: inline |
|
Full Usage:
setViewport layer (x, y, w, h)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
x : int
y : int
w : int
h : int
Returns: Command2D
Modifiers: inline |
|
|
|
|
|
Full Usage:
triangle (layer, color) (v1, v2, v3)
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
v1 : Vector2
v2 : Vector2
v3 : Vector2
Returns: Command2D
Modifiers: inline |
|
Full Usage:
triangleFan (layer, color) points
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
points : Vector2[]
Returns: Command2D
Modifiers: inline |
|
Full Usage:
triangleStrip (layer, color) points
Parameters:
int<MeasureProduct<RenderLayer, MeasureOne>>
color : Color
points : Vector2[]
Returns: Command2D
Modifiers: inline |
|
Mibo.Raylib