bindbc.raylib.bindstatic

Undocumented in source.

Members

Functions

AttachAudioMixedProcessor
void AttachAudioMixedProcessor(AudioCallback processor)

Attach audio stream processor to the entire audio pipeline, receives the samples as <float>s

AttachAudioStreamProcessor
void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor)

Attach audio stream processor to stream, receives the samples as <float>s

BeginBlendMode
void BeginBlendMode(int mode)

Begin blending mode (alpha, additive, multiplied, subtract, custom)

BeginDrawing
void BeginDrawing()

Setup canvas (framebuffer) to start drawing

BeginMode2D
void BeginMode2D(Camera2D camera)

Begin 2D mode with custom camera (2D)

BeginMode3D
void BeginMode3D(Camera3D camera)

Begin 3D mode with custom camera (3D)

BeginScissorMode
void BeginScissorMode(int x, int y, int width, int height)

Begin scissor mode (define screen area for following drawing)

BeginShaderMode
void BeginShaderMode(Shader shader)

Begin custom shader drawing

BeginTextureMode
void BeginTextureMode(RenderTexture2D target)

Begin drawing to render texture

BeginVrStereoMode
void BeginVrStereoMode(VrStereoConfig config)

Begin stereo rendering (requires VR simulator)

ChangeDirectory
bool ChangeDirectory(const(char)* dir)

Change working directory, return true on success

CheckCollisionBoxSphere
bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius)

Check collision between box and sphere

CheckCollisionBoxes
bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2)

Check collision between two bounding boxes

CheckCollisionCircleRec
bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec)

Check collision between circle and rectangle

CheckCollisionCircles
bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2)

Check collision between two circles

CheckCollisionLines
bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2* collisionPoint)

Check the collision between two lines defined by two points each, returns collision point by reference

CheckCollisionPointCircle
bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius)

Check if point is inside circle

CheckCollisionPointLine
bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold)

Check if point belongs to line created between two points p1 and p2 with defined margin in pixels threshold

CheckCollisionPointPoly
bool CheckCollisionPointPoly(Vector2 point, Vector2* points, int pointCount)

Check if point is within a polygon described by array of vertices

CheckCollisionPointRec
bool CheckCollisionPointRec(Vector2 point, Rectangle rec)

Check if point is inside rectangle

CheckCollisionPointTriangle
bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3)

Check if point is inside a triangle

CheckCollisionRecs
bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2)

Check collision between two rectangles

CheckCollisionSpheres
bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2)

Check collision between two spheres

ClearBackground
void ClearBackground(Color color)

Set background color (framebuffer clear color)

ClearWindowState
void ClearWindowState(uint flags)

Clear window configuration state flags

CloseAudioDevice
void CloseAudioDevice()

Close the audio device and context

CloseWindow
void CloseWindow()

Close window and unload OpenGL context

CodepointToUTF8
const(char)* CodepointToUTF8(int codepoint, int* utf8Size)

Encode one codepoint into UTF-8 byte array (array length returned as parameter)

ColorAlpha
Color ColorAlpha(Color color, float alpha)

Get color with alpha applied, alpha goes from 0.0f to 1.0f

ColorAlphaBlend
Color ColorAlphaBlend(Color dst, Color src, Color tint)

Get src alpha-blended into dst color with tint

ColorBrightness
Color ColorBrightness(Color color, float factor)

Get color with brightness correction, brightness factor goes from -1.0f to 1.0f

ColorContrast
Color ColorContrast(Color color, float contrast)

Get color with contrast correction, contrast values between -1.0f and 1.0f

ColorFromHSV
Color ColorFromHSV(float hue, float saturation, float value)

Get a Color from HSV values, hue [0..360], saturation/value [0..1]

ColorFromNormalized
Color ColorFromNormalized(Vector4 normalized)

Get Color from normalized values [0..1]

ColorNormalize
Vector4 ColorNormalize(Color color)

Get Color normalized as float [0..1]

ColorTint
Color ColorTint(Color color, Color tint)

Get color multiplied with another color

ColorToHSV
Vector3 ColorToHSV(Color color)

Get HSV values for a Color, hue [0..360], saturation/value [0..1]

ColorToInt
int ColorToInt(Color color)

Get hexadecimal value for a Color

CompressData
ubyte* CompressData(const(ubyte)* data, int dataSize, int* compDataSize)

Compress data (DEFLATE algorithm), memory must be MemFree()

DecodeDataBase64
ubyte* DecodeDataBase64(const(ubyte)* data, int* outputSize)

Decode Base64 string data, memory must be MemFree()

DecompressData
ubyte* DecompressData(const(ubyte)* compData, int compDataSize, int* dataSize)

Decompress data (DEFLATE algorithm), memory must be MemFree()

DetachAudioMixedProcessor
void DetachAudioMixedProcessor(AudioCallback processor)

Detach audio stream processor from the entire audio pipeline

DetachAudioStreamProcessor
void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor)

Detach audio stream processor from stream

DirectoryExists
bool DirectoryExists(const(char)* dirPath)

Check if a directory path exists

DisableCursor
void DisableCursor()

Disables cursor (lock cursor)

DisableEventWaiting
void DisableEventWaiting()

Disable waiting for events on EndDrawing(), automatic events polling

DrawBillboard
void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint)

Draw a billboard texture

DrawBillboardPro
void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint)

Draw a billboard texture defined by source and rotation

DrawBillboardRec
void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint)

Draw a billboard texture defined by source

DrawBoundingBox
void DrawBoundingBox(BoundingBox box, Color color)

Draw bounding box (wires)

DrawCapsule
void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color)

Draw a capsule with the center of its sphere caps at startPos and endPos

DrawCapsuleWires
void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color)

Draw capsule wireframe with the center of its sphere caps at startPos and endPos

DrawCircle
void DrawCircle(int centerX, int centerY, float radius, Color color)

Draw a color-filled circle

DrawCircle3D
void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color)

Draw a circle in 3D world space

DrawCircleGradient
void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2)

Draw a gradient-filled circle

DrawCircleLines
void DrawCircleLines(int centerX, int centerY, float radius, Color color)

Draw circle outline

DrawCircleLinesV
void DrawCircleLinesV(Vector2 center, float radius, Color color)

Draw circle outline (Vector version)

DrawCircleSector
void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color)

Draw a piece of a circle

DrawCircleSectorLines
void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color)

Draw circle sector outline

DrawCircleV
void DrawCircleV(Vector2 center, float radius, Color color)

Draw a color-filled circle (Vector version)

DrawCube
void DrawCube(Vector3 position, float width, float height, float length, Color color)

Draw cube

DrawCubeV
void DrawCubeV(Vector3 position, Vector3 size, Color color)

Draw cube (Vector version)

DrawCubeWires
void DrawCubeWires(Vector3 position, float width, float height, float length, Color color)

Draw cube wires

DrawCubeWiresV
void DrawCubeWiresV(Vector3 position, Vector3 size, Color color)

Draw cube wires (Vector version)

DrawCylinder
void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color)

Draw a cylinder/cone

DrawCylinderEx
void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color)

Draw a cylinder with base at startPos and top at endPos

DrawCylinderWires
void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color)

Draw a cylinder/cone wires

DrawCylinderWiresEx
void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color)

Draw a cylinder wires with base at startPos and top at endPos

DrawEllipse
void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color)

Draw ellipse

DrawEllipseLines
void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color)

Draw ellipse outline

DrawFPS
void DrawFPS(int posX, int posY)

Draw current FPS

DrawGrid
void DrawGrid(int slices, float spacing)

Draw a grid (centered at (0, 0, 0))

DrawLine
void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color)

Draw a line

DrawLine3D
void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)

Draw a line in 3D world space

DrawLineBezier
void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color)

Draw line segment cubic-bezier in-out interpolation

DrawLineEx
void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color)

Draw a line (using triangles/quads)

DrawLineStrip
void DrawLineStrip(Vector2* points, int pointCount, Color color)

Draw lines sequence (using gl lines)

DrawLineV
void DrawLineV(Vector2 startPos, Vector2 endPos, Color color)

Draw a line (using gl lines)

DrawMesh
void DrawMesh(Mesh mesh, Material material, Matrix transform)

Draw a 3d mesh with material and transform

DrawMeshInstanced
void DrawMeshInstanced(Mesh mesh, Material material, Matrix* transforms, int instances)

Draw multiple mesh instances with material and different transforms

DrawModel
void DrawModel(Model model, Vector3 position, float scale, Color tint)

Draw a model (with texture if set)

DrawModelEx
void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)

Draw a model with extended parameters

DrawModelWires
void DrawModelWires(Model model, Vector3 position, float scale, Color tint)

Draw a model wires (with texture if set)

DrawModelWiresEx
void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)

Draw a model wires (with texture if set) with extended parameters

DrawPixel
void DrawPixel(int posX, int posY, Color color)

Draw a pixel

DrawPixelV
void DrawPixelV(Vector2 position, Color color)

Draw a pixel (Vector version)

DrawPlane
void DrawPlane(Vector3 centerPos, Vector2 size, Color color)

Draw a plane XZ

DrawPoint3D
void DrawPoint3D(Vector3 position, Color color)

Draw a point in 3D space, actually a small line

DrawPoly
void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color)

Draw a regular polygon (Vector version)

DrawPolyLines
void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color)

Draw a polygon outline of n sides

DrawPolyLinesEx
void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color)

Draw a polygon outline of n sides with extended parameters

DrawRay
void DrawRay(Ray ray, Color color)

Draw a ray line

DrawRectangle
void DrawRectangle(int posX, int posY, int width, int height, Color color)

Draw a color-filled rectangle

DrawRectangleGradientEx
void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4)

Draw a gradient-filled rectangle with custom vertex colors

DrawRectangleGradientH
void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2)

Draw a horizontal-gradient-filled rectangle

DrawRectangleGradientV
void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2)

Draw a vertical-gradient-filled rectangle

DrawRectangleLines
void DrawRectangleLines(int posX, int posY, int width, int height, Color color)

Draw rectangle outline

DrawRectangleLinesEx
void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color)

Draw rectangle outline with extended parameters

DrawRectanglePro
void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color)

Draw a color-filled rectangle with pro parameters

DrawRectangleRec
void DrawRectangleRec(Rectangle rec, Color color)

Draw a color-filled rectangle

DrawRectangleRounded
void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color)

Draw rectangle with rounded edges

DrawRectangleRoundedLines
void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, float lineThick, Color color)

Draw rectangle with rounded edges outline

DrawRectangleV
void DrawRectangleV(Vector2 position, Vector2 size, Color color)

Draw a color-filled rectangle (Vector version)

DrawRing
void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color)

Draw ring

DrawRingLines
void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color)

Draw ring outline

DrawSphere
void DrawSphere(Vector3 centerPos, float radius, Color color)

Draw sphere

DrawSphereEx
void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color)

Draw sphere with extended parameters

DrawSphereWires
void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color)

Draw sphere wires

DrawSplineBasis
void DrawSplineBasis(Vector2* points, int pointCount, float thick, Color color)

Draw spline: B-Spline, minimum 4 points

DrawSplineBezierCubic
void DrawSplineBezierCubic(Vector2* points, int pointCount, float thick, Color color)

Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]

DrawSplineBezierQuadratic
void DrawSplineBezierQuadratic(Vector2* points, int pointCount, float thick, Color color)

Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]

DrawSplineCatmullRom
void DrawSplineCatmullRom(Vector2* points, int pointCount, float thick, Color color)

Draw spline: Catmull-Rom, minimum 4 points

DrawSplineLinear
void DrawSplineLinear(Vector2* points, int pointCount, float thick, Color color)

Draw spline: Linear, minimum 2 points

DrawSplineSegmentBasis
void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color)

Draw spline segment: B-Spline, 4 points

DrawSplineSegmentBezierCubic
void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color)

Draw spline segment: Cubic Bezier, 2 points, 2 control points

DrawSplineSegmentBezierQuadratic
void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color)

Draw spline segment: Quadratic Bezier, 2 points, 1 control point

DrawSplineSegmentCatmullRom
void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color)

Draw spline segment: Catmull-Rom, 4 points

DrawSplineSegmentLinear
void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color)

Draw spline segment: Linear, 2 points

DrawText
void DrawText(const(char)* text, int posX, int posY, int fontSize, Color color)

Draw text (using default font)

DrawTextCodepoint
void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint)

Draw one character (codepoint)

DrawTextCodepoints
void DrawTextCodepoints(Font font, const(int)* codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint)

Draw multiple character (codepoint)

DrawTextEx
void DrawTextEx(Font font, const(char)* text, Vector2 position, float fontSize, float spacing, Color tint)

Draw text using font and additional parameters

DrawTextPro
void DrawTextPro(Font font, const(char)* text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint)

Draw text using Font and pro parameters (rotation)

DrawTexture
void DrawTexture(Texture2D texture, int posX, int posY, Color tint)

Draw a Texture2D

DrawTextureEx
void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint)

Draw a Texture2D with extended parameters

DrawTextureNPatch
void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint)

Draws a texture (or part of it) that stretches or shrinks nicely

DrawTexturePro
void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint)

Draw a part of a texture defined by a rectangle with 'pro' parameters

DrawTextureRec
void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint)

Draw a part of a texture defined by a rectangle

DrawTextureV
void DrawTextureV(Texture2D texture, Vector2 position, Color tint)

Draw a Texture2D with position defined as Vector2

DrawTriangle
void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color)

Draw a color-filled triangle (vertex in counter-clockwise order!)

DrawTriangle3D
void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color)

Draw a color-filled triangle (vertex in counter-clockwise order!)

DrawTriangleFan
void DrawTriangleFan(Vector2* points, int pointCount, Color color)

Draw a triangle fan defined by points (first vertex is the center)

DrawTriangleLines
void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color)

Draw triangle outline (vertex in counter-clockwise order!)

DrawTriangleStrip
void DrawTriangleStrip(Vector2* points, int pointCount, Color color)

Draw a triangle strip defined by points

DrawTriangleStrip3D
void DrawTriangleStrip3D(Vector3* points, int pointCount, Color color)

Draw a triangle strip defined by points

EnableCursor
void EnableCursor()

Enables cursor (unlock cursor)

EnableEventWaiting
void EnableEventWaiting()

Enable waiting for events on EndDrawing(), no automatic event polling

EncodeDataBase64
char* EncodeDataBase64(const(ubyte)* data, int dataSize, int* outputSize)

Encode data to Base64 string, memory must be MemFree()

EndBlendMode
void EndBlendMode()

End blending mode (reset to default: alpha blending)

EndDrawing
void EndDrawing()

End canvas drawing and swap buffers (double buffering)

EndMode2D
void EndMode2D()

Ends 2D mode with custom camera

EndMode3D
void EndMode3D()

Ends 3D mode and returns to default 2D orthographic mode

EndScissorMode
void EndScissorMode()

End scissor mode

EndShaderMode
void EndShaderMode()

End custom shader drawing (use default shader)

EndTextureMode
void EndTextureMode()

Ends drawing to render texture

EndVrStereoMode
void EndVrStereoMode()

End stereo rendering (requires VR simulator)

ExportAutomationEventList
bool ExportAutomationEventList(AutomationEventList list, const(char)* fileName)

Export automation events list as text file

ExportDataAsCode
bool ExportDataAsCode(const(ubyte)* data, int dataSize, const(char)* fileName)

Export data to code (.h), returns true on success

ExportFontAsCode
bool ExportFontAsCode(Font font, const(char)* fileName)

Export font as code file, returns true on success

ExportImage
bool ExportImage(Image image, const(char)* fileName)

Export image data to file, returns true on success

ExportImageAsCode
bool ExportImageAsCode(Image image, const(char)* fileName)

Export image as code file defining an array of bytes, returns true on success

ExportImageToMemory
ubyte* ExportImageToMemory(Image image, const(char)* fileType, int* fileSize)

Export image to memory buffer

ExportMesh
bool ExportMesh(Mesh mesh, const(char)* fileName)

Export mesh data to file, returns true on success

ExportWave
bool ExportWave(Wave wave, const(char)* fileName)

Export wave data to file, returns true on success

ExportWaveAsCode
bool ExportWaveAsCode(Wave wave, const(char)* fileName)

Export wave sample data to code (.h), returns true on success

Fade
Color Fade(Color color, float alpha)

Get color with alpha applied, alpha goes from 0.0f to 1.0f

FileExists
bool FileExists(const(char)* fileName)

Check if file exists

GenImageCellular
Image GenImageCellular(int width, int height, int tileSize)

Generate image: cellular algorithm, bigger tileSize means bigger cells

GenImageChecked
Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2)

Generate image: checked

GenImageColor
Image GenImageColor(int width, int height, Color color)

Generate image: plain color

GenImageFontAtlas
Image GenImageFontAtlas(GlyphInfo* glyphs, Rectangle** glyphRecs, int glyphCount, int fontSize, int padding, int packMethod)

Generate image font atlas using chars info

GenImageGradientLinear
Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end)

Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient

GenImageGradientRadial
Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer)

Generate image: radial gradient

GenImageGradientSquare
Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer)

Generate image: square gradient

GenImagePerlinNoise
Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale)

Generate image: perlin noise

GenImageText
Image GenImageText(int width, int height, const(char)* text)

Generate image: grayscale image from text data

GenImageWhiteNoise
Image GenImageWhiteNoise(int width, int height, float factor)

Generate image: white noise

GenMeshCone
Mesh GenMeshCone(float radius, float height, int slices)

Generate cone/pyramid mesh

GenMeshCube
Mesh GenMeshCube(float width, float height, float length)

Generate cuboid mesh

GenMeshCubicmap
Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize)

Generate cubes-based map mesh from image data

GenMeshCylinder
Mesh GenMeshCylinder(float radius, float height, int slices)

Generate cylinder mesh

GenMeshHeightmap
Mesh GenMeshHeightmap(Image heightmap, Vector3 size)

Generate heightmap mesh from image data

GenMeshHemiSphere
Mesh GenMeshHemiSphere(float radius, int rings, int slices)

Generate half-sphere mesh (no bottom cap)

GenMeshKnot
Mesh GenMeshKnot(float radius, float size, int radSeg, int sides)

Generate trefoil knot mesh

GenMeshPlane
Mesh GenMeshPlane(float width, float length, int resX, int resZ)

Generate plane mesh (with subdivisions)

GenMeshPoly
Mesh GenMeshPoly(int sides, float radius)

Generate polygonal mesh

GenMeshSphere
Mesh GenMeshSphere(float radius, int rings, int slices)

Generate sphere mesh (standard sphere)

GenMeshTangents
void GenMeshTangents(Mesh* mesh)

Compute mesh tangents

GenMeshTorus
Mesh GenMeshTorus(float radius, float size, int radSeg, int sides)

Generate torus mesh

GenTextureMipmaps
void GenTextureMipmaps(Texture2D* texture)

Generate GPU mipmaps for a texture

GetApplicationDirectory
const(char)* GetApplicationDirectory()

Get the directory of the running application (uses static string)

GetCameraMatrix
Matrix GetCameraMatrix(Camera camera)

Get camera transform matrix (view matrix)

GetCameraMatrix2D
Matrix GetCameraMatrix2D(Camera2D camera)

Get camera 2d transform matrix

GetCharPressed
int GetCharPressed()

Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty

GetClipboardText
const(char)* GetClipboardText()

Get clipboard text content

GetCodepoint
int GetCodepoint(const(char)* text, int* codepointSize)

Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure

GetCodepointCount
int GetCodepointCount(const(char)* text)

Get total number of codepoints in a UTF-8 encoded string

GetCodepointNext
int GetCodepointNext(const(char)* text, int* codepointSize)

Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure

GetCodepointPrevious
int GetCodepointPrevious(const(char)* text, int* codepointSize)

Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure

GetCollisionRec
Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2)

Get collision rectangle for two rectangles collision

GetColor
Color GetColor(uint hexValue)

Get Color structure from hexadecimal value

GetCurrentMonitor
int GetCurrentMonitor()

Get current connected monitor

GetDirectoryPath
const(char)* GetDirectoryPath(const(char)* filePath)

Get full path for a given fileName with path (uses static string)

GetFPS
int GetFPS()

Get current FPS

GetFileExtension
const(char)* GetFileExtension(const(char)* fileName)

Get pointer to extension for a filename string (includes dot: '.png')

GetFileLength
int GetFileLength(const(char)* fileName)

Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)

GetFileModTime
long GetFileModTime(const(char)* fileName)

Get file modification time (last write time)

GetFileName
const(char)* GetFileName(const(char)* filePath)

Get pointer to filename for a path string

GetFileNameWithoutExt
const(char)* GetFileNameWithoutExt(const(char)* filePath)

Get filename string without extension (uses static string)

GetFontDefault
Font GetFontDefault()

Get the default Font

GetFrameTime
float GetFrameTime()

Get time in seconds for last frame drawn (delta time)

GetGamepadAxisCount
int GetGamepadAxisCount(int gamepad)

Get gamepad axis count for a gamepad

GetGamepadAxisMovement
float GetGamepadAxisMovement(int gamepad, int axis)

Get axis movement value for a gamepad axis

GetGamepadButtonPressed
int GetGamepadButtonPressed()

Get the last gamepad button pressed

GetGamepadName
const(char)* GetGamepadName(int gamepad)

Get gamepad internal name id

GetGestureDetected
int GetGestureDetected()

Get latest detected gesture

GetGestureDragAngle
float GetGestureDragAngle()

Get gesture drag angle

GetGestureDragVector
Vector2 GetGestureDragVector()

Get gesture drag vector

GetGestureHoldDuration
float GetGestureHoldDuration()

Get gesture hold time in milliseconds

GetGesturePinchAngle
float GetGesturePinchAngle()

Get gesture pinch angle

GetGesturePinchVector
Vector2 GetGesturePinchVector()

Get gesture pinch delta

GetGlyphAtlasRec
Rectangle GetGlyphAtlasRec(Font font, int codepoint)

Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found

GetGlyphIndex
int GetGlyphIndex(Font font, int codepoint)

Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found

GetGlyphInfo
GlyphInfo GetGlyphInfo(Font font, int codepoint)

Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found

GetImageAlphaBorder
Rectangle GetImageAlphaBorder(Image image, float threshold)

Get image alpha border rectangle

GetImageColor
Color GetImageColor(Image image, int x, int y)

Get image pixel color at (x, y) position

GetKeyPressed
int GetKeyPressed()

Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty

GetMasterVolume
float GetMasterVolume()

Get master volume (listener)

GetMeshBoundingBox
BoundingBox GetMeshBoundingBox(Mesh mesh)

Compute mesh bounding box limits

GetModelBoundingBox
BoundingBox GetModelBoundingBox(Model model)

Compute model bounding box limits (considers all meshes)

GetMonitorCount
int GetMonitorCount()

Get number of connected monitors

GetMonitorHeight
int GetMonitorHeight(int monitor)

Get specified monitor height (current video mode used by monitor)

GetMonitorName
const(char)* GetMonitorName(int monitor)

Get the human-readable, UTF-8 encoded name of the specified monitor

GetMonitorPhysicalHeight
int GetMonitorPhysicalHeight(int monitor)

Get specified monitor physical height in millimetres

GetMonitorPhysicalWidth
int GetMonitorPhysicalWidth(int monitor)

Get specified monitor physical width in millimetres

GetMonitorPosition
Vector2 GetMonitorPosition(int monitor)

Get specified monitor position

GetMonitorRefreshRate
int GetMonitorRefreshRate(int monitor)

Get specified monitor refresh rate

GetMonitorWidth
int GetMonitorWidth(int monitor)

Get specified monitor width (current video mode used by monitor)

GetMouseDelta
Vector2 GetMouseDelta()

Get mouse delta between frames

GetMousePosition
Vector2 GetMousePosition()

Get mouse position XY

GetMouseRay
Ray GetMouseRay(Vector2 mousePosition, Camera camera)

Get a ray trace from mouse position

GetMouseWheelMove
float GetMouseWheelMove()

Get mouse wheel movement for X or Y, whichever is larger

GetMouseWheelMoveV
Vector2 GetMouseWheelMoveV()

Get mouse wheel movement for both X and Y

GetMouseX
int GetMouseX()

Get mouse position X

GetMouseY
int GetMouseY()

Get mouse position Y

GetMusicTimeLength
float GetMusicTimeLength(Music music)

Get music time length (in seconds)

GetMusicTimePlayed
float GetMusicTimePlayed(Music music)

Get current music time played (in seconds)

GetPixelColor
Color GetPixelColor(void* srcPtr, int format)

Get Color from a source pixel pointer of certain format

GetPixelDataSize
int GetPixelDataSize(int width, int height, int format)

Get pixel data size in bytes for certain format

GetPrevDirectoryPath
const(char)* GetPrevDirectoryPath(const(char)* dirPath)

Get previous directory path for a given path (uses static string)

GetRandomValue
int GetRandomValue(int min, int max)

Get a random value between min and max (both included)

GetRayCollisionBox
RayCollision GetRayCollisionBox(Ray ray, BoundingBox box)

Get collision info between ray and box

GetRayCollisionMesh
RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform)

Get collision info between ray and mesh

GetRayCollisionQuad
RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4)

Get collision info between ray and quad

GetRayCollisionSphere
RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius)

Get collision info between ray and sphere

GetRayCollisionTriangle
RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3)

Get collision info between ray and triangle

GetRenderHeight
int GetRenderHeight()

Get current render height (it considers HiDPI)

GetRenderWidth
int GetRenderWidth()

Get current render width (it considers HiDPI)

GetScreenHeight
int GetScreenHeight()

Get current screen height

GetScreenToWorld2D
Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera)

Get the world space position for a 2d camera screen space position

GetScreenWidth
int GetScreenWidth()

Get current screen width

GetShaderLocation
int GetShaderLocation(Shader shader, const(char)* uniformName)

Get shader uniform location

GetShaderLocationAttrib
int GetShaderLocationAttrib(Shader shader, const(char)* attribName)

Get shader attribute location

GetSplinePointBasis
Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t)

Get (evaluate) spline point: B-Spline

GetSplinePointBezierCubic
Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t)

Get (evaluate) spline point: Cubic Bezier

GetSplinePointBezierQuad
Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t)

Get (evaluate) spline point: Quadratic Bezier

GetSplinePointCatmullRom
Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t)

Get (evaluate) spline point: Catmull-Rom

GetSplinePointLinear
Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t)

Get (evaluate) spline point: Linear

GetTime
double GetTime()

Get elapsed time in seconds since InitWindow()

GetTouchPointCount
int GetTouchPointCount()

Get number of touch points

GetTouchPointId
int GetTouchPointId(int index)

Get touch point identifier for given index

GetTouchPosition
Vector2 GetTouchPosition(int index)

Get touch position XY for a touch point index (relative to screen size)

GetTouchX
int GetTouchX()

Get touch position X for touch point 0 (relative to screen size)

GetTouchY
int GetTouchY()

Get touch position Y for touch point 0 (relative to screen size)

GetWindowHandle
void* GetWindowHandle()

Get native window handle

GetWindowPosition
Vector2 GetWindowPosition()

Get window position XY on monitor

GetWindowScaleDPI
Vector2 GetWindowScaleDPI()

Get window scale DPI factor

GetWorkingDirectory
const(char)* GetWorkingDirectory()

Get current working directory (uses static string)

GetWorldToScreen
Vector2 GetWorldToScreen(Vector3 position, Camera camera)

Get the screen space position for a 3d world space position

GetWorldToScreen2D
Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera)

Get the screen space position for a 2d camera world space position

GetWorldToScreenEx
Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height)

Get size position for a 3d world space position

HideCursor
void HideCursor()

Hides cursor

ImageAlphaClear
void ImageAlphaClear(Image* image, Color color, float threshold)

Clear alpha channel to desired color

ImageAlphaCrop
void ImageAlphaCrop(Image* image, float threshold)

Crop image depending on alpha value

ImageAlphaMask
void ImageAlphaMask(Image* image, Image alphaMask)

Apply alpha mask to image

ImageAlphaPremultiply
void ImageAlphaPremultiply(Image* image)

Premultiply alpha channel

ImageBlurGaussian
void ImageBlurGaussian(Image* image, int blurSize)

Apply Gaussian blur using a box blur approximation

ImageClearBackground
void ImageClearBackground(Image* dst, Color color)

Clear image background with given color

ImageColorBrightness
void ImageColorBrightness(Image* image, int brightness)

Modify image color: brightness (-255 to 255)

ImageColorContrast
void ImageColorContrast(Image* image, float contrast)

Modify image color: contrast (-100 to 100)

ImageColorGrayscale
void ImageColorGrayscale(Image* image)

Modify image color: grayscale

ImageColorInvert
void ImageColorInvert(Image* image)

Modify image color: invert

ImageColorReplace
void ImageColorReplace(Image* image, Color color, Color replace)

Modify image color: replace color

ImageColorTint
void ImageColorTint(Image* image, Color color)

Modify image color: tint

ImageCopy
Image ImageCopy(Image image)

Create an image duplicate (useful for transformations)

ImageCrop
void ImageCrop(Image* image, Rectangle crop)

Crop an image to a defined rectangle

ImageDither
void ImageDither(Image* image, int rBpp, int gBpp, int bBpp, int aBpp)

Dither image data to 16bpp or lower (Floyd-Steinberg dithering)

ImageDraw
void ImageDraw(Image* dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint)

Draw a source image within a destination image (tint applied to source)

ImageDrawCircle
void ImageDrawCircle(Image* dst, int centerX, int centerY, int radius, Color color)

Draw a filled circle within an image

ImageDrawCircleLines
void ImageDrawCircleLines(Image* dst, int centerX, int centerY, int radius, Color color)

Draw circle outline within an image

ImageDrawCircleLinesV
void ImageDrawCircleLinesV(Image* dst, Vector2 center, int radius, Color color)

Draw circle outline within an image (Vector version)

ImageDrawCircleV
void ImageDrawCircleV(Image* dst, Vector2 center, int radius, Color color)

Draw a filled circle within an image (Vector version)

ImageDrawLine
void ImageDrawLine(Image* dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color)

Draw line within an image

ImageDrawLineV
void ImageDrawLineV(Image* dst, Vector2 start, Vector2 end, Color color)

Draw line within an image (Vector version)

ImageDrawPixel
void ImageDrawPixel(Image* dst, int posX, int posY, Color color)

Draw pixel within an image

ImageDrawPixelV
void ImageDrawPixelV(Image* dst, Vector2 position, Color color)

Draw pixel within an image (Vector version)

ImageDrawRectangle
void ImageDrawRectangle(Image* dst, int posX, int posY, int width, int height, Color color)

Draw rectangle within an image

ImageDrawRectangleLines
void ImageDrawRectangleLines(Image* dst, Rectangle rec, int thick, Color color)

Draw rectangle lines within an image

ImageDrawRectangleRec
void ImageDrawRectangleRec(Image* dst, Rectangle rec, Color color)

Draw rectangle within an image

ImageDrawRectangleV
void ImageDrawRectangleV(Image* dst, Vector2 position, Vector2 size, Color color)

Draw rectangle within an image (Vector version)

ImageDrawText
void ImageDrawText(Image* dst, const(char)* text, int posX, int posY, int fontSize, Color color)

Draw text (using default font) within an image (destination)

ImageDrawTextEx
void ImageDrawTextEx(Image* dst, Font font, const(char)* text, Vector2 position, float fontSize, float spacing, Color tint)

Draw text (custom sprite font) within an image (destination)

ImageFlipHorizontal
void ImageFlipHorizontal(Image* image)

Flip image horizontally

ImageFlipVertical
void ImageFlipVertical(Image* image)

Flip image vertically

ImageFormat
void ImageFormat(Image* image, int newFormat)

Convert image data to desired format

ImageFromImage
Image ImageFromImage(Image image, Rectangle rec)

Create an image from another image piece

ImageMipmaps
void ImageMipmaps(Image* image)

Compute all mipmap levels for a provided image

ImageResize
void ImageResize(Image* image, int newWidth, int newHeight)

Resize image (Bicubic scaling algorithm)

ImageResizeCanvas
void ImageResizeCanvas(Image* image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill)

Resize canvas and fill with color

ImageResizeNN
void ImageResizeNN(Image* image, int newWidth, int newHeight)

Resize image (Nearest-Neighbor scaling algorithm)

ImageRotate
void ImageRotate(Image* image, int degrees)

Rotate image by input angle in degrees (-359 to 359)

ImageRotateCCW
void ImageRotateCCW(Image* image)

Rotate image counter-clockwise 90deg

ImageRotateCW
void ImageRotateCW(Image* image)

Rotate image clockwise 90deg

ImageText
Image ImageText(const(char)* text, int fontSize, Color color)

Create an image from text (default font)

ImageTextEx
Image ImageTextEx(Font font, const(char)* text, float fontSize, float spacing, Color tint)

Create an image from text (custom sprite font)

ImageToPOT
void ImageToPOT(Image* image, Color fill)

Convert image to POT (power-of-two)

InitAudioDevice
void InitAudioDevice()

Initialize audio device and context

InitWindow
void InitWindow(int width, int height, const(char)* title)

Initialize window and OpenGL context

IsAudioDeviceReady
bool IsAudioDeviceReady()

Check if audio device has been initialized successfully

IsAudioStreamPlaying
bool IsAudioStreamPlaying(AudioStream stream)

Check if audio stream is playing

IsAudioStreamProcessed
bool IsAudioStreamProcessed(AudioStream stream)

Check if any audio stream buffers requires refill

IsAudioStreamReady
bool IsAudioStreamReady(AudioStream stream)

Checks if an audio stream is ready

IsCursorHidden
bool IsCursorHidden()

Check if cursor is not visible

IsCursorOnScreen
bool IsCursorOnScreen()

Check if cursor is on the screen

IsFileDropped
bool IsFileDropped()

Check if a file has been dropped into window

IsFileExtension
bool IsFileExtension(const(char)* fileName, const(char)* ext)

Check file extension (including point: .png, .wav)

IsFontReady
bool IsFontReady(Font font)

Check if a font is ready

IsGamepadAvailable
bool IsGamepadAvailable(int gamepad)

Check if a gamepad is available

IsGamepadButtonDown
bool IsGamepadButtonDown(int gamepad, int button)

Check if a gamepad button is being pressed

IsGamepadButtonPressed
bool IsGamepadButtonPressed(int gamepad, int button)

Check if a gamepad button has been pressed once

IsGamepadButtonReleased
bool IsGamepadButtonReleased(int gamepad, int button)

Check if a gamepad button has been released once

IsGamepadButtonUp
bool IsGamepadButtonUp(int gamepad, int button)

Check if a gamepad button is NOT being pressed

IsGestureDetected
bool IsGestureDetected(uint gesture)

Check if a gesture have been detected

IsImageReady
bool IsImageReady(Image image)

Check if an image is ready

IsKeyDown
bool IsKeyDown(int key)

Check if a key is being pressed

IsKeyPressed
bool IsKeyPressed(int key)

Check if a key has been pressed once

IsKeyPressedRepeat
bool IsKeyPressedRepeat(int key)

Check if a key has been pressed again (Only PLATFORM_DESKTOP)

IsKeyReleased
bool IsKeyReleased(int key)

Check if a key has been released once

IsKeyUp
bool IsKeyUp(int key)

Check if a key is NOT being pressed

IsMaterialReady
bool IsMaterialReady(Material material)

Check if a material is ready

IsModelAnimationValid
bool IsModelAnimationValid(Model model, ModelAnimation anim)

Check model animation skeleton match

IsModelReady
bool IsModelReady(Model model)

Check if a model is ready

IsMouseButtonDown
bool IsMouseButtonDown(int button)

Check if a mouse button is being pressed

IsMouseButtonPressed
bool IsMouseButtonPressed(int button)

Check if a mouse button has been pressed once

IsMouseButtonReleased
bool IsMouseButtonReleased(int button)

Check if a mouse button has been released once

IsMouseButtonUp
bool IsMouseButtonUp(int button)

Check if a mouse button is NOT being pressed

IsMusicReady
bool IsMusicReady(Music music)

Checks if a music stream is ready

IsMusicStreamPlaying
bool IsMusicStreamPlaying(Music music)

Check if music is playing

IsPathFile
bool IsPathFile(const(char)* path)

Check if a given path is a file or a directory

IsRenderTextureReady
bool IsRenderTextureReady(RenderTexture2D target)

Check if a render texture is ready

IsShaderReady
bool IsShaderReady(Shader shader)

Check if a shader is ready

IsSoundPlaying
bool IsSoundPlaying(Sound sound)

Check if a sound is currently playing

IsSoundReady
bool IsSoundReady(Sound sound)

Checks if a sound is ready

IsTextureReady
bool IsTextureReady(Texture2D texture)

Check if a texture is ready

IsWaveReady
bool IsWaveReady(Wave wave)

Checks if wave data is ready

IsWindowFocused
bool IsWindowFocused()

Check if window is currently focused (only PLATFORM_DESKTOP)

IsWindowFullscreen
bool IsWindowFullscreen()

Check if window is currently fullscreen

IsWindowHidden
bool IsWindowHidden()

Check if window is currently hidden (only PLATFORM_DESKTOP)

IsWindowMaximized
bool IsWindowMaximized()

Check if window is currently maximized (only PLATFORM_DESKTOP)

IsWindowMinimized
bool IsWindowMinimized()

Check if window is currently minimized (only PLATFORM_DESKTOP)

IsWindowReady
bool IsWindowReady()

Check if window has been initialized successfully

IsWindowResized
bool IsWindowResized()

Check if window has been resized last frame

IsWindowState
bool IsWindowState(uint flag)

Check if one specific window flag is enabled

LoadAudioStream
AudioStream LoadAudioStream(uint sampleRate, uint sampleSize, uint channels)

Load audio stream (to stream raw audio pcm data)

LoadAutomationEventList
AutomationEventList LoadAutomationEventList(const(char)* fileName)

Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS

LoadCodepoints
int* LoadCodepoints(const(char)* text, int* count)

Load all codepoints from a UTF-8 text string, codepoints count returned by parameter

LoadDirectoryFiles
FilePathList LoadDirectoryFiles(const(char)* dirPath)

Load directory filepaths

LoadDirectoryFilesEx
FilePathList LoadDirectoryFilesEx(const(char)* basePath, const(char)* filter, bool scanSubdirs)

Load directory filepaths with extension filtering and recursive directory scan

LoadDroppedFiles
FilePathList LoadDroppedFiles()

Load dropped filepaths

LoadFileData
ubyte* LoadFileData(const(char)* fileName, int* dataSize)

Load file data as byte array (read)

LoadFileText
char* LoadFileText(const(char)* fileName)

Load text data from file (read), returns a '\0' terminated string

LoadFont
Font LoadFont(const(char)* fileName)

Load font from file into GPU memory (VRAM)

LoadFontData
GlyphInfo* LoadFontData(const(ubyte)* fileData, int dataSize, int fontSize, int* codepoints, int codepointCount, int type)

Load font data for further use

LoadFontEx
Font LoadFontEx(const(char)* fileName, int fontSize, int* codepoints, int codepointCount)

Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont

LoadFontFromImage
Font LoadFontFromImage(Image image, Color key, int firstChar)

Load font from Image (XNA style)

LoadFontFromMemory
Font LoadFontFromMemory(const(char)* fileType, const(ubyte)* fileData, int dataSize, int fontSize, int* codepoints, int codepointCount)

Load font from memory buffer, fileType refers to extension: i.e. '.ttf'

LoadImage
Image LoadImage(const(char)* fileName)

Load image from file into CPU memory (RAM)

LoadImageAnim
Image LoadImageAnim(const(char)* fileName, int* frames)

Load image sequence from file (frames appended to image.data)

LoadImageColors
Color* LoadImageColors(Image image)

Load color data from image as a Color array (RGBA - 32bit)

LoadImageFromMemory
Image LoadImageFromMemory(const(char)* fileType, const(ubyte)* fileData, int dataSize)

Load image from memory buffer, fileType refers to extension: i.e. '.png'

LoadImageFromScreen
Image LoadImageFromScreen()

Load image from screen buffer and (screenshot)

LoadImageFromTexture
Image LoadImageFromTexture(Texture2D texture)

Load image from GPU texture data

LoadImagePalette
Color* LoadImagePalette(Image image, int maxPaletteSize, int* colorCount)

Load colors palette from image as a Color array (RGBA - 32bit)

LoadImageRaw
Image LoadImageRaw(const(char)* fileName, int width, int height, int format, int headerSize)

Load image from RAW file data

LoadImageSvg
Image LoadImageSvg(const(char)* fileNameOrString, int width, int height)

Load image from SVG file data or string with specified size

LoadMaterialDefault
Material LoadMaterialDefault()

Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)

LoadMaterials
Material* LoadMaterials(const(char)* fileName, int* materialCount)

Load materials from model file

LoadModel
Model LoadModel(const(char)* fileName)

Load model from files (meshes and materials)

LoadModelAnimations
ModelAnimation* LoadModelAnimations(const(char)* fileName, int* animCount)

Load model animations from file

LoadModelFromMesh
Model LoadModelFromMesh(Mesh mesh)

Load model from generated mesh (default material)

LoadMusicStream
Music LoadMusicStream(const(char)* fileName)

Load music stream from file

LoadMusicStreamFromMemory
Music LoadMusicStreamFromMemory(const(char)* fileType, const(ubyte)* data, int dataSize)

Load music stream from data

LoadRandomSequence
int* LoadRandomSequence(uint count, int min, int max)

Load random values sequence, no values repeated

LoadRenderTexture
RenderTexture2D LoadRenderTexture(int width, int height)

Load texture for rendering (framebuffer)

LoadShader
Shader LoadShader(const(char)* vsFileName, const(char)* fsFileName)

Load shader from files and bind default locations

LoadShaderFromMemory
Shader LoadShaderFromMemory(const(char)* vsCode, const(char)* fsCode)

Load shader from code strings and bind default locations

LoadSound
Sound LoadSound(const(char)* fileName)

Load sound from file

LoadSoundAlias
Sound LoadSoundAlias(Sound source)

Create a new sound that shares the same sample data as the source sound, does not own the sound data

LoadSoundFromWave
Sound LoadSoundFromWave(Wave wave)

Load sound from wave data

LoadTexture
Texture2D LoadTexture(const(char)* fileName)

Load texture from file into GPU memory (VRAM)

LoadTextureCubemap
TextureCubemap LoadTextureCubemap(Image image, int layout)

Load cubemap from image, multiple image cubemap layouts supported

LoadTextureFromImage
Texture2D LoadTextureFromImage(Image image)

Load texture from image data

LoadUTF8
char* LoadUTF8(const(int)* codepoints, int length)

Load UTF-8 text encoded from codepoints array

LoadVrStereoConfig
VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device)

Load VR stereo config for VR simulator device parameters

LoadWave
Wave LoadWave(const(char)* fileName)

Load wave data from file

LoadWaveFromMemory
Wave LoadWaveFromMemory(const(char)* fileType, const(ubyte)* fileData, int dataSize)

Load wave from memory buffer, fileType refers to extension: i.e. '.wav'

