RaylibCoreModuleBase<R extends RaylibBase, UnsignedCharPointerType, AutomationEventListStructType extends AutomationEventListBase<AutomationEventListStructType, AutomationEventStructType> , AutomationEventStructType extends AutomationEventBase<AutomationEventStructType> , BoneInfoStructType extends BoneInfoBase<BoneInfoStructType> , BoundingBoxStructType extends BoundingBoxBase<BoundingBoxStructType, Vector3StructType, MatrixStructType, QuaternionStructType, Vector4StructType> , Camera2DStructType extends Camera2DBase<Camera2DStructType, Vector2StructType, MatrixStructType, Vector3StructType, QuaternionStructType, Vector4StructType> , Camera3DStructType extends Camera3DBase<Camera3DStructType, Vector3StructType, MatrixStructType, QuaternionStructType, Vector4StructType> , ColorStructType extends ColorBase<ColorStructType> , FilePathListStructType extends FilePathListBase<FilePathListStructType> , FontStructType extends FontBase<FontStructType, TextureStructType, RectangleStructType, GlyphInfoStructType, ImageStructType> , GlyphInfoStructType extends GlyphInfoBase<GlyphInfoStructType, ImageStructType> , ImageStructType extends ImageBase<ImageStructType> , MaterialStructType extends MaterialBase<MaterialStructType, ShaderStructType, MaterialMapStructType, TextureStructType, ColorStructType> , MaterialMapStructType extends MaterialMapBase<MaterialMapStructType, TextureStructType, ColorStructType> , MatrixStructType extends MatrixBase<MatrixStructType, Vector3StructType, QuaternionStructType, Vector4StructType> , MeshStructType extends MeshBase<MeshStructType, MatrixStructType, Vector3StructType, QuaternionStructType, Vector4StructType> , ModelStructType extends ModelBase<ModelStructType, MeshStructType, MatrixStructType, Vector3StructType, QuaternionStructType, Vector4StructType, MaterialStructType, ShaderStructType, MaterialMapStructType, TextureStructType, ColorStructType, TransformStructType, BoneInfoStructType> , ModelAnimationStructType extends ModelAnimationBase<ModelAnimationStructType, BoneInfoStructType, TransformStructType, Vector3StructType, MatrixStructType, QuaternionStructType, Vector4StructType> , NPatchInfoStructType extends NPatchInfoBase<NPatchInfoStructType, RectangleStructType> , QuaternionStructType extends QuaternionBase<QuaternionStructType, MatrixStructType, Vector3StructType, Vector4StructType> , RayStructType extends RayBase<RayStructType, Vector3StructType, MatrixStructType, QuaternionStructType, Vector4StructType> , RayCollisionStructType extends RayCollisionBase<RayCollisionStructType, Vector3StructType, MatrixStructType, QuaternionStructType, Vector4StructType> , RectangleStructType extends RectangleBase<RectangleStructType> , RenderTextureStructType extends RenderTextureBase<RenderTextureStructType, TextureStructType> , ShaderStructType extends ShaderBase<ShaderStructType> , TextureStructType extends TextureBase<TextureStructType> , TransformStructType extends TransformBase<TransformStructType, Vector3StructType, MatrixStructType, QuaternionStructType, Vector4StructType> , Vector2StructType extends Vector2Base<Vector2StructType, MatrixStructType, Vector3StructType, QuaternionStructType, Vector4StructType> , Vector3StructType extends Vector3Base<Vector3StructType, MatrixStructType, QuaternionStructType, Vector4StructType> , Vector4StructType extends Vector4Base<Vector4StructType, QuaternionStructType, MatrixStructType, Vector3StructType> , VrDeviceInfoStructType extends VrDeviceInfoBase<VrDeviceInfoStructType> , VrStereoConfigStructType extends VrStereoConfigBase<VrStereoConfigStructType, MatrixStructType, Vector3StructType, QuaternionStructType, Vector4StructType> , LoadFileDataCallbackType extends LoadFileDataCallbackBase, SaveFileDataCallbackType extends SaveFileDataCallbackBase, LoadFileTextCallbackType extends LoadFileTextCallbackBase, SaveFileTextCallbackType extends SaveFileTextCallbackBase> class
abstract
Backend-agnostic contract for the Raylib Core module.
Concrete platform implementations mix in or extend this to provide the full Core API surface across different backends.
- Inheritance
-
- Object
- RaylibModule<
R> - RaylibCoreModuleBase
Constructors
- RaylibCoreModuleBase(R rl)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- RaylibCaptureIds → RaylibCoreModuleCaptureIds
-
Capture ID generator for pointer slots allocated by this module.
final
- RaylibDebugLabels → RaylibCoreModuleDebugLabels
-
Debug label generator for this module's function calls.
final
- rl → R
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
BeginBlendMode(
BlendMode mode) → void - Begin blending mode (alpha, additive, multiplied, subtract, custom)
-
BeginDrawing(
) → void - Setup canvas (framebuffer) to start drawing
-
BeginMode2D(
Camera2DStructType camera) → void - Begin 2D mode with custom camera (2D)
-
BeginMode3D(
Camera3DStructType camera) → void - Begin 3D mode with custom camera (3D)
-
BeginScissorMode(
num x, num y, num width, num height) → void - Begin scissor mode (define screen area for following drawing)
-
BeginShaderMode(
ShaderStructType shader) → void - Begin custom shader drawing
-
BeginTextureMode(
RenderTextureStructType target) → void - Begin drawing to render texture
-
BeginVrStereoMode(
VrStereoConfigStructType config) → void - Begin stereo rendering (requires VR simulator)
-
ChangeDirectory(
String dir) → bool - Change working directory, return true on success
-
CheckCollisionBoxes(
BoundingBoxStructType box1, BoundingBoxStructType box2) → bool - Check collision between two bounding boxes
-
CheckCollisionBoxSphere(
BoundingBoxStructType box, Vector3StructType center, num radius) → bool - Check collision between box and sphere
-
CheckCollisionCircleLine(
Vector2StructType center, num radius, Vector2StructType p1, Vector2StructType p2) → bool -
Check if circle collides with a line created betweeen two points
p1andp2 -
CheckCollisionCircleRec(
Vector2StructType center, num radius, RectangleStructType rec) → bool - Check collision between circle and rectangle
-
CheckCollisionCircles(
Vector2StructType center1, num radius1, Vector2StructType center2, num radius2) → bool - Check collision between two circles
-
CheckCollisionLines(
Vector2StructType startPos1, Vector2StructType endPos1, Vector2StructType startPos2, Vector2StructType endPos2) → (bool, Vector2StructType) - Check the collision between two lines defined by two points each, returns collision point by reference
-
CheckCollisionPointCircle(
Vector2StructType point, Vector2StructType center, num radius) → bool - Check if point is inside circle
-
CheckCollisionPointLine(
Vector2StructType point, Vector2StructType p1, Vector2StructType p2, num threshold) → bool -
Check if point belongs to line created between two points
p1andp2with defined margin in pixelsthreshold -
CheckCollisionPointPoly(
Vector2StructType point, List< Vector2StructType> points) → bool - Check if point is within a polygon described by array of vertices
-
CheckCollisionPointRec(
Vector2StructType point, RectangleStructType rec) → bool - Check if point is inside rectangle
-
CheckCollisionPointTriangle(
Vector2StructType point, Vector2StructType p1, Vector2StructType p2, Vector2StructType p3) → bool - Check if point is inside a triangle
-
CheckCollisionRecs(
RectangleStructType rec1, RectangleStructType rec2) → bool - Check collision between two rectangles
-
CheckCollisionSpheres(
Vector3StructType center1, num radius1, Vector3StructType center2, num radius2) → bool - Check collision between two spheres
-
ClearBackground(
ColorStructType color) → void - Set background color (framebuffer clear color)
-
ClearWindowState(
Iterable< ConfigFlags> flags) → void - Clear window configuration state flags
-
CloseWindow(
) → void - Close window and unload OpenGL context
-
CodepointToUTF8(
num codepoint) → (String, int) - Encode one codepoint into UTF-8 byte array (array length returned as parameter)
-
ColorAlpha(
ColorStructType color, num alpha) → ColorStructType - Get color with alpha applied, alpha goes from 0.0 to 1.0
-
ColorAlphaBlend(
ColorStructType dst, ColorStructType src, ColorStructType tint) → ColorStructType - Get src alpha-blended into dst color with tint
-
ColorBrightness(
ColorStructType color, num factor) → ColorStructType - Get color with brightness correction, brightness factor goes from -1.0 to 1.0
-
ColorContrast(
ColorStructType color, num contrast) → ColorStructType - Get color with contrast correction, contrast values between -1.0 and 1.0
-
ColorFromHSV(
num hue, num saturation, num value) → ColorStructType -
Get a Color from HSV values, hue
0..360, saturation/value0..1 -
ColorFromNormalized(
Vector4StructType normalized) → ColorStructType -
Get Color from normalized values
0..1 -
ColorIsEqual(
ColorStructType col1, ColorStructType col2) → bool - Check if two colors are equal
-
ColorLerp(
ColorStructType color1, ColorStructType color2, num factor) → ColorStructType -
Get color lerp interpolation between two colors, factor
0.0..1.0 -
ColorNormalize(
ColorStructType color) → Vector4StructType -
Get Color normalized as float
0..1 -
ColorTint(
ColorStructType color, ColorStructType tint) → ColorStructType - Get color multiplied with another color
-
ColorToHSV(
ColorStructType color) → Vector3StructType -
Get HSV values for a Color, hue
0..360, saturation/value0..1 -
ColorToInt(
ColorStructType color) → int - Get hexadecimal value for a Color (0xRRGGBBAA)
-
CompressData(
Uint8List data) → Uint8List - Compress data (DEFLATE algorithm)
-
ComputeCRC32(
Uint8List data) → int - Compute CRC32 hash code
-
ComputeMD5(
Uint8List data) → Uint8List - Compute MD5 hash code
-
ComputeSHA1(
Uint8List data) → Uint8List - Compute SHA1 hash code
-
debug(
bool v) → void -
Enables or disables debug logging for this module.
inherited
-
debugError(
String message) → void -
Logs
messageat error level if debug is enabled andmessagepasses all filters.inherited -
debugFilter(
bool filter(String)) → void -
Adds a predicate that gates debug output. Only messages satisfying at least one filter are logged.
inherited
-
debugInfo(
String message) → void -
Logs
messageat info level if debug is enabled andmessagepasses all filters.inherited -
debugTime(
bool v) → void -
Enables or disables per-call timing output alongside debug logs.
inherited
-
debugWarn(
String message) → void -
Logs
messageat warn level if debug is enabled andmessagepasses all filters.inherited -
DecodeDataBase64(
Uint8List data) → Uint8List - Decode Base64 string data
-
DecompressData(
Uint8List compData) → Uint8List - Decompress data (DEFLATE algorithm)
-
DirectoryExists(
String dirPath) → bool - Check if a directory path exists
-
DisableCursor(
) → void - Disables cursor (lock cursor)
-
DisableEventWaiting(
) → void - Disable waiting for events on EndDrawing(), automatic events polling
-
disableSync<
T> (T f()) → T -
Executes
fwith RaylibTempBase syncing temporarily disabled, restoring the previous sync state afterward.inherited -
dispose(
) → void -
Calls all registered onDispose callbacks and clears them.
inherited
-
doLoad(
) → void -
Ensures load is called exactly once, regardless of how many times doLoad is invoked.
inherited
-
DrawBillboard(
Camera3DStructType camera, TextureStructType texture, Vector3StructType position, num scale, ColorStructType tint) → void - Draw a billboard texture
-
DrawBillboardPro(
Camera3DStructType camera, TextureStructType texture, RectangleStructType source, Vector3StructType position, Vector3StructType up, Vector2StructType size, Vector2StructType origin, num rotation, ColorStructType tint) → void - Draw a billboard texture defined by source and rotation
-
DrawBillboardRec(
Camera3DStructType camera, TextureStructType texture, RectangleStructType source, Vector3StructType position, Vector2StructType size, ColorStructType tint) → void - Draw a billboard texture defined by source
-
DrawBoundingBox(
BoundingBoxStructType box, ColorStructType color) → void - Draw bounding box (wires)
-
DrawCapsule(
Vector3StructType startPos, Vector3StructType endPos, num radius, num slices, num rings, ColorStructType color) → void - Draw a capsule with the center of its sphere caps at startPos and endPos
-
DrawCapsuleWires(
Vector3StructType startPos, Vector3StructType endPos, num radius, num slices, num rings, ColorStructType color) → void - Draw capsule wireframe with the center of its sphere caps at startPos and endPos
-
DrawCircle(
num centerX, num centerY, num radius, ColorStructType color) → void - Draw a color-filled circle
-
DrawCircle3D(
Vector3StructType center, num radius, Vector3StructType rotationAxis, num rotationAngle, ColorStructType color) → void - Draw a circle in 3D world space
-
DrawCircleGradient(
num centerX, num centerY, num radius, ColorStructType inner, ColorStructType outer) → void - Draw a gradient-filled circle
-
DrawCircleLines(
num centerX, num centerY, num radius, ColorStructType color) → void - Draw circle outline
-
DrawCircleLinesV(
Vector2StructType center, num radius, ColorStructType color) → void - Draw circle outline (Vector version)
-
DrawCircleSector(
Vector2StructType center, num radius, num startAngle, num endAngle, num segments, ColorStructType color) → void - Draw a piece of a circle
-
DrawCircleSectorLines(
Vector2StructType center, num radius, num startAngle, num endAngle, num segments, ColorStructType color) → void - Draw circle sector outline
-
DrawCircleV(
Vector2StructType center, num radius, ColorStructType color) → void - Draw a color-filled circle (Vector version)
-
DrawCube(
Vector3StructType position, num width, num height, num length, ColorStructType color) → void - Draw cube
-
DrawCubeV(
Vector3StructType position, Vector3StructType size, ColorStructType color) → void - Draw cube (Vector version)
-
DrawCubeWires(
Vector3StructType position, num width, num height, num length, ColorStructType color) → void - Draw cube wires
-
DrawCubeWiresV(
Vector3StructType position, Vector3StructType size, ColorStructType color) → void - Draw cube wires (Vector version)
-
DrawCylinder(
Vector3StructType position, num radiusTop, num radiusBottom, num height, num slices, ColorStructType color) → void - Draw a cylinder/cone
-
DrawCylinderEx(
Vector3StructType startPos, Vector3StructType endPos, num startRadius, num endRadius, num sides, ColorStructType color) → void - Draw a cylinder with base at startPos and top at endPos
-
DrawCylinderWires(
Vector3StructType position, num radiusTop, num radiusBottom, num height, num slices, ColorStructType color) → void - Draw a cylinder/cone wires
-
DrawCylinderWiresEx(
Vector3StructType startPos, Vector3StructType endPos, num startRadius, num endRadius, num sides, ColorStructType color) → void - Draw a cylinder wires with base at startPos and top at endPos
-
DrawEllipse(
num centerX, num centerY, num radiusH, num radiusV, ColorStructType color) → void - Draw ellipse
-
DrawEllipseLines(
num centerX, num centerY, num radiusH, num radiusV, ColorStructType color) → void - Draw ellipse outline
-
DrawFPS(
num posX, num posY) → void - Draw current FPS
-
DrawGrid(
num slices, num spacing) → void - Draw a grid (centered at (0, 0, 0))
-
DrawLine(
num startPosX, num startPosY, num endPosX, num endPosY, ColorStructType color) → void - Draw a line
-
DrawLine3D(
Vector3StructType startPos, Vector3StructType endPos, ColorStructType color) → void - Draw a line in 3D world space
-
DrawLineBezier(
Vector2StructType startPos, Vector2StructType endPos, num thick, ColorStructType color) → void - Draw line segment cubic-bezier in-out interpolation
-
DrawLineEx(
Vector2StructType startPos, Vector2StructType endPos, num thick, ColorStructType color) → void - Draw a line (using triangles/quads)
-
DrawLineStrip(
List< Vector2StructType> points, ColorStructType color) → void - Draw lines sequence (using gl lines)
-
DrawLineV(
Vector2StructType startPos, Vector2StructType endPos, ColorStructType color) → void - Draw a line (using gl lines)
-
DrawMesh(
MeshStructType mesh, MaterialStructType material, MatrixStructType transform) → void - Draw a 3d mesh with material and transform
-
DrawMeshInstanced(
MeshStructType mesh, MaterialStructType material, List< MatrixStructType> transforms) → void - Draw multiple mesh instances with material and different transforms
-
DrawModel(
ModelStructType model, Vector3StructType position, num scale, ColorStructType tint) → void - Draw a model (with texture if set)
-
DrawModelEx(
ModelStructType model, Vector3StructType position, Vector3StructType rotationAxis, num rotationAngle, Vector3StructType scale, ColorStructType tint) → void - Draw a model with extended parameters
-
DrawModelPoints(
ModelStructType model, Vector3StructType position, num scale, ColorStructType tint) → void - Draw a model as points
-
DrawModelPointsEx(
ModelStructType model, Vector3StructType position, Vector3StructType rotationAxis, num rotationAngle, Vector3StructType scale, ColorStructType tint) → void - Draw a model as points with extended parameters
-
DrawModelWires(
ModelStructType model, Vector3StructType position, num scale, ColorStructType tint) → void - Draw a model wires (with texture if set)
-
DrawModelWiresEx(
ModelStructType model, Vector3StructType position, Vector3StructType rotationAxis, num rotationAngle, Vector3StructType scale, ColorStructType tint) → void - Draw a model wires (with texture if set) with extended parameters
-
DrawPixel(
num posX, num posY, ColorStructType color) → void -
Draw a pixel using geometry
Can be slow, use with care -
DrawPixelV(
Vector2StructType position, ColorStructType color) → void -
Draw a pixel using geometry (Vector version)
Can be slow, use with care -
DrawPlane(
Vector3StructType centerPos, Vector2StructType size, ColorStructType color) → void - Draw a plane XZ
-
DrawPoint3D(
Vector3StructType position, ColorStructType color) → void - Draw a point in 3D space, actually a small line
-
DrawPoly(
Vector2StructType center, num sides, num radius, num rotation, ColorStructType color) → void - Draw a regular polygon (Vector version)
-
DrawPolyLines(
Vector2StructType center, num sides, num radius, num rotation, ColorStructType color) → void - Draw a polygon outline of n sides
-
DrawPolyLinesEx(
Vector2StructType center, num sides, num radius, num rotation, num lineThick, ColorStructType color) → void - Draw a polygon outline of n sides with extended parameters
-
DrawRay(
RayStructType ray, ColorStructType color) → void - Draw a ray line
-
DrawRectangle(
num posX, num posY, num width, num height, ColorStructType color) → void - Draw a color-filled rectangle
-
DrawRectangleGradientEx(
RectangleStructType rec, ColorStructType topLeft, ColorStructType bottomLeft, ColorStructType topRight, ColorStructType bottomRight) → void - Draw a gradient-filled rectangle with custom vertex colors
-
DrawRectangleGradientH(
num posX, num posY, num width, num height, ColorStructType left, ColorStructType right) → void - Draw a horizontal-gradient-filled rectangle
-
DrawRectangleGradientV(
num posX, num posY, num width, num height, ColorStructType top, ColorStructType bottom) → void - Draw a vertical-gradient-filled rectangle
-
DrawRectangleLines(
num posX, num posY, num width, num height, ColorStructType color) → void - Draw rectangle outline
-
DrawRectangleLinesEx(
RectangleStructType rec, num lineThick, ColorStructType color) → void - Draw rectangle outline with extended parameters
-
DrawRectanglePro(
RectangleStructType rec, Vector2StructType origin, num rotation, ColorStructType color) → void - Draw a color-filled rectangle with pro parameters
-
DrawRectangleRec(
RectangleStructType rec, ColorStructType color) → void - Draw a color-filled rectangle
-
DrawRectangleRounded(
RectangleStructType rec, num roundness, num segments, ColorStructType color) → void - Draw rectangle with rounded edges
-
DrawRectangleRoundedLines(
RectangleStructType rec, num roundness, num segments, ColorStructType color) → void - Draw rectangle lines with rounded edges
-
DrawRectangleRoundedLinesEx(
RectangleStructType rec, num roundness, num segments, num lineThick, ColorStructType color) → void - Draw rectangle with rounded edges outline
-
DrawRectangleV(
Vector2StructType position, Vector2StructType size, ColorStructType color) → void - Draw a color-filled rectangle (Vector version)
-
DrawRing(
Vector2StructType center, num innerRadius, num outerRadius, num startAngle, num endAngle, num segments, ColorStructType color) → void - Draw ring
-
DrawRingLines(
Vector2StructType center, num innerRadius, num outerRadius, num startAngle, num endAngle, num segments, ColorStructType color) → void - Draw ring outline
-
DrawSphere(
Vector3StructType centerPos, num radius, ColorStructType color) → void - Draw sphere
-
DrawSphereEx(
Vector3StructType centerPos, num radius, num rings, num slices, ColorStructType color) → void - Draw sphere with extended parameters
-
DrawSphereWires(
Vector3StructType centerPos, num radius, num rings, num slices, ColorStructType color) → void - Draw sphere wires
-
DrawSplineBasis(
List< Vector2StructType> points, num thick, ColorStructType color) → void - Draw spline: B-Spline, minimum 4 points
-
DrawSplineBezierCubic(
List< Vector2StructType> points, num thick, ColorStructType color) → void -
Draw spline: Cubic Bezier, minimum 4 points (2 control points):
p1, c2, c3, p4, c5, c6... -
DrawSplineBezierQuadratic(
List< Vector2StructType> points, num thick, ColorStructType color) → void -
Draw spline: Quadratic Bezier, minimum 3 points (1 control point):
p1, c2, p3, c4... -
DrawSplineCatmullRom(
List< Vector2StructType> points, num thick, ColorStructType color) → void - Draw spline: Catmull-Rom, minimum 4 points
-
DrawSplineLinear(
List< Vector2StructType> points, num thick, ColorStructType color) → void - Draw spline: Linear, minimum 2 points
-
DrawSplineSegmentBasis(
Vector2StructType p1, Vector2StructType p2, Vector2StructType p3, Vector2StructType p4, num thick, ColorStructType color) → void - Draw spline segment: B-Spline, 4 points
-
DrawSplineSegmentBezierCubic(
Vector2StructType p1, Vector2StructType c2, Vector2StructType c3, Vector2StructType p4, num thick, ColorStructType color) → void - Draw spline segment: Cubic Bezier, 2 points, 2 control points
-
DrawSplineSegmentBezierQuadratic(
Vector2StructType p1, Vector2StructType c2, Vector2StructType p3, num thick, ColorStructType color) → void - Draw spline segment: Quadratic Bezier, 2 points, 1 control point
-
DrawSplineSegmentCatmullRom(
Vector2StructType p1, Vector2StructType p2, Vector2StructType p3, Vector2StructType p4, num thick, ColorStructType color) → void - Draw spline segment: Catmull-Rom, 4 points
-
DrawSplineSegmentLinear(
Vector2StructType p1, Vector2StructType p2, num thick, ColorStructType color) → void - Draw spline segment: Linear, 2 points
-
DrawText(
String text, num posX, num posY, num fontSize, ColorStructType color) → void - Draw text (using default font)
-
DrawTextCodepoint(
FontStructType font, num codepoint, Vector2StructType position, num fontSize, ColorStructType tint) → void - Draw one character (codepoint)
-
DrawTextCodepoints(
FontStructType font, Int32List codepoints, Vector2StructType position, num fontSize, num spacing, ColorStructType tint) → void - Draw multiple character (codepoint)
-
DrawTextEx(
FontStructType font, String text, Vector2StructType position, num fontSize, num spacing, ColorStructType tint) → void - Draw text using font and additional parameters
-
DrawTextPro(
FontStructType font, String text, Vector2StructType position, Vector2StructType origin, num rotation, num fontSize, num spacing, ColorStructType tint) → void - Draw text using Font and pro parameters (rotation)
-
DrawTexture(
TextureStructType texture, num posX, num posY, ColorStructType tint) → void - Draw a Texture2D
-
DrawTextureEx(
TextureStructType texture, Vector2StructType position, num rotation, num scale, ColorStructType tint) → void - Draw a Texture2D with extended parameters
-
DrawTextureNPatch(
TextureStructType texture, NPatchInfoStructType nPatchInfo, RectangleStructType dest, Vector2StructType origin, num rotation, ColorStructType tint) → void - Draws a texture (or part of it) that stretches or shrinks nicely
-
DrawTexturePro(
TextureStructType texture, RectangleStructType source, RectangleStructType dest, Vector2StructType origin, num rotation, ColorStructType tint) → void - Draw a part of a texture defined by a rectangle with 'pro' parameters
-
DrawTextureRec(
TextureStructType texture, RectangleStructType source, Vector2StructType position, ColorStructType tint) → void - Draw a part of a texture defined by a rectangle
-
DrawTextureV(
TextureStructType texture, Vector2StructType position, ColorStructType tint) → void - Draw a Texture2D with position defined as Vector2
-
DrawTriangle(
Vector2StructType v1, Vector2StructType v2, Vector2StructType v3, ColorStructType color) → void - Draw a color-filled triangle (vertex in counter-clockwise order!)
-
DrawTriangle3D(
Vector3StructType v1, Vector3StructType v2, Vector3StructType v3, ColorStructType color) → void - Draw a color-filled triangle (vertex in counter-clockwise order!)
-
DrawTriangleFan(
List< Vector2StructType> points, ColorStructType color) → void - Draw a triangle fan defined by points (first vertex is the center)
-
DrawTriangleLines(
Vector2StructType v1, Vector2StructType v2, Vector2StructType v3, ColorStructType color) → void - Draw triangle outline (vertex in counter-clockwise order!)
-
DrawTriangleStrip(
List< Vector2StructType> points, ColorStructType color) → void - Draw a triangle strip defined by points
-
DrawTriangleStrip3D(
List< Vector3StructType> points, ColorStructType color) → void - Draw a triangle strip defined by points
-
EnableCursor(
) → void - Enables cursor (unlock cursor)
-
EnableEventWaiting(
) → void - Enable waiting for events on EndDrawing(), no automatic event polling
-
EncodeDataBase64(
Uint8List data) → Uint8List - Encode data to Base64 string
-
EndBlendMode(
) → void - End blending mode (reset to default: alpha blending)
-
EndDrawing(
) → void - End canvas drawing and swap buffers (double buffering)
-
EndMode2D(
) → void - Ends 2D mode with custom camera
-
EndMode3D(
) → void - Ends 3D mode and returns to default 2D orthographic mode
-
EndScissorMode(
) → void - End scissor mode
-
EndShaderMode(
) → void - End custom shader drawing (use default shader)
-
EndTextureMode(
) → void - Ends drawing to render texture
-
EndVrStereoMode(
) → void - End stereo rendering (requires VR simulator)
-
ExportAutomationEventList(
AutomationEventListStructType list, String fileName) → bool - Export automation events list as text file
-
ExportDataAsCode(
Uint8List data, String fileName) → bool - Export data to code (.h), returns true on success
-
ExportFontAsCode(
FontStructType font, String fileName) → bool - Export font as code file, returns true on success
-
ExportImage(
ImageStructType image, String fileName) → bool - Export image data to file, returns true on success
-
ExportImageAsCode(
ImageStructType image, String fileName) → bool - Export image as code file defining an array of bytes, returns true on success
-
ExportImageToMemory(
ImageStructType image, String fileType) → (UnsignedCharPointerType, int) - Export image to memory buffer
-
ExportMesh(
MeshStructType mesh, String fileName) → bool - Export mesh data to file, returns true on success
-
ExportMeshAsCode(
MeshStructType mesh, String fileName) → bool - Export mesh as code file (.h) defining multiple arrays of vertex attributes
-
Fade(
ColorStructType color, num alpha) → ColorStructType - Get color with alpha applied, alpha goes from 0.0 to 1.0
-
FileExists(
String fileName) → bool - Check if file exists
-
GenImageCellular(
num width, num height, num tileSize) → ImageStructType - Generate image: cellular algorithm, bigger tileSize means bigger cells
-
GenImageChecked(
num width, num height, num checksX, num checksY, ColorStructType col1, ColorStructType col2) → ImageStructType - Generate image: checked
-
GenImageColor(
num width, num height, ColorStructType color) → ImageStructType - Generate image: plain color
-
GenImageFontAtlas(
List< GlyphInfoStructType> glyphs, num fontSize, num padding, num packMethod) → (ImageStructType, List<RectangleStructType> ) - Generate image font atlas using chars info
-
GenImageGradientLinear(
num width, num height, num direction, ColorStructType start, ColorStructType end) → ImageStructType -
Generate image: linear gradient, direction in degrees
0..360, 0=Vertical gradient -
GenImageGradientRadial(
num width, num height, num density, ColorStructType inner, ColorStructType outer) → ImageStructType - Generate image: radial gradient
-
GenImageGradientSquare(
num width, num height, num density, ColorStructType inner, ColorStructType outer) → ImageStructType - Generate image: square gradient
-
GenImagePerlinNoise(
num width, num height, num offsetX, num offsetY, num scale) → ImageStructType - Generate image: perlin noise
-
GenImageText(
num width, num height, String text) → ImageStructType - Generate image: grayscale image from text data
-
GenImageWhiteNoise(
num width, num height, num factor) → ImageStructType - Generate image: white noise
-
GenMeshCone(
num radius, num height, num slices) → MeshStructType - Generate cone/pyramid mesh
-
GenMeshCube(
num width, num height, num length) → MeshStructType - Generate cuboid mesh
-
GenMeshCubicmap(
ImageStructType cubicmap, Vector3StructType cubeSize) → MeshStructType - Generate cubes-based map mesh from image data
-
GenMeshCylinder(
num radius, num height, num slices) → MeshStructType - Generate cylinder mesh
-
GenMeshHeightmap(
ImageStructType heightmap, Vector3StructType size) → MeshStructType - Generate heightmap mesh from image data
-
GenMeshHemiSphere(
num radius, num rings, num slices) → MeshStructType - Generate half-sphere mesh (no bottom cap)
-
GenMeshKnot(
num radius, num size, num radSeg, num sides) → MeshStructType - Generate trefoil knot mesh
-
GenMeshPlane(
num width, num length, num resX, num resZ) → MeshStructType - Generate plane mesh (with subdivisions)
-
GenMeshPoly(
num sides, num radius) → MeshStructType - Generate polygonal mesh
-
GenMeshSphere(
num radius, num rings, num slices) → MeshStructType - Generate sphere mesh (standard sphere)
-
GenMeshTangents(
MeshStructType mesh) → void - Compute mesh tangents
-
GenMeshTorus(
num radius, num size, num radSeg, num sides) → MeshStructType - Generate torus mesh
-
GenTextureMipmaps(
TextureStructType texture) → void - Generate GPU mipmaps for a texture
-
GetApplicationDirectory(
) → String - Get the directory of the running application
-
GetCameraMatrix(
Camera3DStructType camera) → MatrixStructType - Get camera transform matrix (view matrix)
-
GetCameraMatrix2D(
Camera2DStructType camera) → MatrixStructType - Get camera 2d transform matrix
-
GetCharPressed(
) → int - Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
-
GetClipboardImage(
) → ImageStructType - Get clipboard image content
-
GetClipboardText(
) → String - Get clipboard text content
-
GetCodepoint(
String text) → (int, int) - Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
-
GetCodepointCount(
String text) → int - Get total number of codepoints in a UTF-8 encoded string
-
GetCodepointNext(
String text) → (int, int) - Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
-
GetCodepointPrevious(
String text) → (int, int) - Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
-
GetCollisionRec(
RectangleStructType rec1, RectangleStructType rec2) → RectangleStructType - Get collision rectangle for two rectangles collision
-
GetColor(
num hexValue) → ColorStructType - Get Color structure from hexadecimal value
-
GetCurrentMonitor(
) → int - Get current monitor where window is placed
-
GetDirectoryPath(
String filePath) → String - Get full path for a given fileName with path
-
GetFileExtension(
String fileName) → String - Get extension for a filename (includes dot: '.png')
-
GetFileLength(
String fileName) → int - Get file length in bytes
-
GetFileModTime(
String fileName) → int - Get file modification time (last write time)
-
GetFileName(
String filePath) → String - Get filename for a path string
-
GetFileNameWithoutExt(
String filePath) → String - Get filename without extension
-
GetFontDefault(
) → FontStructType - Get the default Font
-
GetFPS(
) → int - Get current FPS
-
GetFrameTime(
) → double - Get time in seconds for last frame drawn (delta time)
-
GetGamepadAxisCount(
num gamepad) → int - Get gamepad axis count for a gamepad
-
GetGamepadAxisMovement(
num gamepad, GamepadAxis axis) → double - Get axis movement value for a gamepad axis
-
GetGamepadButtonPressed(
) → GamepadButton - Get the last gamepad button pressed
-
GetGamepadName(
num gamepad) → String - Get gamepad internal name id
-
GetGestureDetected(
) → Gesture - Get latest detected gesture
-
GetGestureDragAngle(
) → double - Get gesture drag angle
-
GetGestureDragVector(
) → Vector2StructType - Get gesture drag vector
-
GetGestureHoldDuration(
) → double - Get gesture hold time in seconds
-
GetGesturePinchAngle(
) → double - Get gesture pinch angle
-
GetGesturePinchVector(
) → Vector2StructType - Get gesture pinch delta
-
GetGlyphAtlasRec(
FontStructType font, num codepoint) → RectangleStructType - Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
-
GetGlyphIndex(
FontStructType font, num codepoint) → int - Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
-
GetGlyphInfo(
FontStructType font, num codepoint) → GlyphInfoStructType - Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
-
GetImageAlphaBorder(
ImageStructType image, num threshold) → RectangleStructType - Get image alpha border rectangle
-
GetImageColor(
ImageStructType image, num x, num y) → ColorStructType - Get image pixel color at (x, y) position
-
GetKeyPressed(
) → int - Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
-
GetMeshBoundingBox(
MeshStructType mesh) → BoundingBoxStructType - Compute mesh bounding box limits
-
GetModelBoundingBox(
ModelStructType model) → BoundingBoxStructType - Compute model bounding box limits (considers all meshes)
-
GetMonitorCount(
) → int - Get number of connected monitors
-
GetMonitorHeight(
num monitor) → int - Get specified monitor height (current video mode used by monitor)
-
GetMonitorName(
num monitor) → String - Get the human-readable, UTF-8 encoded name of the specified monitor
-
GetMonitorPhysicalHeight(
num monitor) → int - Get specified monitor physical height in millimetres
-
GetMonitorPhysicalWidth(
num monitor) → int - Get specified monitor physical width in millimetres
-
GetMonitorPosition(
num monitor) → Vector2StructType - Get specified monitor position
-
GetMonitorRefreshRate(
num monitor) → int - Get specified monitor refresh rate
-
GetMonitorWidth(
num monitor) → int - Get specified monitor width (current video mode used by monitor)
-
GetMouseButtonInfo(
MouseButton button) → MouseButtonInfo -
GetMouseDelta(
) → Vector2StructType - Get mouse delta between frames
-
GetMouseInfo(
) → MouseInfo< Vector2StructType> -
GetMousePosition(
) → Vector2StructType - Get mouse position XY
-
GetMouseWheelMove(
) → double - Get mouse wheel movement for X or Y, whichever is larger
-
GetMouseWheelMoveV(
) → Vector2StructType - Get mouse wheel movement for both X and Y
-
GetMouseX(
) → int - Get mouse position X
-
GetMouseY(
) → int - Get mouse position Y
-
GetPixelDataSize(
num width, num height, PixelFormat format) → int - Get pixel data size in bytes for certain format
-
GetPrevDirectoryPath(
String dirPath) → String - Get previous directory path for a given path
-
GetRandomValue(
num min, num max) → int - Get a random value between min and max (both included)
-
GetRayCollisionBox(
RayStructType ray, BoundingBoxStructType box) → RayCollisionStructType - Get collision info between ray and box
-
GetRayCollisionMesh(
RayStructType ray, MeshStructType mesh, MatrixStructType transform) → RayCollisionStructType - Get collision info between ray and mesh
-
GetRayCollisionQuad(
RayStructType ray, Vector3StructType p1, Vector3StructType p2, Vector3StructType p3, Vector3StructType p4) → RayCollisionStructType - Get collision info between ray and quad
-
GetRayCollisionSphere(
RayStructType ray, Vector3StructType center, num radius) → RayCollisionStructType - Get collision info between ray and sphere
-
GetRayCollisionTriangle(
RayStructType ray, Vector3StructType p1, Vector3StructType p2, Vector3StructType p3) → RayCollisionStructType - Get collision info between ray and triangle
-
GetRenderHeight(
) → int - Get current render height (it considers HiDPI)
-
GetRenderWidth(
) → int - Get current render width (it considers HiDPI)
-
GetScreenHeight(
) → int - Get current screen height
-
GetScreenToWorld2D(
Vector2StructType position, Camera2DStructType camera) → Vector2StructType - Get the world space position for a 2d camera screen space position
-
GetScreenToWorldRay(
Vector2StructType position, Camera3DStructType camera) → RayStructType - Get a ray trace from screen position (i.e mouse)
-
GetScreenToWorldRayEx(
Vector2StructType position, Camera3DStructType camera, num width, num height) → RayStructType - Get a ray trace from screen position (i.e mouse) in a viewport
-
GetScreenWidth(
) → int - Get current screen width
-
GetShaderLocation(
ShaderStructType shader, String uniformName) → int - Get shader uniform location
-
GetShaderLocationAttrib(
ShaderStructType shader, String attribName) → int - Get shader attribute location
-
GetShapesTexture(
) → TextureStructType - Get texture that is used for shapes drawing
-
GetShapesTextureRectangle(
) → RectangleStructType - Get texture source rectangle that is used for shapes drawing
-
GetSplinePointBasis(
Vector2StructType p1, Vector2StructType p2, Vector2StructType p3, Vector2StructType p4, num t) → Vector2StructType - Get (evaluate) spline point: B-Spline
-
GetSplinePointBezierCubic(
Vector2StructType p1, Vector2StructType c2, Vector2StructType c3, Vector2StructType p4, num t) → Vector2StructType - Get (evaluate) spline point: Cubic Bezier
-
GetSplinePointBezierQuad(
Vector2StructType p1, Vector2StructType c2, Vector2StructType p3, num t) → Vector2StructType - Get (evaluate) spline point: Quadratic Bezier
-
GetSplinePointCatmullRom(
Vector2StructType p1, Vector2StructType p2, Vector2StructType p3, Vector2StructType p4, num t) → Vector2StructType - Get (evaluate) spline point: Catmull-Rom
-
GetSplinePointLinear(
Vector2StructType startPos, Vector2StructType endPos, num t) → Vector2StructType - Get (evaluate) spline point: Linear
-
GetTime(
) → double - Get elapsed time in seconds since InitWindow()
-
GetTouchPointCount(
) → int - Get number of touch points
-
GetTouchPointId(
num index) → int - Get touch point identifier for given index
-
GetTouchPosition(
num index) → Vector2StructType - Get touch position XY for a touch point index (relative to screen size)
-
GetTouchX(
) → int - Get touch position X for touch point 0 (relative to screen size)
-
GetTouchY(
) → int - Get touch position Y for touch point 0 (relative to screen size)
-
GetWindowPosition(
) → Vector2StructType - Get window position XY on monitor
-
GetWindowScaleDPI(
) → Vector2StructType - Get window scale DPI factor
-
GetWorkingDirectory(
) → String - Get current working directory
-
GetWorldToScreen(
Vector3StructType position, Camera3DStructType camera) → Vector2StructType - Get the screen space position for a 3d world space position
-
GetWorldToScreen2D(
Vector2StructType position, Camera2DStructType camera) → Vector2StructType - Get the screen space position for a 2d camera world space position
-
GetWorldToScreenEx(
Vector3StructType position, Camera3DStructType camera, num width, num height) → Vector2StructType - Get size position for a 3d world space position
-
HideCursor(
) → void - Hides cursor
-
ImageAlphaClear(
ImageStructType image, ColorStructType color, num threshold) → void - Clear alpha channel to desired color
-
ImageAlphaCrop(
ImageStructType image, num threshold) → void - Crop image depending on alpha value
-
ImageAlphaMask(
ImageStructType image, ImageStructType alphaMask) → void - Apply alpha mask to image
-
ImageAlphaPremultiply(
ImageStructType image) → void - Premultiply alpha channel
-
ImageBlurGaussian(
ImageStructType image, num blurSize) → void - Apply Gaussian blur using a box blur approximation
-
ImageClearBackground(
ImageStructType dst, ColorStructType color) → void - Clear image background with given color
-
ImageColorBrightness(
ImageStructType image, num brightness) → void - Modify image color: brightness (-255 to 255)
-
ImageColorContrast(
ImageStructType image, num contrast) → void - Modify image color: contrast (-100 to 100)
-
ImageColorGrayscale(
ImageStructType image) → void - Modify image color: grayscale
-
ImageColorInvert(
ImageStructType image) → void - Modify image color: invert
-
ImageColorReplace(
ImageStructType image, ColorStructType color, ColorStructType replace) → void - Modify image color: replace color
-
ImageColorTint(
ImageStructType image, ColorStructType color) → void - Modify image color: tint
-
ImageCopy(
ImageStructType image) → ImageStructType - Create an image duplicate (useful for transformations)
-
ImageCrop(
ImageStructType image, RectangleStructType crop) → void - Crop an image to a defined rectangle
-
ImageDither(
ImageStructType image, num rBpp, num gBpp, num bBpp, num aBpp) → void - Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
-
ImageDraw(
ImageStructType dst, ImageStructType src, RectangleStructType srcRec, RectangleStructType dstRec, ColorStructType tint) → void - Draw a source image within a destination image (tint applied to source)
-
ImageDrawCircle(
ImageStructType dst, num centerX, num centerY, num radius, ColorStructType color) → void - Draw a filled circle within an image
-
ImageDrawCircleLines(
ImageStructType dst, num centerX, num centerY, num radius, ColorStructType color) → void - Draw circle outline within an image
-
ImageDrawCircleLinesV(
ImageStructType dst, Vector2StructType center, num radius, ColorStructType color) → void - Draw circle outline within an image (Vector version)
-
ImageDrawCircleV(
ImageStructType dst, Vector2StructType center, num radius, ColorStructType color) → void - Draw a filled circle within an image (Vector version)
-
ImageDrawLine(
ImageStructType dst, num startPosX, num startPosY, num endPosX, num endPosY, ColorStructType color) → void - Draw line within an image
-
ImageDrawLineEx(
ImageStructType dst, Vector2StructType start, Vector2StructType end, num thick, ColorStructType color) → void - Draw a line defining thickness within an image
-
ImageDrawLineV(
ImageStructType dst, Vector2StructType start, Vector2StructType end, ColorStructType color) → void - Draw line within an image (Vector version)
-
ImageDrawPixel(
ImageStructType dst, num posX, num posY, ColorStructType color) → void - Draw pixel within an image
-
ImageDrawPixelV(
ImageStructType dst, Vector2StructType position, ColorStructType color) → void - Draw pixel within an image (Vector version)
-
ImageDrawRectangle(
ImageStructType dst, num posX, num posY, num width, num height, ColorStructType color) → void - Draw rectangle within an image
-
ImageDrawRectangleLines(
ImageStructType dst, RectangleStructType rec, num thick, ColorStructType color) → void - Draw rectangle lines within an image
-
ImageDrawRectangleRec(
ImageStructType dst, RectangleStructType rec, ColorStructType color) → void - Draw rectangle within an image
-
ImageDrawRectangleV(
ImageStructType dst, Vector2StructType position, Vector2StructType size, ColorStructType color) → void - Draw rectangle within an image (Vector version)
-
ImageDrawText(
ImageStructType dst, String text, num posX, num posY, num fontSize, ColorStructType color) → void - Draw text (using default font) within an image (destination)
-
ImageDrawTextEx(
ImageStructType dst, FontStructType font, String text, Vector2StructType position, num fontSize, num spacing, ColorStructType tint) → void - Draw text (custom sprite font) within an image (destination)
-
ImageDrawTriangle(
ImageStructType dst, Vector2StructType v1, Vector2StructType v2, Vector2StructType v3, ColorStructType color) → void - Draw triangle within an image
-
ImageDrawTriangleEx(
ImageStructType dst, Vector2StructType v1, Vector2StructType v2, Vector2StructType v3, ColorStructType c1, ColorStructType c2, ColorStructType c3) → void - Draw triangle with interpolated colors within an image
-
ImageDrawTriangleFan(
ImageStructType dst, List< Vector2StructType> points, ColorStructType color) → void - Draw a triangle fan defined by points within an image (first vertex is the center)
-
ImageDrawTriangleLines(
ImageStructType dst, Vector2StructType v1, Vector2StructType v2, Vector2StructType v3, ColorStructType color) → void - Draw triangle outline within an image
-
ImageDrawTriangleStrip(
ImageStructType dst, List< Vector2StructType> points, ColorStructType color) → void - Draw a triangle strip defined by points within an image
-
ImageFlipHorizontal(
ImageStructType image) → void - Flip image horizontally
-
ImageFlipVertical(
ImageStructType image) → void - Flip image vertically
-
ImageFormat(
ImageStructType image, PixelFormat newFormat) → void - Convert image data to desired format
-
ImageFromChannel(
ImageStructType image, num selectedChannel) → ImageStructType - Create an image from a selected channel of another image (GRAYSCALE)
-
ImageFromImage(
ImageStructType image, RectangleStructType rec) → ImageStructType - Create an image from another image piece
-
ImageKernelConvolution(
ImageStructType image, List< double> kernel) → void - Apply custom square convolution kernel to image
-
ImageMipmaps(
ImageStructType image) → void - Compute all mipmap levels for a provided image
-
ImageResize(
ImageStructType image, num newWidth, num newHeight) → void - Resize image (Bicubic scaling algorithm)
-
ImageResizeCanvas(
ImageStructType image, num newWidth, num newHeight, num offsetX, num offsetY, ColorStructType fill) → void - Resize canvas and fill with color
-
ImageResizeNN(
ImageStructType image, num newWidth, num newHeight) → void - Resize image (Nearest-Neighbor scaling algorithm)
-
ImageRotate(
ImageStructType image, num degrees) → void - Rotate image by input angle in degrees (-359 to 359)
-
ImageRotateCCW(
ImageStructType image) → void - Rotate image counter-clockwise 90deg
-
ImageRotateCW(
ImageStructType image) → void - Rotate image clockwise 90deg
-
ImageText(
String text, num fontSize, ColorStructType color) → ImageStructType - Create an image from text (default font)
-
ImageTextEx(
FontStructType font, String text, num fontSize, num spacing, ColorStructType tint) → ImageStructType - Create an image from text (custom sprite font)
-
ImageToPOT(
ImageStructType image, ColorStructType fill) → void - Convert image to POT (power-of-two)
-
InitWindow(
num width, num height, String title) → void - Initialize window and OpenGL context
-
IsCursorHidden(
) → bool - Check if cursor is not visible
-
IsCursorOnScreen(
) → bool - Check if cursor is on the screen
-
IsFileDropped(
) → bool - Check if a file has been dropped into window
-
IsFileExtension(
String fileName, String ext) → bool - Check file extension (including point: .png, .wav)
-
IsFileNameValid(
String fileName) → bool - Check if fileName is valid for the platform/OS
-
IsFontValid(
FontStructType font) → bool - Check if a font is valid (font data loaded, WARNING: GPU texture not checked)
-
IsGamepadAvailable(
num gamepad) → bool - Check if a gamepad is available
-
IsGamepadButtonDown(
num gamepad, GamepadButton button) → bool - Check if a gamepad button is being pressed
-
IsGamepadButtonPressed(
num gamepad, GamepadButton button) → bool - Check if a gamepad button has been pressed once
-
IsGamepadButtonReleased(
num gamepad, GamepadButton button) → bool - Check if a gamepad button has been released once
-
IsGamepadButtonUp(
num gamepad, GamepadButton button) → bool - Check if a gamepad button is NOT being pressed
-
IsGestureDetected(
Gesture key) → bool - Check if a gesture have been detected
-
IsImageValid(
ImageStructType image) → bool - Check if an image is valid (data and parameters)
-
IsKeyDown(
KeyboardKey key) → bool - Check if a key is being pressed
-
IsKeyPressed(
KeyboardKey key) → bool - Check if a key has been pressed once
-
IsKeyPressedRepeat(
KeyboardKey key) → bool - Check if a key has been pressed again
-
IsKeyReleased(
KeyboardKey key) → bool - Check if a key has been released once
-
IsKeyUp(
KeyboardKey key) → bool - Check if a key is NOT being pressed
-
IsMaterialValid(
MaterialStructType material) → bool - Check if a material is valid (shader assigned, map textures loaded in GPU)
-
IsModelAnimationValid(
ModelStructType model, ModelAnimationStructType anim) → bool - Check model animation skeleton match
-
IsModelValid(
ModelStructType model) → bool - Check if a model is valid (loaded in GPU, VAO/VBOs)
-
IsMouseButtonDown(
MouseButton button) → bool - Check if a mouse button is being pressed
-
IsMouseButtonPressed(
MouseButton button) → bool - Check if a mouse button has been pressed once
-
IsMouseButtonReleased(
MouseButton button) → bool - Check if a mouse button has been released once
-
IsMouseButtonUp(
MouseButton button) → bool - Check if a mouse button is NOT being pressed
-
IsPathFile(
String path) → bool - Check if a given path is a file or a directory
-
IsRenderTextureValid(
RenderTextureStructType target) → bool - Check if a render texture is valid (loaded in GPU)
-
IsShaderValid(
ShaderStructType shader) → bool - Check if a shader is valid (loaded on GPU)
-
IsTextureValid(
TextureStructType texture) → bool - Check if a texture is valid (loaded in GPU)
-
IsWindowFocused(
) → bool - Check if window is currently focused
-
IsWindowFullscreen(
) → bool - Check if window is currently fullscreen
-
IsWindowHidden(
) → bool - Check if window is currently hidden
-
IsWindowMaximized(
) → bool - Check if window is currently maximized
-
IsWindowMinimized(
) → bool - Check if window is currently minimized
-
IsWindowReady(
) → bool - Check if window has been initialized successfully
-
IsWindowResized(
) → bool - Check if window has been resized last frame
-
IsWindowState(
ConfigFlags flag) → bool - Check if one specific window flag is enabled
-
load(
) → void -
Override to perform one-time module initialization. Called by doLoad.
inherited
-
LoadAutomationEventList(
String? fileName) → AutomationEventListStructType - Load automation events list from file, NULL for empty list
-
LoadCodepoints(
String text) → Int32List - Load all codepoints from a UTF-8 text string, codepoints count returned by parameter
-
LoadDirectoryFiles(
String dirPath) → FilePathListStructType - Load directory filepaths
-
LoadDirectoryFilesEx(
String basePath, String filter, bool scanSubdirs) → FilePathListStructType - Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
-
LoadDroppedFiles(
) → FilePathListStructType - Load dropped filepaths
-
LoadFileData(
String fileName) → Uint8List - Load file data as byte array (read)
-
LoadFileText(
String fileName) → String - Load text data from file (read)
-
LoadFont(
String fileName) → FontStructType - Load font from file into GPU memory (VRAM)
-
LoadFontData(
Uint8List fileData, num fontSize, Int32List? codepoints, num? codepointCount, FontType type) → List< GlyphInfoStructType> - Load font data for further use
-
LoadFontEx(
String fileName, num fontSize, [Int32List? codepoints, num? codePointCount]) → FontStructType - Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
-
LoadFontFromImage(
ImageStructType image, ColorStructType key, num firstChar) → FontStructType - Load font from Image (XNA style)
-
LoadFontFromMemory(
String fileType, Uint8List fileData, num fontSize, Int32List codepoints) → FontStructType - Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
-
LoadImage(
String fileName) → ImageStructType - Load image from file into CPU memory (RAM)
-
LoadImageAnim(
String fileName) → ImageStructType - Load image sequence from file (frames appended to image.data)
-
LoadImageAnimFromMemory(
String fileType, Uint8List fileData) → ImageStructType - Load image sequence from memory buffer
-
LoadImageColors(
ImageStructType image) → List< ColorStructType> - Load color data from image as a Color array (RGBA - 32bit)
-
LoadImageFromMemory(
String fileType, Uint8List fileData) → ImageStructType - Load image from memory buffer, fileType refers to extension: i.e. '.png'
-
LoadImageFromScreen(
) → ImageStructType - Load image from screen buffer and (screenshot)
-
LoadImageFromTexture(
TextureStructType texture) → ImageStructType - Load image from GPU texture data
-
LoadImagePalette(
ImageStructType image, num maxPaletteSize) → List< ColorStructType> - Load colors palette from image as a Color array (RGBA - 32bit)
-
LoadImageRaw(
String fileName, num width, num height, PixelFormat format, num headerSize) → ImageStructType - Load image from RAW file data
-
LoadMaterialDefault(
) → MaterialStructType - Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
-
LoadMaterials(
String fileName) → List< MaterialStructType> - Load materials from model file
-
LoadModel(
String fileName) → ModelStructType - Load model from files (meshes and materials)
-
LoadModelAnimations(
String fileName) → List< ModelAnimationStructType> - Load model animations from file
-
LoadModelFromMesh(
MeshStructType mesh) → ModelStructType - Load model from generated mesh (default material)
-
LoadRandomSequence(
int count, int min, int max, [int? seed]) → List< int> - Load random values sequence, no values repeated
-
LoadRenderTexture(
num width, num height) → RenderTextureStructType - Load texture for rendering (framebuffer)
-
LoadShader(
String? vsFileName, String? fsFileName) → ShaderStructType - Load shader from files and bind default locations
-
LoadShaderFromMemory(
String? vsCode, String? fsCode) → ShaderStructType - Load shader from code strings and bind default locations
-
LoadTexture(
String fileName) → TextureStructType - Load texture from file into GPU memory (VRAM)
-
LoadTextureCubemap(
ImageStructType image, CubemapLayout layout) → TextureStructType - Load cubemap from image, multiple image cubemap layouts supported
-
LoadTextureFromImage(
ImageStructType image) → TextureStructType - Load texture from image data
-
LoadUTF8(
Int32List codepoints) → String - Load UTF-8 text encoded from codepoints array
-
LoadVrStereoConfig(
VrDeviceInfoStructType device) → VrStereoConfigStructType - Load VR stereo config for VR simulator device parameters
-
logError(
Object? message) → void -
inherited
-
logInfo(
Object? message) → void -
inherited
-
logWarn(
Object? message) → void -
inherited
-
MakeDirectory(
String dirPath) → int - Create directories (including full path requested), returns 0 on success
-
MaximizeWindow(
) → void - Set window state: maximized, if ConfigFlags.FLAG_WINDOW_RESIZABLE
-
MeasureText(
String text, num fontSize) → int - Measure string width for default font
-
MeasureTextEx(
FontStructType font, String text, num fontSize, num spacing) → Vector2StructType - Measure string size for Font
-
MinimizeWindow(
) → void - Set window state: minimized, if ConfigFlags.FLAG_WINDOW_RESIZABLE
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDispose(
void fn()) → void -
Registers
fnto be called when this module is disposed.inherited -
OpenURL(
String url) → void - Open URL with default system browser (if available)
-
PlayAutomationEvent(
AutomationEventStructType event) → void - Play a recorded automation event
-
PollInputEvents(
) → void - Register all input events
-
RestoreWindow(
) → void - Set window state: not minimized/maximized
-
run<
T> (String name(), T f()) → T -
Executes
f, logging its label (and optionally timing it) when debug is enabled and the label passes all filters.inherited -
SaveFileData(
String fileName, Uint8List data) → bool - Save data to file from byte array (write), returns true on success
-
SaveFileText(
String fileName, String text) → bool - Save text data to file (write), returns true on success
-
SetAutomationEventBaseFrame(
int frame) → void - Set automation event internal base frame to start recording
-
SetAutomationEventList(
AutomationEventListStructType list) → void - Set automation event list to record to
-
SetClipboardText(
String text) → void - Set clipboard text content
-
SetConfigFlags(
Iterable< ConfigFlags> flags) → void - Setup init configuration flags (view ConfigFlags)
-
SetExitKey(
KeyboardKey key) → void - Set a custom key to exit program (default is ESC)
-
SetGamepadMappings(
String mappings) → int - Set internal gamepad mappings (SDL_GameControllerDB)
-
SetGamepadVibration(
num gamepad, num leftMotor, num rightMotor, num duration) → void - Set gamepad vibration for both motors (duration in seconds)
-
SetGesturesEnabled(
Iterable< Gesture> flags) → void - Enable a set of gestures using flags Gesture
-
SetLoadFileDataCallback(
LoadFileDataCallbackType? callback) → void - Set custom file binary data loader
-
SetLoadFileTextCallback(
LoadFileTextCallbackType? callback) → void - Set custom file text data loader
-
SetMaterialTexture(
MaterialStructType material, MaterialMapIndex mapType, TextureStructType texture) → void - Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)
-
SetModelMeshMaterial(
ModelStructType model, num meshId, num materialId) → void - Set material for a mesh
-
SetMouseCursor(
MouseCursor cursor) → void - Set mouse cursor
-
SetMouseOffset(
num offsetX, num offsetY) → void - Set mouse offset
-
SetMousePosition(
num x, num y) → void - Set mouse position XY
-
SetMouseScale(
num scaleX, num scaleY) → void - Set mouse scaling
-
SetRandomSeed(
num seed) → void - Set the seed for the random number generator
-
SetSaveFileDataCallback(
SaveFileDataCallbackType? callback) → void - Set custom file binary data saver
-
SetSaveFileTextCallback(
SaveFileTextCallbackType? callback) → void - Set custom file text data saver
-
SetShaderValue(
ShaderStructType shader, num locIndex, List< num> value, ShaderUniformDataType uniformType) → void - Set shader uniform value
-
SetShaderValueMatrix(
ShaderStructType shader, num locIndex, MatrixStructType mat) → void - Set shader uniform value (matrix 4x4)
-
SetShaderValueTexture(
ShaderStructType shader, num locIndex, TextureStructType texture) → void - Set shader uniform value for texture (sampler2d)
-
SetShaderValueV(
ShaderStructType shader, num locIndex, List< num> value, ShaderUniformDataType uniformType, num count) → void - Set shader uniform value vector
-
SetShapesTexture(
TextureStructType texture, RectangleStructType source) → void - Set texture and rectangle to be used on shapes drawing
-
SetTargetFPS(
num fps) → void - Set target FPS (maximum)
-
SetTextLineSpacing(
num spacing) → void - Set vertical line spacing when drawing with line-breaks
-
SetTextureFilter(
TextureStructType texture, TextureFilter filter) → void - Set texture scaling filter mode
-
SetTextureWrap(
TextureStructType texture, TextureWrap wrap) → void - Set texture wrapping mode
-
SetTraceLogLevel(
TraceLogLevel logLevel) → void - Set the current threshold (minimum) log level
-
SetWindowFocused(
) → void - Set window focused
-
SetWindowIcon(
ImageStructType image) → void - Set icon for window (single image, RGBA 32bit)
-
SetWindowIcons(
List< ImageStructType> images) → void - Set icon for window (multiple images, RGBA 32bit)
-
SetWindowMaxSize(
num width, num height) → void - Set window maximum dimensions (for ConfigFlags.FLAG_WINDOW_RESIZABLE)
-
SetWindowMinSize(
num width, num height) → void - Set window minimum dimensions (for ConfigFlags.FLAG_WINDOW_RESIZABLE)
-
SetWindowMonitor(
num monitor) → void - Set monitor for the current window
-
SetWindowOpacity(
num opacity) → void -
Set window opacity
0.0..1.0 -
SetWindowPosition(
num x, num y) → void - Set window position on screen
-
SetWindowSize(
num width, num height) → void - Set window dimensions
-
SetWindowState(
Iterable< ConfigFlags> flags) → void - Set window configuration state using flags
-
SetWindowTitle(
String title) → void - Set title for window
-
ShowCursor(
) → void - Shows cursor
-
StartAutomationEventRecording(
) → void - Start recording automation events (AutomationEventList must be set)
-
StopAutomationEventRecording(
) → void - Stop recording automation events
-
SwapScreenBuffer(
) → void - Swap back buffer with front buffer (screen drawing)
-
TakeScreenshot(
String fileName) → void - Takes a screenshot of current screen (filename extension defines format)
-
ToggleBorderlessWindowed(
) → void - Toggle window state: borderless windowed, resizes window to match monitor resolution
-
ToggleFullscreen(
) → void - Toggle window state: fullscreen/windowed, resizes monitor to match window resolution
-
toString(
) → String -
A string representation of this object.
inherited
-
TraceLog(
TraceLogLevel logLevel, String text) → void - Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
-
UnloadAutomationEventList(
AutomationEventListStructType list) → void - Unload automation events list from file
-
UnloadDirectoryFiles(
FilePathListStructType files) → void - Unload filepaths
-
UnloadDroppedFiles(
FilePathListStructType files) → void - Unload dropped filepaths
-
UnloadFont(
FontStructType font) → void - Unload font from GPU memory (VRAM)
-
UnloadFontData(
List< GlyphInfoStructType> glyphs) → void - Unload font chars info data (RAM)
-
UnloadImage(
ImageStructType image) → void - Unload image from CPU memory (RAM)
-
UnloadMaterial(
MaterialStructType material) → void - Unload material from GPU memory (VRAM)
-
UnloadMesh(
MeshStructType mesh) → void - Unload mesh data from CPU and GPU
-
UnloadModel(
ModelStructType model) → void - Unload model (including meshes) from memory (RAM and/or VRAM)
-
UnloadModelAnimation(
ModelAnimationStructType anim) → void - Unload animation data
-
UnloadModelAnimations(
List< ModelAnimationStructType> animations) → void - Unload animation array data
-
UnloadRenderTexture(
RenderTextureStructType target) → void - Unload render texture from GPU memory (VRAM)
-
UnloadShader(
ShaderStructType shader) → void - Unload shader from GPU memory (VRAM)
-
UnloadTexture(
TextureStructType texture) → void - Unload texture from GPU memory (VRAM)
-
UnloadVrStereoConfig(
VrStereoConfigStructType config) → void - Unload VR stereo config
-
UpdateCamera(
Camera3DStructType camera, CameraMode mode) → void - Update camera position for selected mode
-
UpdateCameraPro(
Camera3DStructType camera, Vector3StructType movement, Vector3StructType rotation, num zoom) → void - Update camera movement/rotation
-
UpdateMeshBuffer(
MeshStructType mesh, num index, TypedDataList data, num offset) → void - Update mesh vertex data in GPU for a specific buffer index
-
UpdateModelAnimation(
ModelStructType model, ModelAnimationStructType anim, num frame) → void - Update model animation pose (CPU)
-
UpdateModelAnimationBones(
ModelStructType model, ModelAnimationStructType anim, num frame) → void - Update model animation mesh bone matrices (GPU skinning)
-
UpdateTexture(
TextureStructType texture, Uint8List pixels) → void - Update GPU texture with new data
-
UpdateTextureRec(
TextureStructType texture, RectangleStructType rec, Uint8List pixels) → void - Update GPU texture rectangle with new data
-
UploadMesh(
MeshStructType mesh, bool dynamic) → void - Upload mesh vertex data in GPU and provide VAO/VBO ids
-
WaitTime(
num seconds) → void - Wait for some time (halt program execution)
-
WindowShouldClose(
) → bool - Check if application should close (KeyboardKey.KEY_ESCAPE pressed or windows close icon clicked)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited