RaylibCoreDart<R extends RaylibBase> class
final
Backend-agnostic Raylib Core module.
- Inheritance
-
- Object
- RaylibModule<
R> - RaylibCoreDart
Constructors
- RaylibCoreDart(R rl)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- rl → R
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Temp
→ RaylibTemp<
RaylibBase> -
See RaylibTemp.
no setterinherited
Methods
-
BeginBlendMode(
BlendMode mode) → void - Begin blending mode (alpha, additive, multiplied, subtract, custom)
-
BeginDrawing(
) → void - Setup canvas (framebuffer) to start drawing
-
BeginMode2D(
Camera2D camera) → void - Begin 2D mode with custom camera (2D)
-
BeginMode3D(
Camera3D 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(
Shader shader) → void - Begin custom shader drawing
-
BeginTextureMode(
RenderTexture target) → void - Begin drawing to render texture
-
BeginVrStereoMode(
VrStereoConfig config) → void - Begin stereo rendering (requires VR simulator)
-
ChangeDirectory(
String dir) → bool - Change working directory, return true on success
-
CheckCollisionBoxes(
BoundingBox box1, BoundingBox box2) → bool - Check collision between two bounding boxes
-
CheckCollisionBoxSphere(
BoundingBox box, Vector3 center, num radius) → bool - Check collision between box and sphere
-
CheckCollisionCircleLine(
Vector2 center, num radius, Vector2 p1, Vector2 p2) → bool -
Check if circle collides with a line created betweeen two points
p1andp2 -
CheckCollisionCircleRec(
Vector2 center, num radius, Rectangle rec) → bool - Check collision between circle and rectangle
-
CheckCollisionCircles(
Vector2 center1, num radius1, Vector2 center2, num radius2) → bool - Check collision between two circles
-
CheckCollisionLines(
Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2) → (bool, Vector2) - Check the collision between two lines defined by two points each, returns collision point by reference
-
CheckCollisionPointCircle(
Vector2 point, Vector2 center, num radius) → bool - Check if point is inside circle
-
CheckCollisionPointLine(
Vector2 point, Vector2 p1, Vector2 p2, num threshold) → bool -
Check if point belongs to line created between two points
p1andp2with defined margin in pixelsthreshold -
CheckCollisionPointPoly(
Vector2 point, List< Vector2> points) → bool - Check if point is within a polygon described by array of vertices
-
CheckCollisionPointRec(
Vector2 point, Rectangle rec) → bool - Check if point is inside rectangle
-
CheckCollisionPointTriangle(
Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) → bool - Check if point is inside a triangle
-
CheckCollisionRecs(
Rectangle rec1, Rectangle rec2) → bool - Check collision between two rectangles
-
CheckCollisionSpheres(
Vector3 center1, num radius1, Vector3 center2, num radius2) → bool - Check collision between two spheres
-
ClearBackground(
Color 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(
Color color, num alpha) → Color - Get color with alpha applied, alpha goes from 0.0 to 1.0
-
ColorAlphaBlend(
Color dst, Color src, Color tint) → Color - Get src alpha-blended into dst color with tint
-
ColorBrightness(
Color color, num factor) → Color - Get color with brightness correction, brightness factor goes from -1.0 to 1.0
-
ColorContrast(
Color color, num contrast) → Color - Get color with contrast correction, contrast values between -1.0 and 1.0
-
ColorFromHSV(
num hue, num saturation, num value) → Color -
Get a Color from HSV values, hue
0..360, saturation/value0..1 -
ColorFromNormalized(
Vector4 normalized) → Color -
Get Color from normalized values
0..1 -
ColorIsEqual(
Color col1, Color col2) → bool - Check if two colors are equal
-
ColorLerp(
Color color1, Color color2, num factor) → Color -
Get color lerp interpolation between two colors, factor
0.0..1.0 -
ColorNormalize(
Color color) → Vector4 -
Get Color normalized as float
0..1 -
ColorTint(
Color color, Color tint) → Color - Get color multiplied with another color
-
ColorToHSV(
Color color) → Vector3 -
Get HSV values for a Color, hue
0..360, saturation/value0..1 -
ColorToInt(
Color 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
-
ComputeSHA256(
Uint8List data) → Uint8List - Compute SHA256 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 RaylibTemp syncing temporarily disabled, restoring the previous sync state afterward.inherited -
dispose(
) → void -
Calls all registered onDispose callbacks and clears them.
inherited
-
disposeStructWithOpFreed<
D extends RaylibStruct< (D> >D struct, void fn(StructPointer< D> ptr)) → void -
Disposes
struct, invokesfnwith its underlying pointer, and then frees the temporary allocation backing the pointer, if any.inherited -
disposeStructWithOpUnslotted<
D extends RaylibStruct< (D> >D struct, void fn(StructPointer< D> ptr)) → void -
Disposes
struct, invokesfnwith its underlying pointer, and then unslots the temporary allocation backing the pointer, if any.inherited -
DrawBillboard(
Camera3D camera, Texture texture, Vector3 position, num scale, Color tint) → void - Draw a billboard texture
-
DrawBillboardPro(
Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, num rotation, Color tint) → void - Draw a billboard texture defined by source and rotation
-
DrawBillboardRec(
Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint) → void - Draw a billboard texture defined by source
-
DrawBoundingBox(
BoundingBox box, Color color) → void - Draw bounding box (wires)
-
DrawCapsule(
Vector3 startPos, Vector3 endPos, num radius, num slices, num rings, Color color) → void - Draw a capsule with the center of its sphere caps at startPos and endPos
-
DrawCapsuleWires(
Vector3 startPos, Vector3 endPos, num radius, num slices, num rings, Color color) → void - Draw capsule wireframe with the center of its sphere caps at startPos and endPos
-
DrawCircle(
num centerX, num centerY, num radius, Color color) → void - Draw a color-filled circle
-
DrawCircle3D(
Vector3 center, num radius, Vector3 rotationAxis, num rotationAngle, Color color) → void - Draw a circle in 3D world space
-
DrawCircleGradient(
Vector2 center, num radius, Color inner, Color outer) → void - Draw a gradient-filled circle
-
DrawCircleLines(
num centerX, num centerY, num radius, Color color) → void - Draw circle outline
-
DrawCircleLinesV(
Vector2 center, num radius, Color color) → void - Draw circle outline (Vector version)
-
DrawCircleSector(
Vector2 center, num radius, num startAngle, num endAngle, num segments, Color color) → void - Draw a piece of a circle
-
DrawCircleSectorLines(
Vector2 center, num radius, num startAngle, num endAngle, num segments, Color color) → void - Draw circle sector outline
-
DrawCircleV(
Vector2 center, num radius, Color color) → void - Draw a color-filled circle (Vector version)
-
DrawCube(
Vector3 position, num width, num height, num length, Color color) → void - Draw cube
-
DrawCubeV(
Vector3 position, Vector3 size, Color color) → void - Draw cube (Vector version)
-
DrawCubeWires(
Vector3 position, num width, num height, num length, Color color) → void - Draw cube wires
-
DrawCubeWiresV(
Vector3 position, Vector3 size, Color color) → void - Draw cube wires (Vector version)
-
DrawCylinder(
Vector3 position, num radiusTop, num radiusBottom, num height, num slices, Color color) → void - Draw a cylinder/cone
-
DrawCylinderEx(
Vector3 startPos, Vector3 endPos, num startRadius, num endRadius, num sides, Color color) → void - Draw a cylinder with base at startPos and top at endPos
-
DrawCylinderWires(
Vector3 position, num radiusTop, num radiusBottom, num height, num slices, Color color) → void - Draw a cylinder/cone wires
-
DrawCylinderWiresEx(
Vector3 startPos, Vector3 endPos, num startRadius, num endRadius, num sides, Color color) → void - Draw a cylinder wires with base at startPos and top at endPos
-
DrawEllipse(
num centerX, num centerY, num radiusH, num radiusV, Color color) → void - Draw ellipse
-
DrawEllipseLines(
num centerX, num centerY, num radiusH, num radiusV, Color color) → void - Draw ellipse outline
-
DrawEllipseLinesV(
Vector2 center, num radiusH, num radiusV, Color color) → void - Draw ellipse outline (Vector version)
-
DrawEllipseV(
Vector2 center, num radiusH, num radiusV, Color color) → void - Draw ellipse (Vector version)
-
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, Color color) → void - Draw a line
-
DrawLine3D(
Vector3 startPos, Vector3 endPos, Color color) → void - Draw a line in 3D world space
-
DrawLineBezier(
Vector2 startPos, Vector2 endPos, num thick, Color color) → void - Draw line segment cubic-bezier in-out interpolation
-
DrawLineDashed(
Vector2 startPos, Vector2 endPos, num dashSize, num spaceSize, Color color) → void - Draw a dashed line
-
DrawLineEx(
Vector2 startPos, Vector2 endPos, num thick, Color color) → void - Draw a line (using triangles/quads)
-
DrawLineStrip(
List< Vector2> points, Color color) → void - Draw lines sequence (using gl lines)
-
DrawLineV(
Vector2 startPos, Vector2 endPos, Color color) → void - Draw a line (using gl lines)
-
DrawMesh(
Mesh mesh, Material material, Matrix transform) → void - Draw a 3d mesh with material and transform
-
DrawMeshInstanced(
Mesh mesh, Material material, List< Matrix> transforms) → void - Draw multiple mesh instances with material and different transforms
-
DrawModel(
Model model, Vector3 position, num scale, Color tint) → void - Draw a model (with texture if set)
-
DrawModelEx(
Model model, Vector3 position, Vector3 rotationAxis, num rotationAngle, Vector3 scale, Color tint) → void - Draw a model with extended parameters
-
DrawModelWires(
Model model, Vector3 position, num scale, Color tint) → void - Draw a model wires (with texture if set)
-
DrawModelWiresEx(
Model model, Vector3 position, Vector3 rotationAxis, num rotationAngle, Vector3 scale, Color tint) → void - Draw a model wires (with texture if set) with extended parameters
-
DrawPixel(
num posX, num posY, Color color) → void -
Draw a pixel using geometry
Can be slow, use with care -
DrawPixelV(
Vector2 position, Color color) → void -
Draw a pixel using geometry (Vector version)
Can be slow, use with care -
DrawPlane(
Vector3 centerPos, Vector2 size, Color color) → void - Draw a plane XZ
-
DrawPoint3D(
Vector3 position, Color color) → void - Draw a point in 3D space, actually a small line
-
DrawPoly(
Vector2 center, num sides, num radius, num rotation, Color color) → void - Draw a regular polygon (Vector version)
-
DrawPolyLines(
Vector2 center, num sides, num radius, num rotation, Color color) → void - Draw a polygon outline of n sides
-
DrawPolyLinesEx(
Vector2 center, num sides, num radius, num rotation, num lineThick, Color color) → void - Draw a polygon outline of n sides with extended parameters
-
DrawRay(
Ray ray, Color color) → void - Draw a ray line
-
DrawRectangle(
num posX, num posY, num width, num height, Color color) → void - Draw a color-filled rectangle
-
DrawRectangleGradientEx(
Rectangle rec, Color topLeft, Color bottomLeft, Color topRight, Color bottomRight) → void - Draw a gradient-filled rectangle with custom vertex colors
-
DrawRectangleGradientH(
num posX, num posY, num width, num height, Color left, Color right) → void - Draw a horizontal-gradient-filled rectangle
-
DrawRectangleGradientV(
num posX, num posY, num width, num height, Color top, Color bottom) → void - Draw a vertical-gradient-filled rectangle
-
DrawRectangleLines(
num posX, num posY, num width, num height, Color color) → void - Draw rectangle outline
-
DrawRectangleLinesEx(
Rectangle rec, num lineThick, Color color) → void - Draw rectangle outline with extended parameters
-
DrawRectanglePro(
Rectangle rec, Vector2 origin, num rotation, Color color) → void - Draw a color-filled rectangle with pro parameters
-
DrawRectangleRec(
Rectangle rec, Color color) → void - Draw a color-filled rectangle
-
DrawRectangleRounded(
Rectangle rec, num roundness, num segments, Color color) → void - Draw rectangle with rounded edges
-
DrawRectangleRoundedLines(
Rectangle rec, num roundness, num segments, Color color) → void - Draw rectangle lines with rounded edges
-
DrawRectangleRoundedLinesEx(
Rectangle rec, num roundness, num segments, num lineThick, Color color) → void - Draw rectangle with rounded edges outline
-
DrawRectangleV(
Vector2 position, Vector2 size, Color color) → void - Draw a color-filled rectangle (Vector version)
-
DrawRing(
Vector2 center, num innerRadius, num outerRadius, num startAngle, num endAngle, num segments, Color color) → void - Draw ring
-
DrawRingLines(
Vector2 center, num innerRadius, num outerRadius, num startAngle, num endAngle, num segments, Color color) → void - Draw ring outline
-
DrawSphere(
Vector3 centerPos, num radius, Color color) → void - Draw sphere
-
DrawSphereEx(
Vector3 centerPos, num radius, num rings, num slices, Color color) → void - Draw sphere with extended parameters
-
DrawSphereWires(
Vector3 centerPos, num radius, num rings, num slices, Color color) → void - Draw sphere wires
-
DrawSplineBasis(
List< Vector2> points, num thick, Color color) → void - Draw spline: B-Spline, minimum 4 points
-
DrawSplineBezierCubic(
List< Vector2> points, num thick, Color color) → void -
Draw spline: Cubic Bezier, minimum 4 points (2 control points):
p1, c2, c3, p4, c5, c6... -
DrawSplineBezierQuadratic(
List< Vector2> points, num thick, Color color) → void -
Draw spline: Quadratic Bezier, minimum 3 points (1 control point):
p1, c2, p3, c4... -
DrawSplineCatmullRom(
List< Vector2> points, num thick, Color color) → void - Draw spline: Catmull-Rom, minimum 4 points
-
DrawSplineLinear(
List< Vector2> points, num thick, Color color) → void - Draw spline: Linear, minimum 2 points
-
DrawSplineSegmentBasis(
Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, num thick, Color color) → void - Draw spline segment: B-Spline, 4 points
-
DrawSplineSegmentBezierCubic(
Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, num thick, Color color) → void - Draw spline segment: Cubic Bezier, 2 points, 2 control points
-
DrawSplineSegmentBezierQuadratic(
Vector2 p1, Vector2 c2, Vector2 p3, num thick, Color color) → void - Draw spline segment: Quadratic Bezier, 2 points, 1 control point
-
DrawSplineSegmentCatmullRom(
Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, num thick, Color color) → void - Draw spline segment: Catmull-Rom, 4 points
-
DrawSplineSegmentLinear(
Vector2 p1, Vector2 p2, num thick, Color color) → void - Draw spline segment: Linear, 2 points
-
DrawText(
String text, num posX, num posY, num fontSize, Color color) → void - Draw text (using default font)
-
DrawTextCodepoint(
Font font, num codepoint, Vector2 position, num fontSize, Color tint) → void - Draw one character (codepoint)
-
DrawTextCodepoints(
Font font, Int32List codepoints, Vector2 position, num fontSize, num spacing, Color tint) → void - Draw multiple character (codepoint)
-
DrawTextEx(
Font font, String text, Vector2 position, num fontSize, num spacing, Color tint) → void - Draw text using font and additional parameters
-
DrawTextPro(
Font font, String text, Vector2 position, Vector2 origin, num rotation, num fontSize, num spacing, Color tint) → void - Draw text using Font and pro parameters (rotation)
-
DrawTexture(
Texture texture, num posX, num posY, Color tint) → void - Draw a Texture2D
-
DrawTextureEx(
Texture texture, Vector2 position, num rotation, num scale, Color tint) → void - Draw a Texture2D with extended parameters
-
DrawTextureNPatch(
Texture texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, num rotation, Color tint) → void - Draws a texture (or part of it) that stretches or shrinks nicely
-
DrawTexturePro(
Texture texture, Rectangle source, Rectangle dest, Vector2 origin, num rotation, Color tint) → void - Draw a part of a texture defined by a rectangle with 'pro' parameters
-
DrawTextureRec(
Texture texture, Rectangle source, Vector2 position, Color tint) → void - Draw a part of a texture defined by a rectangle
-
DrawTextureV(
Texture texture, Vector2 position, Color tint) → void - Draw a Texture2D with position defined as Vector2
-
DrawTriangle(
Vector2 v1, Vector2 v2, Vector2 v3, Color color) → void - Draw a color-filled triangle (vertex in counter-clockwise order!)
-
DrawTriangle3D(
Vector3 v1, Vector3 v2, Vector3 v3, Color color) → void - Draw a color-filled triangle (vertex in counter-clockwise order!)
-
DrawTriangleFan(
List< Vector2> points, Color color) → void - Draw a triangle fan defined by points (first vertex is the center)
-
DrawTriangleLines(
Vector2 v1, Vector2 v2, Vector2 v3, Color color) → void - Draw triangle outline (vertex in counter-clockwise order!)
-
DrawTriangleStrip(
List< Vector2> points, Color color) → void - Draw a triangle strip defined by points
-
DrawTriangleStrip3D(
List< Vector3> points, Color 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(
AutomationEventList 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(
Font font, String fileName) → bool - Export font as code file, returns true on success
-
ExportImage(
Image image, String fileName) → bool - Export image data to file, returns true on success
-
ExportImageAsCode(
Image image, String fileName) → bool - Export image as code file defining an array of bytes, returns true on success
-
ExportImageToMemory(
Image image, String fileType) → (MemoryPointer< RUint8> , int) - Export image to memory buffer
-
ExportMesh(
Mesh mesh, String fileName) → bool - Export mesh data to file, returns true on success
-
ExportMeshAsCode(
Mesh mesh, String fileName) → bool - Export mesh as code file (.h) defining multiple arrays of vertex attributes
-
Fade(
Color color, num alpha) → Color - Get color with alpha applied, alpha goes from 0.0 to 1.0
-
FileCopy(
String srcPath, String dstPath) → int - Copy file from one path to another, dstPath created if it doesn't exist
-
FileExists(
String fileName) → bool - Check if file exists
-
FileMove(
String srcPath, String dstPath) → int - Move file from one directory to another, dstPath created if it doesn't exist
-
FileRemove(
String fileName) → int - Remove file (if exists)
-
FileRename(
String fileName, String fileRename) → int - Rename file (if exists)
-
FileTextFindIndex(
String fileName, String search) → int - Find text in existing file
-
FileTextReplace(
String fileName, String search, String replacement) → int - Replace text in an existing file
-
GenImageCellular(
num width, num height, num tileSize) → Image - Generate image: cellular algorithm, bigger tileSize means bigger cells
-
GenImageChecked(
num width, num height, num checksX, num checksY, Color col1, Color col2) → Image - Generate image: checked
-
GenImageColor(
num width, num height, Color color) → Image - Generate image: plain color
-
GenImageFontAtlas(
List< GlyphInfo> glyphs, num fontSize, num padding, num packMethod) → (Image, List<Rectangle> ) - Generate image font atlas using chars info
-
GenImageGradientLinear(
num width, num height, num direction, Color start, Color end) → Image -
Generate image: linear gradient, direction in degrees
0..360, 0=Vertical gradient -
GenImageGradientRadial(
num width, num height, num density, Color inner, Color outer) → Image - Generate image: radial gradient
-
GenImageGradientSquare(
num width, num height, num density, Color inner, Color outer) → Image - Generate image: square gradient
-
GenImagePerlinNoise(
num width, num height, num offsetX, num offsetY, num scale) → Image - Generate image: perlin noise
-
GenImageText(
num width, num height, String text) → Image - Generate image: grayscale image from text data
-
GenImageWhiteNoise(
num width, num height, num factor) → Image - Generate image: white noise
-
GenMeshCone(
num radius, num height, num slices) → Mesh - Generate cone/pyramid mesh
-
GenMeshCube(
num width, num height, num length) → Mesh - Generate cuboid mesh
-
GenMeshCubicmap(
Image cubicmap, Vector3 cubeSize) → Mesh - Generate cubes-based map mesh from image data
-
GenMeshCylinder(
num radius, num height, num slices) → Mesh - Generate cylinder mesh
-
GenMeshHeightmap(
Image heightmap, Vector3 size) → Mesh - Generate heightmap mesh from image data
-
GenMeshHemiSphere(
num radius, num rings, num slices) → Mesh - Generate half-sphere mesh (no bottom cap)
-
GenMeshKnot(
num radius, num size, num radSeg, num sides) → Mesh - Generate trefoil knot mesh
-
GenMeshPlane(
num width, num length, num resX, num resZ) → Mesh - Generate plane mesh (with subdivisions)
-
GenMeshPoly(
num sides, num radius) → Mesh - Generate polygonal mesh
-
GenMeshSphere(
num radius, num rings, num slices) → Mesh - Generate sphere mesh (standard sphere)
-
GenMeshTangents(
Mesh mesh) → void - Compute mesh tangents
-
GenMeshTorus(
num radius, num size, num radSeg, num sides) → Mesh - Generate torus mesh
-
GenTextureMipmaps(
Texture texture) → void - Generate GPU mipmaps for a texture
-
GetApplicationDirectory(
) → String - Get the directory of the running application
-
GetCameraMatrix(
Camera3D camera) → Matrix - Get camera transform matrix (view matrix)
-
GetCameraMatrix2D(
Camera2D camera) → Matrix - 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(
) → Image - 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(
Rectangle rec1, Rectangle rec2) → Rectangle - Get collision rectangle for two rectangles collision
-
GetColor(
num hexValue) → Color - Get Color structure from hexadecimal value
-
GetCurrentMonitor(
) → int - Get current monitor where window is placed
-
GetDirectoryFileCount(
String dirPath) → int - Get the file count in a directory
-
GetDirectoryFileCountEx(
String basePath, String filter, bool scanSubdirs) → int - Get the file count in a directory with extension filtering and recursive directory scan.
-
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(
) → Font - 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(
) → Vector2 - Get gesture drag vector
-
GetGestureHoldDuration(
) → double - Get gesture hold time in seconds
-
GetGesturePinchAngle(
) → double - Get gesture pinch angle
-
GetGesturePinchVector(
) → Vector2 - Get gesture pinch delta
-
GetGlyphAtlasRec(
Font font, num codepoint) → Rectangle - Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
-
GetGlyphIndex(
Font font, num codepoint) → int - Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
-
GetGlyphInfo(
Font font, num codepoint) → GlyphInfo - Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
-
GetImageAlphaBorder(
Image image, num threshold) → Rectangle - Get image alpha border rectangle
-
GetImageColor(
Image image, num x, num y) → Color - Get image pixel color at (x, y) position
-
GetKeyName(
KeyboardKey key) → String - Get name of a QWERTY key on the current keyboard layout (eg returns string 'q' for KEY_A on an AZERTY keyboard)
-
GetKeyPressed(
) → int - Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
-
GetMeshBoundingBox(
Mesh mesh) → BoundingBox - Compute mesh bounding box limits
-
GetModelBoundingBox(
Model model) → BoundingBox - 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) → Vector2 - 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(
) → Vector2 - Get mouse delta between frames
-
GetMouseInfo(
) → MouseInfo -
GetMousePosition(
) → Vector2 - Get mouse position XY
-
GetMouseWheelMove(
) → double - Get mouse wheel movement for X or Y, whichever is larger
-
GetMouseWheelMoveV(
) → Vector2 - 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(
Ray ray, BoundingBox box) → RayCollision - Get collision info between ray and box
-
GetRayCollisionMesh(
Ray ray, Mesh mesh, Matrix transform) → RayCollision - Get collision info between ray and mesh
-
GetRayCollisionQuad(
Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) → RayCollision - Get collision info between ray and quad
-
GetRayCollisionSphere(
Ray ray, Vector3 center, num radius) → RayCollision - Get collision info between ray and sphere
-
GetRayCollisionTriangle(
Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) → RayCollision - 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(
Vector2 position, Camera2D camera) → Vector2 - Get the world space position for a 2d camera screen space position
-
GetScreenToWorldRay(
Vector2 position, Camera3D camera) → Ray - Get a ray trace from screen position (i.e mouse)
-
GetScreenToWorldRayEx(
Vector2 position, Camera3D camera, num width, num height) → Ray - Get a ray trace from screen position (i.e mouse) in a viewport
-
GetScreenWidth(
) → int - Get current screen width
-
GetShaderLocation(
Shader shader, String uniformName) → int - Get shader uniform location
-
GetShaderLocationAttrib(
Shader shader, String attribName) → int - Get shader attribute location
-
GetShapesTexture(
) → Texture - Get texture that is used for shapes drawing
-
GetShapesTextureRectangle(
) → Rectangle - Get texture source rectangle that is used for shapes drawing
-
GetSplinePointBasis(
Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, num t) → Vector2 - Get (evaluate) spline point: B-Spline
-
GetSplinePointBezierCubic(
Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, num t) → Vector2 - Get (evaluate) spline point: Cubic Bezier
-
GetSplinePointBezierQuad(
Vector2 p1, Vector2 c2, Vector2 p3, num t) → Vector2 - Get (evaluate) spline point: Quadratic Bezier
-
GetSplinePointCatmullRom(
Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, num t) → Vector2 - Get (evaluate) spline point: Catmull-Rom
-
GetSplinePointLinear(
Vector2 startPos, Vector2 endPos, num t) → Vector2 - Get (evaluate) spline point: Linear
-
GetTextBetween(
String text, String begin, String end) → String - Get text between two strings
-
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) → Vector2 - 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(
) → Vector2 - Get window position XY on monitor
-
GetWindowScaleDPI(
) → Vector2 - Get window scale DPI factor
-
GetWorkingDirectory(
) → String - Get current working directory
-
GetWorldToScreen(
Vector3 position, Camera3D camera) → Vector2 - Get the screen space position for a 3d world space position
-
GetWorldToScreen2D(
Vector2 position, Camera2D camera) → Vector2 - Get the screen space position for a 2d camera world space position
-
GetWorldToScreenEx(
Vector3 position, Camera3D camera, num width, num height) → Vector2 - Get size position for a 3d world space position
-
HideCursor(
) → void - Hides cursor
-
ImageAlphaClear(
Image image, Color color, num threshold) → void - Clear alpha channel to desired color
-
ImageAlphaCrop(
Image image, num threshold) → void - Crop image depending on alpha value
-
ImageAlphaMask(
Image image, Image alphaMask) → void - Apply alpha mask to image
-
ImageAlphaPremultiply(
Image image) → void - Premultiply alpha channel
-
ImageBlurGaussian(
Image image, num blurSize) → void - Apply Gaussian blur using a box blur approximation
-
ImageClearBackground(
Image dst, Color color) → void - Clear image background with given color
-
ImageColorBrightness(
Image image, num brightness) → void - Modify image color: brightness (-255 to 255)
-
ImageColorContrast(
Image image, num contrast) → void - Modify image color: contrast (-100 to 100)
-
ImageColorGrayscale(
Image image) → void - Modify image color: grayscale
-
ImageColorInvert(
Image image) → void - Modify image color: invert
-
ImageColorReplace(
Image image, Color color, Color replace) → void - Modify image color: replace color
-
ImageColorTint(
Image image, Color color) → void - Modify image color: tint
-
ImageCopy(
Image image) → Image - Create an image duplicate (useful for transformations)
-
ImageCrop(
Image image, Rectangle crop) → void - Crop an image to a defined rectangle
-
ImageDither(
Image image, num rBpp, num gBpp, num bBpp, num aBpp) → void - Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
-
ImageDraw(
Image dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) → void - Draw a source image within a destination image (tint applied to source)
-
ImageDrawCircle(
Image dst, num centerX, num centerY, num radius, Color color) → void - Draw a filled circle within an image
-
ImageDrawCircleLines(
Image dst, num centerX, num centerY, num radius, Color color) → void - Draw circle outline within an image
-
ImageDrawCircleLinesV(
Image dst, Vector2 center, num radius, Color color) → void - Draw circle outline within an image (Vector version)
-
ImageDrawCircleV(
Image dst, Vector2 center, num radius, Color color) → void - Draw a filled circle within an image (Vector version)
-
ImageDrawLine(
Image dst, num startPosX, num startPosY, num endPosX, num endPosY, Color color) → void - Draw line within an image
-
ImageDrawLineEx(
Image dst, Vector2 start, Vector2 end, num thick, Color color) → void - Draw a line defining thickness within an image
-
ImageDrawLineV(
Image dst, Vector2 start, Vector2 end, Color color) → void - Draw line within an image (Vector version)
-
ImageDrawPixel(
Image dst, num posX, num posY, Color color) → void - Draw pixel within an image
-
ImageDrawPixelV(
Image dst, Vector2 position, Color color) → void - Draw pixel within an image (Vector version)
-
ImageDrawRectangle(
Image dst, num posX, num posY, num width, num height, Color color) → void - Draw rectangle within an image
-
ImageDrawRectangleLines(
Image dst, Rectangle rec, num thick, Color color) → void - Draw rectangle lines within an image
-
ImageDrawRectangleRec(
Image dst, Rectangle rec, Color color) → void - Draw rectangle within an image
-
ImageDrawRectangleV(
Image dst, Vector2 position, Vector2 size, Color color) → void - Draw rectangle within an image (Vector version)
-
ImageDrawText(
Image dst, String text, num posX, num posY, num fontSize, Color color) → void - Draw text (using default font) within an image (destination)
-
ImageDrawTextEx(
Image dst, Font font, String text, Vector2 position, num fontSize, num spacing, Color tint) → void - Draw text (custom sprite font) within an image (destination)
-
ImageDrawTriangle(
Image dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color) → void - Draw triangle within an image
-
ImageDrawTriangleEx(
Image dst, Vector2 v1, Vector2 v2, Vector2 v3, Color c1, Color c2, Color c3) → void - Draw triangle with interpolated colors within an image
-
ImageDrawTriangleFan(
Image dst, List< Vector2> points, Color color) → void - Draw a triangle fan defined by points within an image (first vertex is the center)
-
ImageDrawTriangleLines(
Image dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color) → void - Draw triangle outline within an image
-
ImageDrawTriangleStrip(
Image dst, List< Vector2> points, Color color) → void - Draw a triangle strip defined by points within an image
-
ImageFlipHorizontal(
Image image) → void - Flip image horizontally
-
ImageFlipVertical(
Image image) → void - Flip image vertically
-
ImageFormat(
Image image, PixelFormat newFormat) → void - Convert image data to desired format
-
ImageFromChannel(
Image image, num selectedChannel) → Image - Create an image from a selected channel of another image (GRAYSCALE)
-
ImageFromImage(
Image image, Rectangle rec) → Image - Create an image from another image piece
-
ImageKernelConvolution(
Image image, List< double> kernel) → void - Apply custom square convolution kernel to image
-
ImageMipmaps(
Image image) → void - Compute all mipmap levels for a provided image
-
ImageResize(
Image image, num newWidth, num newHeight) → void - Resize image (Bicubic scaling algorithm)
-
ImageResizeCanvas(
Image image, num newWidth, num newHeight, num offsetX, num offsetY, Color fill) → void - Resize canvas and fill with color
-
ImageResizeNN(
Image image, num newWidth, num newHeight) → void - Resize image (Nearest-Neighbor scaling algorithm)
-
ImageRotate(
Image image, num degrees) → void - Rotate image by input angle in degrees (-359 to 359)
-
ImageRotateCCW(
Image image) → void - Rotate image counter-clockwise 90deg
-
ImageRotateCW(
Image image) → void - Rotate image clockwise 90deg
-
ImageText(
String text, num fontSize, Color color) → Image - Create an image from text (default font)
-
ImageTextEx(
Font font, String text, num fontSize, num spacing, Color tint) → Image - Create an image from text (custom sprite font)
-
ImageToPOT(
Image image, Color 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(
Font 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(
Image 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(
Material material) → bool - Check if a material is valid (shader assigned, map textures loaded in GPU)
-
IsModelAnimationValid(
Model model, ModelAnimation anim) → bool - Check model animation skeleton match
-
IsModelValid(
Model 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(
RenderTexture target) → bool - Check if a render texture is valid (loaded in GPU)
-
IsShaderValid(
Shader shader) → bool - Check if a shader is valid (loaded on GPU)
-
IsTextureValid(
Texture 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.
inherited
-
LoadAutomationEventList(
String? fileName) → AutomationEventList - 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) → FilePathList - Load directory filepaths
-
LoadDirectoryFilesEx(
String basePath, String filter, bool scanSubdirs) → FilePathList - Load directory filepaths with extension filtering and recursive directory scan.
-
LoadDroppedFiles(
) → FilePathList - 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) → Font - Load font from file into GPU memory (VRAM)
-
LoadFontData(
Uint8List fileData, num fontSize, Int32List? codepoints, num? codepointCount, FontType type) → List< GlyphInfo> - Load font data for further use
-
LoadFontEx(
String fileName, num fontSize, [Int32List? codepoints, num? codepointCount]) → Font - 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(
Image image, Color key, num firstChar) → Font - Load font from Image (XNA style)
-
LoadFontFromMemory(
String fileType, Uint8List fileData, num fontSize, Int32List codepoints) → Font - Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
-
LoadImage(
String fileName) → Image - Load image from file into CPU memory (RAM)
-
LoadImageAnim(
String fileName) → Image - Load image sequence from file (frames appended to image.data)
-
LoadImageAnimFromMemory(
String fileType, Uint8List fileData) → Image - Load image sequence from memory buffer
-
LoadImageColors(
Image image) → List< Color> - Load color data from image as a Color array (RGBA - 32bit)
-
LoadImageFromMemory(
String fileType, Uint8List fileData) → Image - Load image from memory buffer, fileType refers to extension: i.e. '.png'
-
LoadImageFromScreen(
) → Image - Load image from screen buffer and (screenshot)
-
LoadImageFromTexture(
Texture texture) → Image - Load image from GPU texture data
-
LoadImagePalette(
Image image, num maxPaletteSize) → List< Color> - Load colors palette from image as a Color array (RGBA - 32bit)
-
LoadImageRaw(
String fileName, num width, num height, PixelFormat format, num headerSize) → Image - Load image from RAW file data
-
LoadMaterialDefault(
) → Material - Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
-
LoadMaterials(
String fileName) → List< Material> - Load materials from model file
-
LoadModel(
String fileName) → Model - Load model from files (meshes and materials)
-
LoadModelAnimations(
String fileName) → List< ModelAnimation> - Load model animations from file
-
LoadModelFromMesh(
Mesh mesh) → Model - Load model from generated mesh (default material)
-
LoadRandomSequence(
num count, num min, num max) → List< int> - Load random values sequence, no values repeated, min and max included
-
LoadRenderTexture(
num width, num height) → RenderTexture - Load texture for rendering (framebuffer)
-
LoadShader(
String? vsFileName, String? fsFileName) → Shader - Load shader from files and bind default locations
-
LoadShaderFromMemory(
String? vsCode, String? fsCode) → Shader - Load shader from code strings and bind default locations
-
LoadTextLines(
String text) → List< String> - Load text as separate lines ('\n')
-
LoadTexture(
String fileName) → Texture - Load texture from file into GPU memory (VRAM)
-
LoadTextureCubemap(
Image image, CubemapLayout layout) → Texture - Load cubemap from image, multiple image cubemap layouts supported
-
LoadTextureFromImage(
Image image) → Texture - Load texture from image data
-
LoadUTF8(
Int32List codepoints) → String - Load UTF-8 text encoded from codepoints array
-
LoadVrStereoConfig(
VrDeviceInfo device) → VrStereoConfig - 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
-
MeasureTextCodepoints(
Font font, Int32List codepoints, num fontSize, num spacing) → Vector2 - Measure string size for an existing array of codepoints for Font
-
MeasureTextEx(
Font font, String text, num fontSize, num spacing) → Vector2 - 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(
AutomationEvent event) → void - Play a recorded automation event
-
PollInputEvents(
) → void - Register all input events
-
ProcessGestureEvent(
GestureEvent event) → void - Process gesture event and translate it into gestures
-
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(
AutomationEventList 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(
covariant LoadFileDataCallbackBase? callback) → void - Set custom file binary data loader
-
SetLoadFileTextCallback(
covariant LoadFileTextCallbackBase? callback) → void - Set custom file text data loader
-
SetMaterialTexture(
Material material, MaterialMapIndex mapType, Texture texture) → void - Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)
-
SetModelMeshMaterial(
Model 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(
covariant SaveFileDataCallbackBase? callback) → void - Set custom file binary data saver
-
SetSaveFileTextCallback(
covariant SaveFileTextCallbackBase? callback) → void - Set custom file text data saver
-
SetShaderValue(
Shader shader, num locIndex, List< num> value, ShaderUniformDataType uniformType) → void - Set shader uniform value
-
SetShaderValueMatrix(
Shader shader, num locIndex, Matrix mat) → void - Set shader uniform value (matrix 4x4)
-
SetShaderValueTexture(
Shader shader, num locIndex, Texture texture) → void - Set shader uniform value for texture (sampler2d)
-
SetShaderValueV(
Shader shader, num locIndex, List< num> value, ShaderUniformDataType uniformType, num count) → void - Set shader uniform value vector
-
SetShapesTexture(
Texture texture, Rectangle 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(
Texture texture, TextureFilter filter) → void - Set texture scaling filter mode
-
SetTextureWrap(
Texture texture, TextureWrap wrap) → void - Set texture wrapping mode
-
SetTraceLogCallback(
covariant TraceLogCallbackBase? callback) → void - Set custom trace log
-
SetTraceLogLevel(
TraceLogLevel logLevel) → void - Set the current threshold (minimum) log level
-
SetWindowFocused(
) → void - Set window focused
-
SetWindowIcon(
Image image) → void - Set icon for window (single image, RGBA 32bit)
-
SetWindowIcons(
List< Image> 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)
-
TextAppend(
String text, String append) → String - Append text at specific position and move cursor
-
TextFindIndex(
String text, String search) → int - Find first text occurrence within a string, -1 if not found
-
TextFormat(
String text, [List< Object?> args = const []]) → String - Text formatting with variables (sprintf() style)
-
TextInsert(
String text, String insert, int position) → String - Insert text in a defined byte position
-
TextIsEqual(
String text1, String text2) → bool - Check if two text string are equal
-
TextJoin(
List< String> textList, String delimiter) → String -
Join text strings with delimiter (
delimiteris expected to be length of 1) -
TextLength(
String text) → int - Get text length
-
TextRemoveSpaces(
String text) → String - Remove text spaces, concat words
-
TextReplace(
String text, String search, String replacement) → String - Replace text string with new string
-
TextReplaceBetween(
String text, String begin, String end, String replacement) → String - Replace text between two specific strings
-
TextSplit(
String text, String delimiter) → List< String> - Split text into multiple strings
-
TextSubtext(
String text, int position, int length) → String - Get a piece of a text string
-
TextToCamel(
String text) → String - Get Camel case notation version of provided string
-
TextToFloat(
String text) → double - Get float value from text
-
TextToInteger(
String text) → int - Get integer value from text
-
TextToLower(
String text) → String - Get lower case version of provided string
-
TextToPascal(
String text) → String - Get Pascal case notation version of provided string
-
TextToSnake(
String text) → String - Get Snake case notation version of provided string
-
TextToUpper(
String text) → String - Get upper case version of provided string
-
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, [List< Object?> args = const []]) → void - Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
-
UnloadAutomationEventList(
AutomationEventList list) → void - Unload automation events list from file
-
UnloadDirectoryFiles(
FilePathList files) → void - Unload filepaths
-
UnloadDroppedFiles(
FilePathList files) → void - Unload dropped filepaths
-
UnloadFont(
Font font) → void - Unload font from GPU memory (VRAM)
-
UnloadFontData(
List< GlyphInfo> glyphs) → void - Unload font chars info data (RAM)
-
UnloadImage(
Image image) → void - Unload image from CPU memory (RAM)
-
UnloadMaterial(
Material material) → void - Unload material from GPU memory (VRAM)
-
UnloadMesh(
Mesh mesh) → void - Unload mesh data from CPU and GPU
-
UnloadModel(
Model model) → void - Unload model (including meshes) from memory (RAM and/or VRAM)
-
UnloadModelAnimations(
List< ModelAnimation> animations) → void - Unload animation array data
-
UnloadRenderTexture(
RenderTexture target) → void - Unload render texture from GPU memory (VRAM)
-
UnloadShader(
Shader shader) → void - Unload shader from GPU memory (VRAM)
-
UnloadTexture(
Texture texture) → void - Unload texture from GPU memory (VRAM)
-
UnloadVrStereoConfig(
VrStereoConfig config) → void - Unload VR stereo config
-
UpdateCamera(
Camera3D camera, CameraMode mode) → void - Update camera position for selected mode
-
UpdateCameraPro(
Camera3D camera, Vector3 movement, Vector3 rotation, num zoom) → void - Update camera movement/rotation
-
UpdateGestures(
) → void - Update gestures detected (must be called every frame)
-
UpdateMeshBuffer(
Mesh mesh, num index, TypedDataList data, num offset) → void - Update mesh vertex data in GPU for a specific buffer index
-
UpdateModelAnimation(
Model model, ModelAnimation anim, num frame) → void - Update model animation pose (CPU)
-
UpdateModelAnimationEx(
Model model, ModelAnimation animA, num frameA, ModelAnimation animB, num frameB, num blend) → void - Update model animation data (vertex buffers / bone matrices) for a specific pose, defined by two different animations at specific frames blended together
-
UpdateTexture(
Texture texture, Uint8List pixels) → void - Update GPU texture with new data
-
UpdateTextureRec(
Texture texture, Rectangle rec, Uint8List pixels) → void - Update GPU texture rectangle with new data
-
UploadMesh(
Mesh 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