LoadWaveSamples
float* LoadWaveSamples(Wave wave)

Load samples data from wave as a 32bit float data array

MaximizeWindow
void MaximizeWindow()

Set window state: maximized, if resizable (only PLATFORM_DESKTOP)

MeasureText
int MeasureText(const(char)* text, int fontSize)

Measure string width for default font

MeasureTextEx
Vector2 MeasureTextEx(Font font, const(char)* text, float fontSize, float spacing)

Measure string size for Font

MemAlloc
void* MemAlloc(uint size)

Internal memory allocator

MemFree
void MemFree(void* ptr)

Internal memory free

MemRealloc
void* MemRealloc(void* ptr, uint size)

Internal memory reallocator

MinimizeWindow
void MinimizeWindow()

Set window state: minimized, if resizable (only PLATFORM_DESKTOP)

OpenURL
void OpenURL(const(char)* url)

Open URL with default system browser (if available)

PauseAudioStream
void PauseAudioStream(AudioStream stream)

Pause audio stream

PauseMusicStream
void PauseMusicStream(Music music)

Pause music playing

PauseSound
void PauseSound(Sound sound)

Pause a sound

PlayAudioStream
void PlayAudioStream(AudioStream stream)

Play audio stream

PlayAutomationEvent
void PlayAutomationEvent(AutomationEvent event)

Play a recorded automation event

PlayMusicStream
void PlayMusicStream(Music music)

Start music playing

PlaySound
void PlaySound(Sound sound)

Play a sound

PollInputEvents
void PollInputEvents()

Register all input events

RestoreWindow
void RestoreWindow()

Set window state: not minimized/maximized (only PLATFORM_DESKTOP)

ResumeAudioStream
void ResumeAudioStream(AudioStream stream)

Resume audio stream

ResumeMusicStream
void ResumeMusicStream(Music music)

Resume playing paused music

ResumeSound
void ResumeSound(Sound sound)

Resume a paused sound

SaveFileData
bool SaveFileData(const(char)* fileName, void* data, int dataSize)

Save data to file from byte array (write), returns true on success

SaveFileText
bool SaveFileText(const(char)* fileName, char* text)

Save text data to file (write), string must be '\0' terminated, returns true on success

SeekMusicStream
void SeekMusicStream(Music music, float position)

Seek music to a position (in seconds)

SetAudioStreamBufferSizeDefault
void SetAudioStreamBufferSizeDefault(int size)

Default size for new audio streams

SetAudioStreamCallback
void SetAudioStreamCallback(AudioStream stream, AudioCallback callback)

Audio thread callback to request new data

SetAudioStreamPan
void SetAudioStreamPan(AudioStream stream, float pan)

Set pan for audio stream (0.5 is centered)

SetAudioStreamPitch
void SetAudioStreamPitch(AudioStream stream, float pitch)

Set pitch for audio stream (1.0 is base level)

SetAudioStreamVolume
void SetAudioStreamVolume(AudioStream stream, float volume)

Set volume for audio stream (1.0 is max level)

SetAutomationEventBaseFrame
void SetAutomationEventBaseFrame(int frame)

Set automation event internal base frame to start recording

SetAutomationEventList
void SetAutomationEventList(AutomationEventList* list)

Set automation event list to record to

SetClipboardText
void SetClipboardText(const(char)* text)

Set clipboard text content

SetConfigFlags
void SetConfigFlags(uint flags)

Setup init configuration flags (view FLAGS)

SetExitKey
void SetExitKey(int key)

Set a custom key to exit program (default is ESC)

SetGamepadMappings
int SetGamepadMappings(const(char)* mappings)

Set internal gamepad mappings (SDL_GameControllerDB)

SetGesturesEnabled
void SetGesturesEnabled(uint flags)

Enable a set of gestures using flags

SetMasterVolume
void SetMasterVolume(float volume)

Set master volume (listener)

SetMaterialTexture
void SetMaterialTexture(Material* material, int mapType, Texture2D texture)

Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)

SetModelMeshMaterial
void SetModelMeshMaterial(Model* model, int meshId, int materialId)

Set material for a mesh

SetMouseCursor
void SetMouseCursor(int cursor)

Set mouse cursor

SetMouseOffset
void SetMouseOffset(int offsetX, int offsetY)

Set mouse offset

SetMousePosition
void SetMousePosition(int x, int y)

Set mouse position XY

SetMouseScale
void SetMouseScale(float scaleX, float scaleY)

Set mouse scaling

SetMusicPan
void SetMusicPan(Music music, float pan)

Set pan for a music (0.5 is center)

SetMusicPitch
void SetMusicPitch(Music music, float pitch)

Set pitch for a music (1.0 is base level)

SetMusicVolume
void SetMusicVolume(Music music, float volume)

Set volume for music (1.0 is max level)

SetPixelColor
void SetPixelColor(void* dstPtr, Color color, int format)

Set color formatted into destination pixel pointer

SetRandomSeed
void SetRandomSeed(uint seed)

Set the seed for the random number generator

SetShaderValue
void SetShaderValue(Shader shader, int locIndex, const(void)* value, int uniformType)

Set shader uniform value

SetShaderValueMatrix
void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat)

Set shader uniform value (matrix 4x4)

SetShaderValueTexture
void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture)

Set shader uniform value for texture (sampler2d)

SetShaderValueV
void SetShaderValueV(Shader shader, int locIndex, const(void)* value, int uniformType, int count)

Set shader uniform value vector

SetShapesTexture
void SetShapesTexture(Texture2D texture, Rectangle source)

Set texture and rectangle to be used on shapes drawing

SetSoundPan
void SetSoundPan(Sound sound, float pan)

Set pan for a sound (0.5 is center)

SetSoundPitch
void SetSoundPitch(Sound sound, float pitch)

Set pitch for a sound (1.0 is base level)

SetSoundVolume
void SetSoundVolume(Sound sound, float volume)

Set volume for a sound (1.0 is max level)

SetTargetFPS
void SetTargetFPS(int fps)

Set target FPS (maximum)

SetTextLineSpacing
void SetTextLineSpacing(int spacing)

Set vertical line spacing when drawing with line-breaks

SetTextureFilter
void SetTextureFilter(Texture2D texture, int filter)

Set texture scaling filter mode

SetTextureWrap
void SetTextureWrap(Texture2D texture, int wrap)

Set texture wrapping mode

SetTraceLogLevel
void SetTraceLogLevel(int logLevel)

Set the current threshold (minimum) log level

SetWindowFocused
void SetWindowFocused()

Set window focused (only PLATFORM_DESKTOP)

SetWindowIcon
void SetWindowIcon(Image image)

Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)

SetWindowIcons
void SetWindowIcons(Image* images, int count)

Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)

SetWindowMaxSize
void SetWindowMaxSize(int width, int height)

Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)

SetWindowMinSize
void SetWindowMinSize(int width, int height)

Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)

SetWindowMonitor
void SetWindowMonitor(int monitor)

Set monitor for the current window

SetWindowOpacity
void SetWindowOpacity(float opacity)

Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)

SetWindowPosition
void SetWindowPosition(int x, int y)

Set window position on screen (only PLATFORM_DESKTOP)

SetWindowSize
void SetWindowSize(int width, int height)

Set window dimensions

SetWindowState
void SetWindowState(uint flags)

Set window configuration state using flags (only PLATFORM_DESKTOP)

