Draw Type
The unified fluent draw DSL. Chain members on the render buffer:
buffer
.BeginCamera(camera)
.FillCircle(400f, 300f, 48f, Color.Blue)
.Sprite(playerSprite)
.EndCamera()
.Text(font, "HP 100", Vector2(10f, 10f), 20f, layer = 1001<RenderLayer>)
|> ignore
Static members
| Static member |
Description
|
Full Usage:
Draw.addDirectionalLight (buffer, light)
Parameters:
^B
light : DirectionalLight3D
Returns: ^B
Modifiers: inline Type parameters: ^B |
|
Full Usage:
Draw.addDirectionalLight (buffer, lightCtx, direction, color, ?intensity, ?castsShadows, ?layer)
Parameters:
^B
lightCtx : 'C
direction : Vector2
color : Color
?intensity : float32
?castsShadows : bool
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C |
Adds a 2D directional light from parts.
|
Full Usage:
Draw.addDirectionalLight (buffer, lightCtx, light, ?layer)
Parameters:
^B
lightCtx : 'C
light : 'L
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C, 'L |
Adds a 2D directional light from the backend's light record.
|
Full Usage:
Draw.addOccluder (buffer, lightCtx, occluder, ?layer)
Parameters:
^B
lightCtx : 'C
occluder : 'O
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C, 'O |
Adds a shadow-casting occluder segment for this frame.
|
Full Usage:
Draw.addPointLight (buffer, light)
Parameters:
^B
light : PointLight3D
Returns: ^B
Modifiers: inline Type parameters: ^B |
|
Full Usage:
Draw.addPointLight (buffer, lightCtx, light, ?layer)
Parameters:
^B
lightCtx : 'C
light : 'L
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C, 'L |
Adds a 2D point light for this frame.
|
Full Usage:
Draw.addSpotLight (buffer, light)
Parameters:
^B
light : SpotLight3D
Returns: ^B
Modifiers: inline Type parameters: ^B |
|
Full Usage:
Draw.animatedModel (buffer, animModel, transform)
Parameters:
^B
animModel : 'A
transform : 'X
Returns: ^B
Modifiers: inline Type parameters: ^B, 'A, 'X |
Draws an animated (skinned) model from the backend's animation state record. The witness derives the bone palette (MonoGame: from the state; raylib: applies it to the model).
|
Full Usage:
Draw.animatedModelWith (buffer, animModel, transform, material)
Parameters:
^B
animModel : 'A
transform : 'X
material : 'Mat
Returns: ^B
Modifiers: inline Type parameters: ^B, 'A, 'X, 'Mat |
Draws an animated model with a whole-model material override.
|
Full Usage:
Draw.animatedModelWithPerMesh (buffer, animModel, transform, resolver)
Parameters:
^B
animModel : 'A
transform : 'X
resolver : int -> 'Mat
Returns: ^B
Modifiers: inline Type parameters: ^B, 'A, 'X, 'Mat |
Draws an animated model with a per-sub-mesh material resolver.
|
Full Usage:
Draw.beginCamera (buffer, camera, ?layer)
Parameters:
^B
camera : 'C
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C |
Begins a camera transform (2D or 3D — the buffer selects the witness).
|
Full Usage:
Draw.beginCameraWith (buffer, config, ?layer)
Parameters:
^B
config : 'C
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C |
Begins a camera with explicit rendering config (viewport, clear).
|
Full Usage:
Draw.beginEffect (buffer, shader)
Parameters:
^B
shader : 'S
Returns: ^B
Modifiers: inline Type parameters: ^B, 'S |
Opens a per-group shading scope: draws until EndEffect are shaded by shader instead of the default PBR shader, inheriting the gathered scene data (camera, lights, shadow pass, bones, time).
|
Full Usage:
Draw.beginShader (buffer, shader, ?layer)
Parameters:
^B
shader : 'S
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'S |
Begins a 2D shader/effect block.
|
Full Usage:
Draw.beginTarget (buffer, target, ?layer)
Parameters:
^B
target : 'T
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'T |
Begins rendering to a render target.
|
Full Usage:
Draw.bezier (buffer, start, control, finish, color, ?thickness, ?layer)
Parameters:
^B
start : Vector2
control : Vector2
finish : Vector2
color : Color
?thickness : float32
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Quadratic bezier curve.
|
|
|
Full Usage:
Draw.billboardBatch (buffer, textures, positions, sizes, colors, count)
Parameters:
^B
textures : 'T[]
positions : 'P[]
sizes : 'S[]
colors : 'C[]
count : int
Returns: ^B
Modifiers: inline Type parameters: ^B, 'T, 'P, 'S, 'C |
Draws multiple billboards in a single batch. All arrays are backend handles (XNA arrays on MonoGame) — no per-frame conversion.
|
Full Usage:
Draw.circleGradient (buffer, centerX, centerY, radius, inner, outer, ?layer)
Parameters:
^B
centerX : int
centerY : int
radius : float32
inner : Color
outer : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Radial gradient circle (int pixel center, matching the existing API).
|
Full Usage:
Draw.circleOutline (buffer, center, radius, color, ?layer)
Parameters:
^B
center : Vector2
radius : float32
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Circle outline.
|
Full Usage:
Draw.circleSector (buffer, center, radius, startAngle, endAngle, color, ?segments, ?layer)
Parameters:
^B
center : Vector2
radius : float32
startAngle : float32
endAngle : float32
color : Color
?segments : int
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Filled circle sector (pie slice).
|
Full Usage:
Draw.circleSectorOutline (buffer, center, radius, startAngle, endAngle, color, ?segments, ?layer)
Parameters:
^B
center : Vector2
radius : float32
startAngle : float32
endAngle : float32
color : Color
?segments : int
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Circle sector outline.
|
Full Usage:
Draw.clear (buffer, color, ?layer)
Parameters:
^B
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Clears the current framebuffer to the given color.
|
Full Usage:
Draw.clearScissor (buffer, ?layer)
Parameters:
^B
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Disables scissor testing.
|
Full Usage:
Draw.disableShadows buffer
Parameters:
^B
Returns: ^B
Modifiers: inline Type parameters: ^B |
Disables 3D shadow casting for subsequent geometry.
|
Full Usage:
Draw.disableShadows (buffer, lightCtx, ?layer)
Parameters:
^B
lightCtx : 'C
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C |
Disables 2D shadow casting for subsequent draws.
|
Full Usage:
Draw.drawImmediate (buffer, action, ?layer)
Parameters:
^B
action : 'Ctx -> unit
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'Ctx |
Runs a fully-custom draw. 2D: action is
|
Full Usage:
Draw.drop buffer
Parameters:
'B
Modifiers: inline Type parameters: 'B |
Terminal function that discards the buffer, silencing the unused-value warning.
|
Full Usage:
Draw.ellipseOutline (buffer, centerX, centerY, radiusH, radiusV, color, ?layer)
Parameters:
^B
centerX : int
centerY : int
radiusH : float32
radiusV : float32
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Ellipse outline (int pixel center, matching the existing API).
|
Full Usage:
Draw.enableShadows buffer
Parameters:
^B
Returns: ^B
Modifiers: inline Type parameters: ^B |
Enables 3D shadow casting for subsequent geometry.
|
Full Usage:
Draw.enableShadows (buffer, lightCtx, ?layer)
Parameters:
^B
lightCtx : 'C
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C |
Enables 2D shadow casting for subsequent draws.
|
Full Usage:
Draw.endCamera (buffer, ?layer)
Parameters:
^B
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Ends the current camera transform.
|
Full Usage:
Draw.endEffect buffer
Parameters:
^B
Returns: ^B
Modifiers: inline Type parameters: ^B |
Closes the shading scope opened by BeginEffect.
|
Full Usage:
Draw.endLighting (buffer, lightCtx, ?layer)
Parameters:
^B
lightCtx : 'C
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C |
Ends the current lighting pass; sprites after this point are unlit.
|
Full Usage:
Draw.endShader (buffer, ?layer)
Parameters:
^B
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Ends the current 2D shader block.
|
Full Usage:
Draw.endTarget (buffer, ?layer)
Parameters:
^B
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Ends rendering to a render target.
|
Full Usage:
Draw.fillCircle (buffer, center, radius, color, ?layer)
Parameters:
^B
center : Vector2
radius : float32
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Filled circle.
|
Full Usage:
Draw.fillEllipse (buffer, centerX, centerY, radiusH, radiusV, color, ?layer)
Parameters:
^B
centerX : int
centerY : int
radiusH : float32
radiusV : float32
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Filled ellipse (int pixel center, matching the existing API).
|
Full Usage:
Draw.fillPoly (buffer, center, sides, radius, rotation, color, ?layer)
Parameters:
^B
center : Vector2
sides : int
radius : float32
rotation : float32
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Filled regular polygon.
|
Full Usage:
Draw.fillRect (buffer, x, y, w, h, color, ?layer)
Parameters:
^B
x : float32
y : float32
w : float32
h : float32
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Filled rectangle. Coordinates are float pixels (truncated toward zero on MonoGame).
|
Full Usage:
Draw.fillRectRounded (buffer, x, y, w, h, color, ?roundness, ?segments, ?layer)
Parameters:
^B
x : float32
y : float32
w : float32
h : float32
color : Color
?roundness : float32
?segments : int
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Filled rounded rectangle.
|
Full Usage:
Draw.fillRing (buffer, center, innerRadius, outerRadius, startAngle, endAngle, color, ?segments, ?layer)
Parameters:
^B
center : Vector2
innerRadius : float32
outerRadius : float32
startAngle : float32
endAngle : float32
color : Color
?segments : int
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Filled ring / arc.
|
Full Usage:
Draw.instanced (buffer, mesh, transforms, material, instanceCount)
Parameters:
^B
mesh : 'M
transforms : 'X[]
material : 'Mat
instanceCount : int
Returns: ^B
Modifiers: inline Type parameters: ^B, 'M, 'X, 'Mat |
Draws many instances of the same mesh. Prefer over repeated Mesh calls.
|
Full Usage:
Draw.line (buffer, start, finish, color, ?layer)
Parameters:
^B
start : Vector2
finish : Vector2
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
1-pixel line.
|
|
|
Full Usage:
Draw.lineStrip (buffer, points, color, ?layer)
Parameters:
^B
points : 'P[]
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'P |
Connected line segments. The point array is a backend handle (System.Numerics on raylib, XNA on MonoGame) — no per-frame conversion. Single-point members take System.Numerics and convert for free.
|
Full Usage:
Draw.lineThick (buffer, start, finish, color, ?thickness, ?layer)
Parameters:
^B
start : Vector2
finish : Vector2
color : Color
?thickness : float32
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Line with custom thickness.
|
Full Usage:
Draw.litAnimatedSprite (buffer, lightCtx, dest, animSprite, ?layer)
Parameters:
^B
lightCtx : 'C
dest : 'R
animSprite : 'A
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C, 'R, 'A |
Draws an animated sprite with the current lighting state.
|
Full Usage:
Draw.litSprite (buffer, lightCtx, sprite)
Parameters:
^B
lightCtx : 'C
sprite : 'S
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C, 'S |
Draws a sprite with the current lighting state.
|
Full Usage:
Draw.mesh (buffer, mesh, transform, material)
Parameters:
^B
mesh : 'M
transform : 'X
material : 'Mat
Returns: ^B
Modifiers: inline Type parameters: ^B, 'M, 'X, 'Mat |
Draws a mesh (raylib Mesh / MonoGame PrimitiveMesh) with a material.
|
Full Usage:
Draw.model (buffer, model, transform)
Parameters:
^B
model : 'M
transform : 'X
Returns: ^B
Modifiers: inline Type parameters: ^B, 'M, 'X |
Draws a model with a world transform and its authored materials.
|
Full Usage:
Draw.modelWith (buffer, model, transform, material)
Parameters:
^B
model : 'M
transform : 'X
material : 'Mat
Returns: ^B
Modifiers: inline Type parameters: ^B, 'M, 'X, 'Mat |
Draws a model with a whole-model material override.
|
Full Usage:
Draw.modelWithPerMesh (buffer, model, transform, resolver)
Parameters:
^B
model : 'M
transform : 'X
resolver : int -> 'Mat
Returns: ^B
Modifiers: inline Type parameters: ^B, 'M, 'X, 'Mat |
Draws a model with a per-sub-mesh material resolver.
|
Full Usage:
Draw.particles (buffer, texture, particles, count, ?layer)
Parameters:
^B
texture : 'T
particles : 'P[]
count : int
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'T, 'P |
Adds a batched particle render command.
|
Full Usage:
Draw.polyOutline (buffer, center, sides, radius, rotation, color, ?thickness, ?layer)
Parameters:
^B
center : Vector2
sides : int
radius : float32
rotation : float32
color : Color
?thickness : float32
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Regular polygon outline.
|
Full Usage:
Draw.postProcess (buffer, action)
Parameters:
^B
action : 'Ctx -> unit
Returns: ^B
Modifiers: inline Type parameters: ^B, 'Ctx |
Enqueues a post-process pass. The action receives the backend's post-process context (2D or 3D) and runs once after the scene renders.
|
Full Usage:
Draw.postProcessWithDepth (buffer, action)
Parameters:
^B
action : 'Ctx -> unit
Returns: ^B
Modifiers: inline Type parameters: ^B, 'Ctx |
Enqueues a post-process pass that needs camera-POV scene depth. 3D only — the 2D buffer has no witness.
|
Full Usage:
Draw.rectGradient (buffer, x, y, w, h, topLeft, bottomLeft, topRight, bottomRight, ?layer)
Parameters:
^B
x : float32
y : float32
w : float32
h : float32
topLeft : Color
bottomLeft : Color
topRight : Color
bottomRight : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
4-corner gradient rectangle.
|
Full Usage:
Draw.rectGradientH (buffer, x, y, w, h, left, right, ?layer)
Parameters:
^B
x : int
y : int
w : int
h : int
left : Color
right : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Horizontal gradient rectangle (int pixel coords, matching the existing API).
|
Full Usage:
Draw.rectGradientV (buffer, x, y, w, h, top, bottom, ?layer)
Parameters:
^B
x : int
y : int
w : int
h : int
top : Color
bottom : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Vertical gradient rectangle (int pixel coords, matching the existing API).
|
Full Usage:
Draw.rectOutline (buffer, x, y, w, h, color, ?thickness, ?layer)
Parameters:
^B
x : float32
y : float32
w : float32
h : float32
color : Color
?thickness : float32
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Rectangle outline.
|
Full Usage:
Draw.rectRoundedOutline (buffer, x, y, w, h, color, ?roundness, ?segments, ?thickness, ?layer)
Parameters:
^B
x : float32
y : float32
w : float32
h : float32
color : Color
?roundness : float32
?segments : int
?thickness : float32
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Rounded rectangle outline.
|
Full Usage:
Draw.ringOutline (buffer, center, innerRadius, outerRadius, startAngle, endAngle, color, ?segments, ?layer)
Parameters:
^B
center : Vector2
innerRadius : float32
outerRadius : float32
startAngle : float32
endAngle : float32
color : Color
?segments : int
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Ring / arc outline.
|
Full Usage:
Draw.setAmbient (buffer, lightCtx, color, ?layer)
Parameters:
^B
lightCtx : 'C
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'C |
Sets the ambient light color for this frame.
|
Full Usage:
Draw.setAmbientLight (buffer, light)
Parameters:
^B
light : AmbientLight3D
Returns: ^B
Modifiers: inline Type parameters: ^B |
|
Full Usage:
Draw.setBlend (buffer, mode, ?layer)
Parameters:
^B
mode : 'M
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'M |
Sets the blending mode (backend handle: raylib BlendMode enum or MonoGame BlendMode DU).
|
Full Usage:
Draw.setLineWidth (buffer, width, ?layer)
Parameters:
^B
width : float32
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Sets the line width for subsequent line draws.
|
Full Usage:
Draw.setSamplerState (buffer, sampler, ?layer)
Parameters:
^B
sampler : 'S
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'S |
Sets the sampler state (e.g. SamplerState.PointClamp) — stops tile-atlas bleeding. MonoGame only: the raylib buffer has no witness, so calling this there is a compile error.
|
Full Usage:
Draw.setScissor (buffer, x, y, w, h, ?layer)
Parameters:
^B
x : int
y : int
w : int
h : int
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Enables scissor testing.
|
Full Usage:
Draw.setShadowOrigin (buffer, origin)
Parameters:
^B
origin : Vector3
Returns: ^B
Modifiers: inline Type parameters: ^B |
|
Full Usage:
Draw.setViewport (buffer, x, y, w, h, ?layer)
Parameters:
^B
x : int
y : int
w : int
h : int
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Sets the viewport rectangle.
|
Full Usage:
Draw.skinnedMesh (buffer, mesh, transform, material, bones)
Parameters:
^B
mesh : 'M
transform : 'X
material : 'Mat
bones : 'Bones
Returns: ^B
Modifiers: inline Type parameters: ^B, 'M, 'X, 'Mat, 'Bones |
Draws a skinned mesh with an explicit bone palette and material. raylib only — MonoGame's skinned path goes through AnimatedModel.
|
Full Usage:
Draw.sprite (buffer, state)
Parameters:
^B
state : 'S
Returns: ^B
Modifiers: inline Type parameters: ^B, 'S |
Draws a sprite from the backend's SpriteState record.
|
Full Usage:
Draw.text (buffer, font, text, position, size, ?tint, ?spacing, ?layer)
Parameters:
^B
font : 'F
text : string
position : Vector2
size : float32
?tint : Color
?spacing : float32
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'F |
Draws text from parts. size maps to the backend's sizing model (raylib: font size in pixels; MonoGame: uniform scale). spacing is used by raylib and ignored by MonoGame.
|
Full Usage:
Draw.text (buffer, state)
Parameters:
^B
state : 'S
Returns: ^B
Modifiers: inline Type parameters: ^B, 'S |
Draws text from the backend's TextState record.
|
Full Usage:
Draw.triangle (buffer, v1, v2, v3, color, ?layer)
Parameters:
^B
v1 : Vector2
v2 : Vector2
v3 : Vector2
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B |
Filled triangle from 3 vertices.
|
Full Usage:
Draw.triangleFan (buffer, points, color, ?layer)
Parameters:
^B
points : 'P[]
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'P |
Filled triangle fan. Points array is a backend handle (see LineStrip).
|
Full Usage:
Draw.triangleStrip (buffer, points, color, ?layer)
Parameters:
^B
points : 'P[]
color : Color
?layer : int<MeasureProduct<RenderLayer, MeasureOne>>
Returns: ^B
Modifiers: inline Type parameters: ^B, 'P |
Filled triangle strip. Points array is a backend handle (see LineStrip).
|
Mibo