Command2D Type
Closed set of 2D render commands. Stored in RenderBuffer2D and dispatched via pattern matching — no interface boxing.
Union cases
| Union case |
Description
|
Full Usage:
BeginCamera(beginCameraCam, layer)
Parameters:
Camera2D
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
BeginCameraConfig(config, layer)
Parameters:
Camera2DConfig
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
BeginShader(beginShaderVal, layer)
Parameters:
Shader
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
BeginTarget(beginTargetVal, layer)
Parameters:
RenderTexture2D
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
Bezier(bezierStart, bezierControl, bezierFinish, bezierThickness, bezierColor, layer)
Parameters:
Vector2
bezierControl : Vector2
bezierFinish : Vector2
bezierThickness : float32
bezierColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
CircleGradient(circleGradCenterX, circleGradCenterY, circleGradRadius, circleGradInner, circleGradOuter, layer)
Parameters:
int
circleGradCenterY : int
circleGradRadius : float32
circleGradInner : Color
circleGradOuter : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
CircleOutline(circleOutCenter, circleOutRadius, circleOutColor, layer)
Parameters:
Vector2
circleOutRadius : float32
circleOutColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
CircleSector(sectorCenter, sectorRadius, sectorStartAngle, sectorEndAngle, sectorSegments, sectorColor, layer)
Parameters:
Vector2
sectorRadius : float32
sectorStartAngle : float32
sectorEndAngle : float32
sectorSegments : int
sectorColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
CircleSectorOutline(sectorOutCenter, sectorOutRadius, sectorOutStartAngle, sectorOutEndAngle, sectorOutSegments, sectorOutColor, layer)
Parameters:
Vector2
sectorOutRadius : float32
sectorOutStartAngle : float32
sectorOutEndAngle : float32
sectorOutSegments : int
sectorOutColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
Clear(clearColor, layer)
Parameters:
Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
|
|
Full Usage:
DisableShadows(disableShadowsCtx, layer)
Parameters:
LightContext2D
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
DrawImmediate(action, layer)
Parameters:
unit -> unit
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
EllipseOutline(ellipseOutCenterX, ellipseOutCenterY, ellipseOutRadiusH, ellipseOutRadiusV, ellipseOutColor, layer)
Parameters:
int
ellipseOutCenterY : int
ellipseOutRadiusH : float32
ellipseOutRadiusV : float32
ellipseOutColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
EnableShadows(enableShadowsCtx, layer)
Parameters:
LightContext2D
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
|
|
Full Usage:
EndLighting(endLightingCtx, layer)
Parameters:
LightContext2D
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
|
|
|
|
Full Usage:
FillCircle(circleCenter, circleRadius, circleColor, layer)
Parameters:
Vector2
circleRadius : float32
circleColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
FillEllipse(ellipseCenterX, ellipseCenterY, ellipseRadiusH, ellipseRadiusV, ellipseColor, layer)
Parameters:
int
ellipseCenterY : int
ellipseRadiusH : float32
ellipseRadiusV : float32
ellipseColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
FillPoly(polyCenter, polySides, polyRadius, polyRotation, polyColor, layer)
Parameters:
Vector2
polySides : int
polyRadius : float32
polyRotation : float32
polyColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
FillRect(fillRect, fillColor, layer)
Parameters:
Rectangle
fillColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
FillRectRounded(roundedRect, roundedFillRoundness, roundedFillSegments, roundedFillColor, layer)
Parameters:
Rectangle
roundedFillRoundness : float32
roundedFillSegments : int
roundedFillColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
FillRing(ringCenter, ringInnerR, ringOuterR, ringStartAngle, ringEndAngle, ringSegments, ringColor, layer)
Parameters:
Vector2
ringInnerR : float32
ringOuterR : float32
ringStartAngle : float32
ringEndAngle : float32
ringSegments : int
ringColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
Line(lineStart, lineFinish, lineColor, layer)
Parameters:
Vector2
lineFinish : Vector2
lineColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
LineStrip(stripPoints, stripColor, layer)
Parameters:
Vector2[]
stripColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
LineThick(lineThickStart, lineThickFinish, lineThickThickness, lineThickColor, layer)
Parameters:
Vector2
lineThickFinish : Vector2
lineThickThickness : float32
lineThickColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
LitSprite(litLightCtx, litTexture, litDest, litSource, litOrigin, litRotation, litColor, layer)
Parameters:
LightContext2D
litTexture : Texture2D
litDest : Rectangle
litSource : Rectangle
litOrigin : Vector2
litRotation : float32
litColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
|
|
Full Usage:
Particle(particleTexture, particleData, particleCount, layer)
Parameters:
Texture2D
particleData : Particle2D[]
particleCount : int
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
PolyOutline(polyOutCenter, polyOutSides, polyOutRadius, polyOutRotation, polyOutThickness, polyOutColor, layer)
Parameters:
Vector2
polyOutSides : int
polyOutRadius : float32
polyOutRotation : float32
polyOutThickness : float32
polyOutColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
RectGradient(gradRect, gradTL, gradBL, gradTR, gradBR, layer)
Parameters:
Rectangle
gradTL : Color
gradBL : Color
gradTR : Color
gradBR : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
RectGradientH(gradHX, gradHY, gradHW, gradHH, gradHLeft, gradHRight, layer)
Parameters:
int
gradHY : int
gradHW : int
gradHH : int
gradHLeft : Color
gradHRight : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
RectGradientV(gradVX, gradVY, gradVW, gradVH, gradVTop, gradVBottom, layer)
Parameters:
int
gradVY : int
gradVW : int
gradVH : int
gradVTop : Color
gradVBottom : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
RectOutline(outlineRect, outlineThickness, outlineColor, layer)
Parameters:
Rectangle
outlineThickness : float32
outlineColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
RectRoundedOutline(roundedOutlineRect, roundedOutlineRoundness, roundedOutlineSegments, roundedOutlineThickness, roundedOutlineColor, layer)
Parameters:
Rectangle
roundedOutlineRoundness : float32
roundedOutlineSegments : int
roundedOutlineThickness : float32
roundedOutlineColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
RingOutline(ringOutCenter, ringOutInnerR, ringOutOuterR, ringOutStartAngle, ringOutEndAngle, ringOutSegments, ringOutColor, layer)
Parameters:
Vector2
ringOutInnerR : float32
ringOutOuterR : float32
ringOutStartAngle : float32
ringOutEndAngle : float32
ringOutSegments : int
ringOutColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
SetBlend(setBlendMode, layer)
Parameters:
BlendMode
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
SetLineWidth(lineWidthVal, layer)
Parameters:
float32
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
SetScissor(scissorX, scissorY, scissorW, scissorH, layer)
Parameters:
int
scissorY : int
scissorW : int
scissorH : int
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
SetViewport(viewportX, viewportY, viewportW, viewportH, layer)
Parameters:
int
viewportY : int
viewportW : int
viewportH : int
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
Sprite(spriteTexture, spriteDest, spriteSource, spriteOrigin, spriteRotation, spriteColor, layer)
Parameters:
Texture2D
spriteDest : Rectangle
spriteSource : Rectangle
spriteOrigin : Vector2
spriteRotation : float32
spriteColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
Text(textFont, textValue, textPosition, textFontSize, textSpacing, textColor, layer)
Parameters:
Font
textValue : string
textPosition : Vector2
textFontSize : float32
textSpacing : float32
textColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
Triangle(triV1, triV2, triV3, triColor, layer)
Parameters:
Vector2
triV2 : Vector2
triV3 : Vector2
triColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
TriangleFan(fanPoints, fanColor, layer)
Parameters:
Vector2[]
fanColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Full Usage:
TriangleStrip(stripTriPoints, stripTriColor, layer)
Parameters:
Vector2[]
stripTriColor : Color
layer : int<MeasureProduct<RenderLayer, MeasureOne>>
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsBeginCamera
Returns: bool
|
|
Full Usage:
this.IsBeginCameraConfig
Returns: bool
|
|
Full Usage:
this.IsBeginShader
Returns: bool
|
|
Full Usage:
this.IsBeginTarget
Returns: bool
|
|
Full Usage:
this.IsBezier
Returns: bool
|
|
Full Usage:
this.IsCircleGradient
Returns: bool
|
|
Full Usage:
this.IsCircleOutline
Returns: bool
|
|
Full Usage:
this.IsCircleSector
Returns: bool
|
|
Full Usage:
this.IsCircleSectorOutline
Returns: bool
|
|
Full Usage:
this.IsClear
Returns: bool
|
|
Full Usage:
this.IsClearScissor
Returns: bool
|
|
Full Usage:
this.IsDisableShadows
Returns: bool
|
|
Full Usage:
this.IsDrawImmediate
Returns: bool
|
|
Full Usage:
this.IsEllipseOutline
Returns: bool
|
|
Full Usage:
this.IsEnableShadows
Returns: bool
|
|
Full Usage:
this.IsEndCamera
Returns: bool
|
|
Full Usage:
this.IsEndLighting
Returns: bool
|
|
Full Usage:
this.IsEndShader
Returns: bool
|
|
Full Usage:
this.IsEndTarget
Returns: bool
|
|
Full Usage:
this.IsFillCircle
Returns: bool
|
|
Full Usage:
this.IsFillEllipse
Returns: bool
|
|
Full Usage:
this.IsFillPoly
Returns: bool
|
|
Full Usage:
this.IsFillRect
Returns: bool
|
|
Full Usage:
this.IsFillRectRounded
Returns: bool
|
|
Full Usage:
this.IsFillRing
Returns: bool
|
|
Full Usage:
this.IsLine
Returns: bool
|
|
Full Usage:
this.IsLineStrip
Returns: bool
|
|
Full Usage:
this.IsLineThick
Returns: bool
|
|
Full Usage:
this.IsLitSprite
Returns: bool
|
|
Full Usage:
this.IsNoopLight
Returns: bool
|
|
Full Usage:
this.IsParticle
Returns: bool
|
|
Full Usage:
this.IsPolyOutline
Returns: bool
|
|
Full Usage:
this.IsRectGradient
Returns: bool
|
|
Full Usage:
this.IsRectGradientH
Returns: bool
|
|
Full Usage:
this.IsRectGradientV
Returns: bool
|
|
Full Usage:
this.IsRectOutline
Returns: bool
|
|
Full Usage:
this.IsRectRoundedOutline
Returns: bool
|
|
Full Usage:
this.IsRingOutline
Returns: bool
|
|
Full Usage:
this.IsSetBlend
Returns: bool
|
|
Full Usage:
this.IsSetLineWidth
Returns: bool
|
|
Full Usage:
this.IsSetScissor
Returns: bool
|
|
Full Usage:
this.IsSetViewport
Returns: bool
|
|
Full Usage:
this.IsSprite
Returns: bool
|
|
Full Usage:
this.IsText
Returns: bool
|
|
Full Usage:
this.IsTriangle
Returns: bool
|
|
Full Usage:
this.IsTriangleFan
Returns: bool
|
|
Full Usage:
this.IsTriangleStrip
Returns: bool
|
|
Mibo.Raylib