SetWindowTitle
void SetWindowTitle(const(char)* title)

Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)

ShowCursor
void ShowCursor()

Shows cursor

StartAutomationEventRecording
void StartAutomationEventRecording()

Start recording automation events (AutomationEventList must be set)

StopAudioStream
void StopAudioStream(AudioStream stream)

Stop audio stream

StopAutomationEventRecording
void StopAutomationEventRecording()

Stop recording automation events

StopMusicStream
void StopMusicStream(Music music)

Stop music playing

StopSound
void StopSound(Sound sound)

Stop playing a sound

SwapScreenBuffer
void SwapScreenBuffer()

Swap back buffer with front buffer (screen drawing)

TakeScreenshot
void TakeScreenshot(const(char)* fileName)

Takes a screenshot of current screen (filename extension defines format)

TextAppend
void TextAppend(char* text, const(char)* append, int* position)

Append text at specific position and move cursor!

TextCopy
int TextCopy(char* dst, const(char)* src)

Copy one string to another, returns bytes copied

TextFindIndex
int TextFindIndex(const(char)* text, const(char)* find)

Find first text occurrence within a string

TextInsert
char* TextInsert(const(char)* text, const(char)* insert, int position)

Insert text in a position (WARNING: memory must be freed!)

TextIsEqual
bool TextIsEqual(const(char)* text1, const(char)* text2)

Check if two text string are equal

TextJoin
const(char)* TextJoin(const(char*)* textList, int count, const(char)* delimiter)

Join text strings with delimiter

TextLength
uint TextLength(const(char)* text)

Get text length, checks for '\0' ending

TextReplace
char* TextReplace(char* text, const(char)* replace, const(char)* by)

Replace text string (WARNING: memory must be freed!)

TextSplit
const(char*)* TextSplit(const(char)* text, char delimiter, int* count)

Split text into multiple strings

TextSubtext
const(char)* TextSubtext(const(char)* text, int position, int length)

Get a piece of a text string

TextToInteger
int TextToInteger(const(char)* text)

Get integer value from text (negative values not supported)

TextToLower
const(char)* TextToLower(const(char)* text)

Get lower case version of provided string

TextToPascal
const(char)* TextToPascal(const(char)* text)

Get Pascal case notation version of provided string

TextToUpper
const(char)* TextToUpper(const(char)* text)

Get upper case version of provided string

ToggleBorderlessWindowed
void ToggleBorderlessWindowed()

Toggle window state: borderless windowed (only PLATFORM_DESKTOP)

ToggleFullscreen
void ToggleFullscreen()

Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)

UnloadAudioStream
void UnloadAudioStream(AudioStream stream)

Unload audio stream and free memory

UnloadAutomationEventList
void UnloadAutomationEventList(AutomationEventList* list)

Unload automation events list from file

UnloadCodepoints
void UnloadCodepoints(int* codepoints)

Unload codepoints data from memory

UnloadDirectoryFiles
void UnloadDirectoryFiles(FilePathList files)

Unload filepaths

UnloadDroppedFiles
void UnloadDroppedFiles(FilePathList files)

Unload dropped filepaths

UnloadFileData
void UnloadFileData(ubyte* data)

Unload file data allocated by LoadFileData()

UnloadFileText
void UnloadFileText(char* text)

Unload file text data allocated by LoadFileText()

UnloadFont
void UnloadFont(Font font)

Unload font from GPU memory (VRAM)

UnloadFontData
void UnloadFontData(GlyphInfo* glyphs, int glyphCount)

Unload font chars info data (RAM)

UnloadImage
void UnloadImage(Image image)

Unload image from CPU memory (RAM)

UnloadImageColors
void UnloadImageColors(Color* colors)

Unload color data loaded with LoadImageColors()

UnloadImagePalette
void UnloadImagePalette(Color* colors)

Unload colors palette loaded with LoadImagePalette()

UnloadMaterial
void UnloadMaterial(Material material)

Unload material from GPU memory (VRAM)

UnloadMesh
void UnloadMesh(Mesh mesh)

Unload mesh data from CPU and GPU

UnloadModel
void UnloadModel(Model model)

Unload model (including meshes) from memory (RAM and/or VRAM)

UnloadModelAnimation
void UnloadModelAnimation(ModelAnimation anim)

Unload animation data

UnloadModelAnimations
void UnloadModelAnimations(ModelAnimation* animations, int animCount)

Unload animation array data

UnloadMusicStream
void UnloadMusicStream(Music music)

Unload music stream

UnloadRandomSequence
void UnloadRandomSequence(int* sequence)

Unload random values sequence

UnloadRenderTexture
void UnloadRenderTexture(RenderTexture2D target)

Unload render texture from GPU memory (VRAM)

UnloadShader
void UnloadShader(Shader shader)

Unload shader from GPU memory (VRAM)

UnloadSound
void UnloadSound(Sound sound)

Unload sound

UnloadSoundAlias
void UnloadSoundAlias(Sound aka)

Unload a sound alias (does not deallocate sample data)

UnloadTexture
void UnloadTexture(Texture2D texture)

Unload texture from GPU memory (VRAM)

UnloadUTF8
void UnloadUTF8(char* text)

Unload UTF-8 text encoded from codepoints array

UnloadVrStereoConfig
void UnloadVrStereoConfig(VrStereoConfig config)

Unload VR stereo config

UnloadWave
void UnloadWave(Wave wave)

Unload wave data

UnloadWaveSamples
void UnloadWaveSamples(float* samples)

Unload samples data loaded with LoadWaveSamples()

UpdateAudioStream
void UpdateAudioStream(AudioStream stream, const(void)* data, int frameCount)

Update audio stream buffers with data

UpdateCamera
void UpdateCamera(Camera* camera, int mode)

Update camera position for selected mode

UpdateCameraPro
void UpdateCameraPro(Camera* camera, Vector3 movement, Vector3 rotation, float zoom)

Update camera movement/rotation

UpdateMeshBuffer
void UpdateMeshBuffer(Mesh mesh, int index, const(void)* data, int dataSize, int offset)

Update mesh vertex data in GPU for a specific buffer index

UpdateModelAnimation
void UpdateModelAnimation(Model model, ModelAnimation anim, int frame)

Update model animation pose

UpdateMusicStream
void UpdateMusicStream(Music music)

Updates buffers for music streaming

UpdateSound
void UpdateSound(Sound sound, const(void)* data, int sampleCount)

Update sound buffer with new data

UpdateTexture
void UpdateTexture(Texture2D texture, const(void)* pixels)

Update GPU texture with new data

UpdateTextureRec
void UpdateTextureRec(Texture2D texture, Rectangle rec, const(void)* pixels)

Update GPU texture rectangle with new data

UploadMesh
void UploadMesh(Mesh* mesh, bool dynamic)

Upload mesh vertex data in GPU and provide VAO/VBO ids

WaitTime
void WaitTime(double seconds)

Wait for some time (halt program execution)

WaveCopy
Wave WaveCopy(Wave wave)

Copy a wave to a new wave

WaveCrop
void WaveCrop(Wave* wave, int initSample, int finalSample)

Crop a wave to defined samples range

WaveFormat
void WaveFormat(Wave* wave, int sampleRate, int sampleSize, int channels)

Convert wave data to desired format

WindowShouldClose
bool WindowShouldClose()

Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)

Meta