Package com.raylib
Class Raylib
java.lang.Object
com.raylib.Raylib
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Color blending modes (pre-defined)static class
Camera system modesstatic class
Camera projectionstatic class
System/Window config flagsstatic class
Cubemap layoutsstatic class
Font type, defines generation methodstatic class
Gamepad axisstatic class
Gamepad buttonsstatic class
Gesturestatic class
Keyboard keys (US keyboard layout)static class
Material map indexstatic class
Mouse buttonsstatic class
Mouse cursorstatic class
N-patch layoutstatic class
Pixel formatsstatic class
Shader attribute data typesstatic class
Shader location indexstatic class
Shader uniform data typestatic class
Texture parameters: filter modestatic class
Texture parameters: wrap modestatic class
Trace log level -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
static Color
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
attachAudioMixedProcessor
(MemorySegment processor) Attach audio stream processor to the entire audio pipeline, receives the samples ass static void
attachAudioStreamProcessor
(AudioStream stream, MemorySegment processor) Attach audio stream processor to stream, receives the samples ass static void
beginBlendMode
(int mode) Begin blending mode (alpha, additive, multiplied, subtract, custom)static void
Setup canvas (framebuffer) to start drawingstatic void
beginMode2D
(Camera2D camera) Begin 2D mode with custom camera (2D)static void
beginMode3D
(Camera3D camera) Begin 3D mode with custom camera (3D)static void
beginScissorMode
(int x, int y, int width, int height) Begin scissor mode (define screen area for following drawing)static void
beginShaderMode
(Shader shader) Begin custom shader drawingstatic void
beginTextureMode
(RenderTexture target) Begin drawing to render texturestatic void
beginVrStereoMode
(VrStereoConfig config) Begin stereo rendering (requires VR simulator)static boolean
changeDirectory
(String dir) Change working directory, return true on successstatic boolean
checkCollisionBoxes
(BoundingBox box1, BoundingBox box2) Check collision between two bounding boxesstatic boolean
checkCollisionBoxSphere
(BoundingBox box, Vector3 center, float radius) Check collision between box and spherestatic boolean
checkCollisionCircleRec
(Vector2 center, float radius, Rectangle rec) Check collision between circle and rectanglestatic boolean
checkCollisionCircles
(Vector2 center1, float radius1, Vector2 center2, float radius2) Check collision between two circlesstatic boolean
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 referencestatic boolean
checkCollisionPointCircle
(Vector2 point, Vector2 center, float radius) Check if point is inside circlestatic boolean
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]static boolean
checkCollisionPointPoly
(Vector2 point, Vector2 points, int pointCount) Check if point is within a polygon described by array of verticesstatic boolean
checkCollisionPointRec
(Vector2 point, Rectangle rec) Check if point is inside rectanglestatic boolean
checkCollisionPointTriangle
(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) Check if point is inside a trianglestatic boolean
checkCollisionRecs
(Rectangle rec1, Rectangle rec2) Check collision between two rectanglesstatic boolean
checkCollisionSpheres
(Vector3 center1, float radius1, Vector3 center2, float radius2) Check collision between two spheresstatic void
clearBackground
(Color color) Set background color (framebuffer clear color)static void
clearWindowState
(int flags) Clear window configuration state flagsstatic void
Close the audio device and contextstatic void
Close window and unload OpenGL contextstatic String
codepointToUTF8
(int codepoint, IntBuffer utf8Size) Encode one codepoint into UTF-8 byte array (array length returned as parameter)static Color
colorAlpha
(Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
colorAlpha
(Arena arena, Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
colorAlphaBlend
(Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic Color
colorAlphaBlend
(Arena arena, Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic Color
colorBrightness
(Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic Color
colorBrightness
(Arena arena, Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic Color
colorContrast
(Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic Color
colorContrast
(Arena arena, Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic Color
colorFromHSV
(float hue, float saturation, float value) Get a Color from HSV values, hue [0..360], saturation/value [0..1]static Color
colorFromHSV
(Arena arena, float hue, float saturation, float value) Get a Color from HSV values, hue [0..360], saturation/value [0..1]static Color
colorFromNormalized
(Vector4 normalized) Get Color from normalized values [0..1]static Color
colorFromNormalized
(Arena arena, Vector4 normalized) Get Color from normalized values [0..1]static Vector4
colorNormalize
(Color color) Get Color normalized as float [0..1]static Vector4
colorNormalize
(Arena arena, Color color) Get Color normalized as float [0..1]static Color
Get color multiplied with another colorstatic Color
Get color multiplied with another colorstatic Vector3
colorToHSV
(Color color) Get HSV values for a Color, hue [0..360], saturation/value [0..1]static Vector3
colorToHSV
(Arena arena, Color color) Get HSV values for a Color, hue [0..360], saturation/value [0..1]static int
colorToInt
(Color color) Get hexadecimal value for a Colorstatic ByteBuffer
compressData
(ByteBuffer data, int dataSize, IntBuffer compDataSize) Compress data (DEFLATE algorithm), memory must be MemFree()static ByteBuffer
createByteBuffer
(int size) Any ByteBuffers you create *MUST* be direct allocation and native order.static FloatBuffer
createFloatBuffer
(int size) Any FloatBuffers you create *MUST* be direct allocation and native order.static IntBuffer
createIntBuffer
(int size) Any IntBuffers you create *MUST* be direct allocation and native order.static ByteBuffer
decodeDataBase64
(ByteBuffer data, IntBuffer outputSize) Decode Base64 string data, memory must be MemFree()static ByteBuffer
decompressData
(ByteBuffer compData, int compDataSize, IntBuffer dataSize) Decompress data (DEFLATE algorithm), memory must be MemFree()static void
detachAudioMixedProcessor
(MemorySegment processor) Detach audio stream processor from the entire audio pipelinestatic void
detachAudioStreamProcessor
(AudioStream stream, MemorySegment processor) Detach audio stream processor from streamstatic boolean
directoryExists
(String dirPath) Check if a directory path existsstatic void
Disables cursor (lock cursor)static void
Disable waiting for events on EndDrawing(), automatic events pollingstatic void
drawBillboard
(Camera3D camera, Texture texture, Vector3 position, float size, Color tint) Draw a billboard texturestatic void
drawBillboardPro
(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) Draw a billboard texture defined by source and rotationstatic void
drawBillboardRec
(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint) Draw a billboard texture defined by sourcestatic void
drawBoundingBox
(BoundingBox box, Color color) Draw bounding box (wires)static 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 endPosstatic 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 endPosstatic void
drawCircle
(int centerX, int centerY, float radius, Color color) Draw a color-filled circlestatic void
drawCircle3D
(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) Draw a circle in 3D world spacestatic void
drawCircleGradient
(int centerX, int centerY, float radius, Color color1, Color color2) Draw a gradient-filled circlestatic void
drawCircleLines
(int centerX, int centerY, float radius, Color color) Draw circle outlinestatic void
drawCircleLinesV
(Vector2 center, float radius, Color color) Draw circle outline (Vector version)static void
drawCircleSector
(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw a piece of a circlestatic void
drawCircleSectorLines
(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw circle sector outlinestatic void
drawCircleV
(Vector2 center, float radius, Color color) Draw a color-filled circle (Vector version)static void
Draw cubestatic void
Draw cube (Vector version)static void
drawCubeWires
(Vector3 position, float width, float height, float length, Color color) Draw cube wiresstatic void
drawCubeWiresV
(Vector3 position, Vector3 size, Color color) Draw cube wires (Vector version)static void
drawCylinder
(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) Draw a cylinder/conestatic void
drawCylinderEx
(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) Draw a cylinder with base at startPos and top at endPosstatic void
drawCylinderWires
(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) Draw a cylinder/cone wiresstatic 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 endPosstatic void
drawEllipse
(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipsestatic void
drawEllipseLines
(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipse outlinestatic void
drawFPS
(int posX, int posY) Draw current FPSstatic void
drawGrid
(int slices, float spacing) Draw a grid (centered at (0, 0, 0))static void
Draw a linestatic void
drawLine3D
(Vector3 startPos, Vector3 endPos, Color color) Draw a line in 3D world spacestatic void
drawLineBezier
(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw line segment cubic-bezier in-out interpolationstatic void
drawLineEx
(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw a line (using triangles/quads)static void
drawLineStrip
(Vector2 points, int pointCount, Color color) Draw lines sequence (using gl lines)static void
Draw a line (using gl lines)static void
Draw a 3d mesh with material and transformstatic void
drawMeshInstanced
(Mesh mesh, Material material, MemorySegment transforms, int instances) Draw multiple mesh instances with material and different transformsstatic void
Draw a model (with texture if set)static void
drawModelEx
(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) Draw a model with extended parametersstatic void
drawModelWires
(Model model, Vector3 position, float scale, Color tint) Draw a model wires (with texture if set)static void
drawModelWiresEx
(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) Draw a model wires (with texture if set) with extended parametersstatic void
Draw a pixelstatic void
drawPixelV
(Vector2 position, Color color) Draw a pixel (Vector version)static void
Draw a plane XZstatic void
drawPoint3D
(Vector3 position, Color color) Draw a point in 3D space, actually a small linestatic void
Draw a regular polygon (Vector version)static void
drawPolyLines
(Vector2 center, int sides, float radius, float rotation, Color color) Draw a polygon outline of n sidesstatic void
drawPolyLinesEx
(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) Draw a polygon outline of n sides with extended parametersstatic void
Draw a ray linestatic void
drawRectangle
(int posX, int posY, int width, int height, Color color) Draw a color-filled rectanglestatic void
Draw a gradient-filled rectangle with custom vertex colorsstatic void
drawRectangleGradientH
(int posX, int posY, int width, int height, Color color1, Color color2) Draw a horizontal-gradient-filled rectanglestatic void
drawRectangleGradientV
(int posX, int posY, int width, int height, Color color1, Color color2) Draw a vertical-gradient-filled rectanglestatic void
drawRectangleLines
(int posX, int posY, int width, int height, Color color) Draw rectangle outlinestatic void
drawRectangleLinesEx
(Rectangle rec, float lineThick, Color color) Draw rectangle outline with extended parametersstatic void
drawRectanglePro
(Rectangle rec, Vector2 origin, float rotation, Color color) Draw a color-filled rectangle with pro parametersstatic void
drawRectangleRec
(Rectangle rec, Color color) Draw a color-filled rectanglestatic void
drawRectangleRounded
(Rectangle rec, float roundness, int segments, Color color) Draw rectangle with rounded edgesstatic void
drawRectangleRoundedLines
(Rectangle rec, float roundness, int segments, float lineThick, Color color) Draw rectangle with rounded edges outlinestatic void
drawRectangleV
(Vector2 position, Vector2 size, Color color) Draw a color-filled rectangle (Vector version)static void
drawRing
(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ringstatic void
drawRingLines
(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ring outlinestatic void
drawSphere
(Vector3 centerPos, float radius, Color color) Draw spherestatic void
drawSphereEx
(Vector3 centerPos, float radius, int rings, int slices, Color color) Draw sphere with extended parametersstatic void
drawSphereWires
(Vector3 centerPos, float radius, int rings, int slices, Color color) Draw sphere wiresstatic void
drawSplineBasis
(Vector2 points, int pointCount, float thick, Color color) Draw spline: B-Spline, minimum 4 pointsstatic 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...]static void
drawSplineBezierQuadratic
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]static void
drawSplineCatmullRom
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Catmull-Rom, minimum 4 pointsstatic void
drawSplineLinear
(Vector2 points, int pointCount, float thick, Color color) Draw spline: Linear, minimum 2 pointsstatic void
Draw spline segment: B-Spline, 4 pointsstatic void
drawSplineSegmentBezierCubic
(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) Draw spline segment: Cubic Bezier, 2 points, 2 control pointsstatic void
drawSplineSegmentBezierQuadratic
(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) Draw spline segment: Quadratic Bezier, 2 points, 1 control pointstatic void
drawSplineSegmentCatmullRom
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) Draw spline segment: Catmull-Rom, 4 pointsstatic void
drawSplineSegmentLinear
(Vector2 p1, Vector2 p2, float thick, Color color) Draw spline segment: Linear, 2 pointsstatic void
Draw text (using default font)static void
drawTextCodepoint
(Font font, int codepoint, Vector2 position, float fontSize, Color tint) Draw one character (codepoint)static void
drawTextCodepoints
(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) Draw multiple character (codepoint)static void
drawTextEx
(Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text using font and additional parametersstatic void
drawTextPro
(Font font, String text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) Draw text using Font and pro parameters (rotation)static void
drawTexture
(Texture texture, int posX, int posY, Color tint) Draw a Texture2Dstatic void
drawTextureEx
(Texture texture, Vector2 position, float rotation, float scale, Color tint) Draw a Texture2D with extended parametersstatic void
drawTextureNPatch
(Texture texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) Draws a texture (or part of it) that stretches or shrinks nicelystatic void
drawTexturePro
(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) Draw a part of a texture defined by a rectangle with 'pro' parametersstatic void
drawTextureRec
(Texture texture, Rectangle source, Vector2 position, Color tint) Draw a part of a texture defined by a rectanglestatic void
drawTextureV
(Texture texture, Vector2 position, Color tint) Draw a Texture2D with position defined as Vector2static void
drawTriangle
(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static void
drawTriangle3D
(Vector3 v1, Vector3 v2, Vector3 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static void
drawTriangleFan
(Vector2 points, int pointCount, Color color) Draw a triangle fan defined by points (first vertex is the center)static void
drawTriangleLines
(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw triangle outline (vertex in counter-clockwise order!)static void
drawTriangleStrip
(Vector2 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic void
drawTriangleStrip3D
(Vector3 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic void
Enables cursor (unlock cursor)static void
Enable waiting for events on EndDrawing(), no automatic event pollingstatic ByteBuffer
encodeDataBase64
(ByteBuffer data, int dataSize, IntBuffer outputSize) Encode data to Base64 string, memory must be MemFree()static void
End blending mode (reset to default: alpha blending)static void
End canvas drawing and swap buffers (double buffering)static void
Ends 2D mode with custom camerastatic void
Ends 3D mode and returns to default 2D orthographic modestatic void
End scissor modestatic void
End custom shader drawing (use default shader)static void
Ends drawing to render texturestatic void
End stereo rendering (requires VR simulator)static boolean
exportAutomationEventList
(AutomationEventList list, String fileName) Export automation events list as text filestatic boolean
exportDataAsCode
(ByteBuffer data, int dataSize, String fileName) Export data to code (.h), returns true on successstatic boolean
exportFontAsCode
(Font font, String fileName) Export font as code file, returns true on successstatic boolean
exportImage
(Image image, String fileName) Export image data to file, returns true on successstatic boolean
exportImageAsCode
(Image image, String fileName) Export image as code file defining an array of bytes, returns true on successstatic ByteBuffer
exportImageToMemory
(Image image, String fileType, IntBuffer fileSize) Export image to memory bufferstatic boolean
exportMesh
(Mesh mesh, String fileName) Export mesh data to file, returns true on successstatic boolean
exportWave
(Wave wave, String fileName) Export wave data to file, returns true on successstatic boolean
exportWaveAsCode
(Wave wave, String fileName) Export wave sample data to code (.h), returns true on successstatic Color
Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic Color
Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic boolean
fileExists
(String fileName) Check if file existsstatic Image
genImageCellular
(int width, int height, int tileSize) Generate image: cellular algorithm, bigger tileSize means bigger cellsstatic Image
genImageCellular
(Arena arena, int width, int height, int tileSize) Generate image: cellular algorithm, bigger tileSize means bigger cellsstatic Image
genImageChecked
(int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic Image
genImageChecked
(Arena arena, int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic Image
genImageColor
(int width, int height, Color color) Generate image: plain colorstatic Image
genImageColor
(Arena arena, int width, int height, Color color) Generate image: plain colorstatic Image
genImageFontAtlas
(Arena arena, MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) Generate image font atlas using chars infostatic Image
genImageFontAtlas
(MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) Generate image font atlas using chars infostatic Image
genImageGradientLinear
(int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic Image
genImageGradientLinear
(Arena arena, int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic Image
genImageGradientRadial
(int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic Image
genImageGradientRadial
(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic Image
genImageGradientSquare
(int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic Image
genImageGradientSquare
(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic Image
genImagePerlinNoise
(int width, int height, int offsetX, int offsetY, float scale) Generate image: perlin noisestatic Image
genImagePerlinNoise
(Arena arena, int width, int height, int offsetX, int offsetY, float scale) Generate image: perlin noisestatic Image
genImageText
(int width, int height, String text) Generate image: grayscale image from text datastatic Image
genImageText
(Arena arena, int width, int height, String text) Generate image: grayscale image from text datastatic Image
genImageWhiteNoise
(int width, int height, float factor) Generate image: white noisestatic Image
genImageWhiteNoise
(Arena arena, int width, int height, float factor) Generate image: white noisestatic Mesh
genMeshCone
(float radius, float height, int slices) Generate cone/pyramid meshstatic Mesh
genMeshCone
(Arena arena, float radius, float height, int slices) Generate cone/pyramid meshstatic Mesh
genMeshCube
(float width, float height, float length) Generate cuboid meshstatic Mesh
genMeshCube
(Arena arena, float width, float height, float length) Generate cuboid meshstatic Mesh
genMeshCubicmap
(Image cubicmap, Vector3 cubeSize) Generate cubes-based map mesh from image datastatic Mesh
genMeshCubicmap
(Arena arena, Image cubicmap, Vector3 cubeSize) Generate cubes-based map mesh from image datastatic Mesh
genMeshCylinder
(float radius, float height, int slices) Generate cylinder meshstatic Mesh
genMeshCylinder
(Arena arena, float radius, float height, int slices) Generate cylinder meshstatic Mesh
genMeshHeightmap
(Image heightmap, Vector3 size) Generate heightmap mesh from image datastatic Mesh
genMeshHeightmap
(Arena arena, Image heightmap, Vector3 size) Generate heightmap mesh from image datastatic Mesh
genMeshHemiSphere
(float radius, int rings, int slices) Generate half-sphere mesh (no bottom cap)static Mesh
genMeshHemiSphere
(Arena arena, float radius, int rings, int slices) Generate half-sphere mesh (no bottom cap)static Mesh
genMeshKnot
(float radius, float size, int radSeg, int sides) Generate trefoil knot meshstatic Mesh
genMeshKnot
(Arena arena, float radius, float size, int radSeg, int sides) Generate trefoil knot meshstatic Mesh
genMeshPlane
(float width, float length, int resX, int resZ) Generate plane mesh (with subdivisions)static Mesh
genMeshPlane
(Arena arena, float width, float length, int resX, int resZ) Generate plane mesh (with subdivisions)static Mesh
genMeshPoly
(int sides, float radius) Generate polygonal meshstatic Mesh
genMeshPoly
(Arena arena, int sides, float radius) Generate polygonal meshstatic Mesh
genMeshSphere
(float radius, int rings, int slices) Generate sphere mesh (standard sphere)static Mesh
genMeshSphere
(Arena arena, float radius, int rings, int slices) Generate sphere mesh (standard sphere)static void
genMeshTangents
(Mesh mesh) Compute mesh tangentsstatic Mesh
genMeshTorus
(float radius, float size, int radSeg, int sides) Generate torus meshstatic Mesh
genMeshTorus
(Arena arena, float radius, float size, int radSeg, int sides) Generate torus meshstatic void
genTextureMipmaps
(Texture texture) Generate GPU mipmaps for a texturestatic String
Get the directory of the running application (uses static string)static Matrix
getCameraMatrix
(Camera3D camera) Get camera transform matrix (view matrix)static Matrix
getCameraMatrix
(Arena arena, Camera3D camera) Get camera transform matrix (view matrix)static Matrix
getCameraMatrix2D
(Camera2D camera) Get camera 2d transform matrixstatic Matrix
getCameraMatrix2D
(Arena arena, Camera2D camera) Get camera 2d transform matrixstatic int
Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is emptystatic String
Get clipboard text contentstatic int
getCodepoint
(String text, IntBuffer codepointSize) Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failurestatic int
getCodepointCount
(String text) Get total number of codepoints in a UTF-8 encoded stringstatic int
getCodepointNext
(String text, IntBuffer codepointSize) Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failurestatic int
getCodepointPrevious
(String text, IntBuffer codepointSize) Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failurestatic Rectangle
getCollisionRec
(Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic Rectangle
getCollisionRec
(Arena arena, Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic Color
getColor
(int hexValue) Get Color structure from hexadecimal valuestatic Color
Get Color structure from hexadecimal valuestatic int
Get current connected monitorstatic String
getDirectoryPath
(String filePath) Get full path for a given fileName with path (uses static string)static String
getFileExtension
(String fileName) Get pointer to extension for a filename string (includes dot: '.png')static int
getFileLength
(String fileName) Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)static long
getFileModTime
(String fileName) Get file modification time (last write time)static String
getFileName
(String filePath) Get pointer to filename for a path stringstatic String
getFileNameWithoutExt
(String filePath) Get filename string without extension (uses static string)static Font
Get the default Fontstatic Font
getFontDefault
(Arena arena) Get the default Fontstatic int
getFPS()
Get current FPSstatic float
Get time in seconds for last frame drawn (delta time)static int
getGamepadAxisCount
(int gamepad) Get gamepad axis count for a gamepadstatic float
getGamepadAxisMovement
(int gamepad, int axis) Get axis movement value for a gamepad axisstatic int
Get the last gamepad button pressedstatic String
getGamepadName
(int gamepad) Get gamepad internal name idstatic int
Get latest detected gesturestatic float
Get gesture drag anglestatic Vector2
Get gesture drag vectorstatic Vector2
getGestureDragVector
(Arena arena) Get gesture drag vectorstatic float
Get gesture hold time in millisecondsstatic float
Get gesture pinch anglestatic Vector2
Get gesture pinch deltastatic Vector2
getGesturePinchVector
(Arena arena) Get gesture pinch deltastatic Rectangle
getGlyphAtlasRec
(Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic Rectangle
getGlyphAtlasRec
(Arena arena, Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic int
getGlyphIndex
(Font font, int codepoint) Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not foundstatic GlyphInfo
getGlyphInfo
(Font font, int codepoint) Get glyph font info data for a codepoint (unicode character), fallback to '?' if not foundstatic GlyphInfo
getGlyphInfo
(Arena arena, Font font, int codepoint) Get glyph font info data for a codepoint (unicode character), fallback to '?' if not foundstatic Rectangle
getImageAlphaBorder
(Image image, float threshold) Get image alpha border rectanglestatic Rectangle
getImageAlphaBorder
(Arena arena, Image image, float threshold) Get image alpha border rectanglestatic Color
getImageColor
(Image image, int x, int y) Get image pixel color at (x, y) positionstatic Color
getImageColor
(Arena arena, Image image, int x, int y) Get image pixel color at (x, y) positionstatic int
Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is emptystatic float
Get master volume (listener)static BoundingBox
getMeshBoundingBox
(Mesh mesh) Compute mesh bounding box limitsstatic BoundingBox
getMeshBoundingBox
(Arena arena, Mesh mesh) Compute mesh bounding box limitsstatic BoundingBox
getModelBoundingBox
(Model model) Compute model bounding box limits (considers all meshes)static BoundingBox
getModelBoundingBox
(Arena arena, Model model) Compute model bounding box limits (considers all meshes)static int
Get number of connected monitorsstatic int
getMonitorHeight
(int monitor) Get specified monitor height (current video mode used by monitor)static String
getMonitorName
(int monitor) Get the human-readable, UTF-8 encoded name of the specified monitorstatic int
getMonitorPhysicalHeight
(int monitor) Get specified monitor physical height in millimetresstatic int
getMonitorPhysicalWidth
(int monitor) Get specified monitor physical width in millimetresstatic Vector2
getMonitorPosition
(int monitor) Get specified monitor positionstatic Vector2
getMonitorPosition
(Arena arena, int monitor) Get specified monitor positionstatic int
getMonitorRefreshRate
(int monitor) Get specified monitor refresh ratestatic int
getMonitorWidth
(int monitor) Get specified monitor width (current video mode used by monitor)static Vector2
Get mouse delta between framesstatic Vector2
getMouseDelta
(Arena arena) Get mouse delta between framesstatic Vector2
Get mouse position XYstatic Vector2
getMousePosition
(Arena arena) Get mouse position XYstatic Ray
getMouseRay
(Vector2 mousePosition, Camera3D camera) Get a ray trace from mouse positionstatic Ray
getMouseRay
(Arena arena, Vector2 mousePosition, Camera3D camera) Get a ray trace from mouse positionstatic float
Get mouse wheel movement for X or Y, whichever is largerstatic Vector2
Get mouse wheel movement for both X and Ystatic Vector2
getMouseWheelMoveV
(Arena arena) Get mouse wheel movement for both X and Ystatic int
Get mouse position Xstatic int
Get mouse position Ystatic float
getMusicTimeLength
(Music music) Get music time length (in seconds)static float
getMusicTimePlayed
(Music music) Get current music time played (in seconds)static Color
getPixelColor
(Arena arena, MemorySegment srcPtr, int format) Get Color from a source pixel pointer of certain formatstatic Color
getPixelColor
(MemorySegment srcPtr, int format) Get Color from a source pixel pointer of certain formatstatic int
getPixelDataSize
(int width, int height, int format) Get pixel data size in bytes for certain formatstatic String
getPrevDirectoryPath
(String dirPath) Get previous directory path for a given path (uses static string)static int
getRandomValue
(int min, int max) Get a random value between min and max (both included)static RayCollision
getRayCollisionBox
(Ray ray, BoundingBox box) Get collision info between ray and boxstatic RayCollision
getRayCollisionBox
(Arena arena, Ray ray, BoundingBox box) Get collision info between ray and boxstatic RayCollision
getRayCollisionMesh
(Ray ray, Mesh mesh, Matrix transform) Get collision info between ray and meshstatic RayCollision
getRayCollisionMesh
(Arena arena, Ray ray, Mesh mesh, Matrix transform) Get collision info between ray and meshstatic RayCollision
Get collision info between ray and quadstatic RayCollision
Get collision info between ray and quadstatic RayCollision
getRayCollisionSphere
(Ray ray, Vector3 center, float radius) Get collision info between ray and spherestatic RayCollision
getRayCollisionSphere
(Arena arena, Ray ray, Vector3 center, float radius) Get collision info between ray and spherestatic RayCollision
getRayCollisionTriangle
(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) Get collision info between ray and trianglestatic RayCollision
Get collision info between ray and trianglestatic int
Get current render height (it considers HiDPI)static int
Get current render width (it considers HiDPI)static int
Get current screen heightstatic Vector2
getScreenToWorld2D
(Vector2 position, Camera2D camera) Get the world space position for a 2d camera screen space positionstatic Vector2
getScreenToWorld2D
(Arena arena, Vector2 position, Camera2D camera) Get the world space position for a 2d camera screen space positionstatic int
Get current screen widthstatic int
getShaderLocation
(Shader shader, String uniformName) Get shader uniform locationstatic int
getShaderLocationAttrib
(Shader shader, String attribName) Get shader attribute locationstatic Vector2
getSplinePointBasis
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: B-Splinestatic Vector2
Get (evaluate) spline point: B-Splinestatic Vector2
getSplinePointBezierCubic
(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) Get (evaluate) spline point: Cubic Bezierstatic Vector2
Get (evaluate) spline point: Cubic Bezierstatic Vector2
getSplinePointBezierQuad
(Vector2 p1, Vector2 c2, Vector2 p3, float t) Get (evaluate) spline point: Quadratic Bezierstatic Vector2
getSplinePointBezierQuad
(Arena arena, Vector2 p1, Vector2 c2, Vector2 p3, float t) Get (evaluate) spline point: Quadratic Bezierstatic Vector2
getSplinePointCatmullRom
(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: Catmull-Romstatic Vector2
Get (evaluate) spline point: Catmull-Romstatic Vector2
getSplinePointLinear
(Vector2 startPos, Vector2 endPos, float t) Get (evaluate) spline point: Linearstatic Vector2
getSplinePointLinear
(Arena arena, Vector2 startPos, Vector2 endPos, float t) Get (evaluate) spline point: Linearstatic double
getTime()
Get elapsed time in seconds since InitWindow()static int
Get number of touch pointsstatic int
getTouchPointId
(int index) Get touch point identifier for given indexstatic Vector2
getTouchPosition
(int index) Get touch position XY for a touch point index (relative to screen size)static Vector2
getTouchPosition
(Arena arena, int index) Get touch position XY for a touch point index (relative to screen size)static int
Get touch position X for touch point 0 (relative to screen size)static int
Get touch position Y for touch point 0 (relative to screen size)static MemorySegment
Get native window handlestatic Vector2
Get window position XY on monitorstatic Vector2
getWindowPosition
(Arena arena) Get window position XY on monitorstatic Vector2
Get window scale DPI factorstatic Vector2
getWindowScaleDPI
(Arena arena) Get window scale DPI factorstatic String
Get current working directory (uses static string)static Vector2
getWorldToScreen
(Vector3 position, Camera3D camera) Get the screen space position for a 3d world space positionstatic Vector2
getWorldToScreen
(Arena arena, Vector3 position, Camera3D camera) Get the screen space position for a 3d world space positionstatic Vector2
getWorldToScreen2D
(Vector2 position, Camera2D camera) Get the screen space position for a 2d camera world space positionstatic Vector2
getWorldToScreen2D
(Arena arena, Vector2 position, Camera2D camera) Get the screen space position for a 2d camera world space positionstatic Vector2
getWorldToScreenEx
(Vector3 position, Camera3D camera, int width, int height) Get size position for a 3d world space positionstatic Vector2
getWorldToScreenEx
(Arena arena, Vector3 position, Camera3D camera, int width, int height) Get size position for a 3d world space positionstatic void
Hides cursorstatic void
imageAlphaClear
(Image image, Color color, float threshold) Clear alpha channel to desired colorstatic void
imageAlphaCrop
(Image image, float threshold) Crop image depending on alpha valuestatic void
imageAlphaMask
(Image image, Image alphaMask) Apply alpha mask to imagestatic void
imageAlphaPremultiply
(Image image) Premultiply alpha channelstatic void
imageBlurGaussian
(Image image, int blurSize) Apply Gaussian blur using a box blur approximationstatic void
imageClearBackground
(Image dst, Color color) Clear image background with given colorstatic void
imageColorBrightness
(Image image, int brightness) Modify image color: brightness (-255 to 255)static void
imageColorContrast
(Image image, float contrast) Modify image color: contrast (-100 to 100)static void
imageColorGrayscale
(Image image) Modify image color: grayscalestatic void
imageColorInvert
(Image image) Modify image color: invertstatic void
imageColorReplace
(Image image, Color color, Color replace) Modify image color: replace colorstatic void
imageColorTint
(Image image, Color color) Modify image color: tintstatic Image
Create an image duplicate (useful for transformations)static Image
Create an image duplicate (useful for transformations)static void
Crop an image to a defined rectanglestatic void
imageDither
(Image image, int rBpp, int gBpp, int bBpp, int aBpp) Dither image data to 16bpp or lower (Floyd-Steinberg dithering)static void
Draw a source image within a destination image (tint applied to source)static void
imageDrawCircle
(Image dst, int centerX, int centerY, int radius, Color color) Draw a filled circle within an imagestatic void
imageDrawCircleLines
(Image dst, int centerX, int centerY, int radius, Color color) Draw circle outline within an imagestatic void
imageDrawCircleLinesV
(Image dst, Vector2 center, int radius, Color color) Draw circle outline within an image (Vector version)static void
imageDrawCircleV
(Image dst, Vector2 center, int radius, Color color) Draw a filled circle within an image (Vector version)static void
imageDrawLine
(Image dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) Draw line within an imagestatic void
imageDrawLineV
(Image dst, Vector2 start, Vector2 end, Color color) Draw line within an image (Vector version)static void
imageDrawPixel
(Image dst, int posX, int posY, Color color) Draw pixel within an imagestatic void
imageDrawPixelV
(Image dst, Vector2 position, Color color) Draw pixel within an image (Vector version)static void
imageDrawRectangle
(Image dst, int posX, int posY, int width, int height, Color color) Draw rectangle within an imagestatic void
imageDrawRectangleLines
(Image dst, Rectangle rec, int thick, Color color) Draw rectangle lines within an imagestatic void
imageDrawRectangleRec
(Image dst, Rectangle rec, Color color) Draw rectangle within an imagestatic void
imageDrawRectangleV
(Image dst, Vector2 position, Vector2 size, Color color) Draw rectangle within an image (Vector version)static void
imageDrawText
(Image dst, String text, int posX, int posY, int fontSize, Color color) Draw text (using default font) within an image (destination)static void
imageDrawTextEx
(Image dst, Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text (custom sprite font) within an image (destination)static void
imageFlipHorizontal
(Image image) Flip image horizontallystatic void
imageFlipVertical
(Image image) Flip image verticallystatic void
imageFormat
(Image image, int newFormat) Convert image data to desired formatstatic Image
imageFromImage
(Image image, Rectangle rec) Create an image from another image piecestatic Image
imageFromImage
(Arena arena, Image image, Rectangle rec) Create an image from another image piecestatic void
imageMipmaps
(Image image) Compute all mipmap levels for a provided imagestatic void
imageResize
(Image image, int newWidth, int newHeight) Resize image (Bicubic scaling algorithm)static void
imageResizeCanvas
(Image image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) Resize canvas and fill with colorstatic void
imageResizeNN
(Image image, int newWidth, int newHeight) Resize image (Nearest-Neighbor scaling algorithm)static void
imageRotate
(Image image, int degrees) Rotate image by input angle in degrees (-359 to 359)static void
imageRotateCCW
(Image image) Rotate image counter-clockwise 90degstatic void
imageRotateCW
(Image image) Rotate image clockwise 90degstatic Image
Create an image from text (default font)static Image
Create an image from text (default font)static Image
imageTextEx
(Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static Image
imageTextEx
(Arena arena, Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static void
imageToPOT
(Image image, Color fill) Convert image to POT (power-of-two)static void
Initialize audio device and contextstatic void
initWindow
(int width, int height, String title) Initialize window and OpenGL contextstatic boolean
Check if audio device has been initialized successfullystatic boolean
isAudioStreamPlaying
(AudioStream stream) Check if audio stream is playingstatic boolean
isAudioStreamProcessed
(AudioStream stream) Check if any audio stream buffers requires refillstatic boolean
isAudioStreamReady
(AudioStream stream) Checks if an audio stream is readystatic boolean
Check if cursor is not visiblestatic boolean
Check if cursor is on the screenstatic boolean
Check if a file has been dropped into windowstatic boolean
isFileExtension
(String fileName, String ext) Check file extension (including point: .png, .wav)static boolean
isFontReady
(Font font) Check if a font is readystatic boolean
isGamepadAvailable
(int gamepad) Check if a gamepad is availablestatic boolean
isGamepadButtonDown
(int gamepad, int button) Check if a gamepad button is being pressedstatic boolean
isGamepadButtonPressed
(int gamepad, int button) Check if a gamepad button has been pressed oncestatic boolean
isGamepadButtonReleased
(int gamepad, int button) Check if a gamepad button has been released oncestatic boolean
isGamepadButtonUp
(int gamepad, int button) Check if a gamepad button is NOT being pressedstatic boolean
isGestureDetected
(int gesture) Check if a gesture have been detectedstatic boolean
isImageReady
(Image image) Check if an image is readystatic boolean
isKeyDown
(int key) Check if a key is being pressedstatic boolean
isKeyPressed
(int key) Check if a key has been pressed oncestatic boolean
isKeyPressedRepeat
(int key) Check if a key has been pressed again (Only PLATFORM_DESKTOP)static boolean
isKeyReleased
(int key) Check if a key has been released oncestatic boolean
isKeyUp
(int key) Check if a key is NOT being pressedstatic boolean
isMaterialReady
(Material material) Check if a material is readystatic boolean
isModelAnimationValid
(Model model, ModelAnimation anim) Check model animation skeleton matchstatic boolean
isModelReady
(Model model) Check if a model is readystatic boolean
isMouseButtonDown
(int button) Check if a mouse button is being pressedstatic boolean
isMouseButtonPressed
(int button) Check if a mouse button has been pressed oncestatic boolean
isMouseButtonReleased
(int button) Check if a mouse button has been released oncestatic boolean
isMouseButtonUp
(int button) Check if a mouse button is NOT being pressedstatic boolean
isMusicReady
(Music music) Checks if a music stream is readystatic boolean
isMusicStreamPlaying
(Music music) Check if music is playingstatic boolean
isPathFile
(String path) Check if a given path is a file or a directorystatic boolean
isRenderTextureReady
(RenderTexture target) Check if a render texture is readystatic boolean
isShaderReady
(Shader shader) Check if a shader is readystatic boolean
isSoundPlaying
(Sound sound) Check if a sound is currently playingstatic boolean
isSoundReady
(Sound sound) Checks if a sound is readystatic boolean
isTextureReady
(Texture texture) Check if a texture is readystatic boolean
isWaveReady
(Wave wave) Checks if wave data is readystatic boolean
Check if window is currently focused (only PLATFORM_DESKTOP)static boolean
Check if window is currently fullscreenstatic boolean
Check if window is currently hidden (only PLATFORM_DESKTOP)static boolean
Check if window is currently maximized (only PLATFORM_DESKTOP)static boolean
Check if window is currently minimized (only PLATFORM_DESKTOP)static boolean
Check if window has been initialized successfullystatic boolean
Check if window has been resized last framestatic boolean
isWindowState
(int flag) Check if one specific window flag is enabledstatic AudioStream
loadAudioStream
(int sampleRate, int sampleSize, int channels) Load audio stream (to stream raw audio pcm data)static AudioStream
loadAudioStream
(Arena arena, int sampleRate, int sampleSize, int channels) Load audio stream (to stream raw audio pcm data)static AutomationEventList
loadAutomationEventList
(Arena arena, String fileName) Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTSstatic AutomationEventList
loadAutomationEventList
(String fileName) Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTSstatic IntBuffer
loadCodepoints
(String text, IntBuffer count) Load all codepoints from a UTF-8 text string, codepoints count returned by parameterstatic FilePathList
loadDirectoryFiles
(Arena arena, String dirPath) Load directory filepathsstatic FilePathList
loadDirectoryFiles
(String dirPath) Load directory filepathsstatic FilePathList
loadDirectoryFilesEx
(Arena arena, String basePath, String filter, boolean scanSubdirs) Load directory filepaths with extension filtering and recursive directory scanstatic FilePathList
loadDirectoryFilesEx
(String basePath, String filter, boolean scanSubdirs) Load directory filepaths with extension filtering and recursive directory scanstatic FilePathList
Load dropped filepathsstatic FilePathList
loadDroppedFiles
(Arena arena) Load dropped filepathsstatic ByteBuffer
loadFileData
(String fileName, IntBuffer dataSize) Load file data as byte array (read)static ByteBuffer
loadFileText
(String fileName) Load text data from file (read), returns a '\0' terminated stringstatic Font
Load font from file into GPU memory (VRAM)static Font
Load font from file into GPU memory (VRAM)static GlyphInfo
loadFontData
(ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount, int type) Load font data for further usestatic Font
loadFontEx
(Arena arena, String fileName, int fontSize, IntBuffer codepoints, int codepointCount) Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFontstatic Font
loadFontEx
(String fileName, int fontSize, IntBuffer codepoints, int codepointCount) Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFontstatic Font
loadFontFromImage
(Image image, Color key, int firstChar) Load font from Image (XNA style)static Font
loadFontFromImage
(Arena arena, Image image, Color key, int firstChar) Load font from Image (XNA style)static Font
loadFontFromMemory
(Arena arena, String fileType, ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount) Load font from memory buffer, fileType refers to extension: i.e.static Font
loadFontFromMemory
(String fileType, ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount) Load font from memory buffer, fileType refers to extension: i.e.static Image
Load image from file into CPU memory (RAM)static Image
Load image from file into CPU memory (RAM)static Image
loadImageAnim
(Arena arena, String fileName, IntBuffer frames) Load image sequence from file (frames appended to image.data)static Image
loadImageAnim
(String fileName, IntBuffer frames) Load image sequence from file (frames appended to image.data)static Color
loadImageColors
(Image image) Load color data from image as a Color array (RGBA - 32bit)static Image
loadImageFromMemory
(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load image from memory buffer, fileType refers to extension: i.e.static Image
loadImageFromMemory
(String fileType, ByteBuffer fileData, int dataSize) Load image from memory buffer, fileType refers to extension: i.e.static Image
Load image from screen buffer and (screenshot)static Image
loadImageFromScreen
(Arena arena) Load image from screen buffer and (screenshot)static Image
loadImageFromTexture
(Texture texture) Load image from GPU texture datastatic Image
loadImageFromTexture
(Arena arena, Texture texture) Load image from GPU texture datastatic Color
loadImagePalette
(Image image, int maxPaletteSize, IntBuffer colorCount) Load colors palette from image as a Color array (RGBA - 32bit)static Image
loadImageRaw
(Arena arena, String fileName, int width, int height, int format, int headerSize) Load image from RAW file datastatic Image
loadImageRaw
(String fileName, int width, int height, int format, int headerSize) Load image from RAW file datastatic Image
loadImageSvg
(Arena arena, String fileNameOrString, int width, int height) Load image from SVG file data or string with specified sizestatic Image
loadImageSvg
(String fileNameOrString, int width, int height) Load image from SVG file data or string with specified sizestatic Material
Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)static Material
loadMaterialDefault
(Arena arena) Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)static Material
loadMaterials
(String fileName, IntBuffer materialCount) Load materials from model filestatic Model
Load model from files (meshes and materials)static Model
Load model from files (meshes and materials)static ModelAnimation
loadModelAnimations
(String fileName, IntBuffer animCount) Load model animations from filestatic Model
loadModelFromMesh
(Mesh mesh) Load model from generated mesh (default material)static Model
loadModelFromMesh
(Arena arena, Mesh mesh) Load model from generated mesh (default material)static Music
loadMusicStream
(Arena arena, String fileName) Load music stream from filestatic Music
loadMusicStream
(String fileName) Load music stream from filestatic Music
loadMusicStreamFromMemory
(Arena arena, String fileType, ByteBuffer data, int dataSize) Load music stream from datastatic Music
loadMusicStreamFromMemory
(String fileType, ByteBuffer data, int dataSize) Load music stream from datastatic IntBuffer
loadRandomSequence
(int count, int min, int max) Load random values sequence, no values repeatedstatic RenderTexture
loadRenderTexture
(int width, int height) Load texture for rendering (framebuffer)static RenderTexture
loadRenderTexture
(Arena arena, int width, int height) Load texture for rendering (framebuffer)static Shader
loadShader
(Arena arena, String vsFileName, String fsFileName) Load shader from files and bind default locationsstatic Shader
loadShader
(String vsFileName, String fsFileName) Load shader from files and bind default locationsstatic Shader
loadShaderFromMemory
(Arena arena, String vsCode, String fsCode) Load shader from code strings and bind default locationsstatic Shader
loadShaderFromMemory
(String vsCode, String fsCode) Load shader from code strings and bind default locationsstatic Sound
Load sound from filestatic Sound
Load sound from filestatic Sound
loadSoundAlias
(Sound source) Create a new sound that shares the same sample data as the source sound, does not own the sound datastatic Sound
loadSoundAlias
(Arena arena, Sound source) Create a new sound that shares the same sample data as the source sound, does not own the sound datastatic Sound
loadSoundFromWave
(Wave wave) Load sound from wave datastatic Sound
loadSoundFromWave
(Arena arena, Wave wave) Load sound from wave datastatic Texture
loadTexture
(Arena arena, String fileName) Load texture from file into GPU memory (VRAM)static Texture
loadTexture
(String fileName) Load texture from file into GPU memory (VRAM)static Texture
loadTextureCubemap
(Image image, int layout) Load cubemap from image, multiple image cubemap layouts supportedstatic Texture
loadTextureCubemap
(Arena arena, Image image, int layout) Load cubemap from image, multiple image cubemap layouts supportedstatic Texture
loadTextureFromImage
(Image image) Load texture from image datastatic Texture
loadTextureFromImage
(Arena arena, Image image) Load texture from image datastatic ByteBuffer
loadUTF8
(MemorySegment codepoints, int length) Load UTF-8 text encoded from codepoints arraystatic VrStereoConfig
loadVrStereoConfig
(VrDeviceInfo device) Load VR stereo config for VR simulator device parametersstatic VrStereoConfig
loadVrStereoConfig
(Arena arena, VrDeviceInfo device) Load VR stereo config for VR simulator device parametersstatic Wave
Load wave data from filestatic Wave
Load wave data from filestatic Wave
loadWaveFromMemory
(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e.static Wave
loadWaveFromMemory
(String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e.static FloatBuffer
loadWaveSamples
(Wave wave) Load samples data from wave as a 32bit float data arraystatic void
Set window state: maximized, if resizable (only PLATFORM_DESKTOP)static int
measureText
(String text, int fontSize) Measure string width for default fontstatic Vector2
measureTextEx
(Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic Vector2
measureTextEx
(Arena arena, Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic MemorySegment
memAlloc
(int size) Internal memory allocatorstatic void
memFree
(MemorySegment ptr) Internal memory freestatic MemorySegment
memRealloc
(MemorySegment ptr, int size) Internal memory reallocatorstatic void
Set window state: minimized, if resizable (only PLATFORM_DESKTOP)static void
Open URL with default system browser (if available)static void
pauseAudioStream
(AudioStream stream) Pause audio streamstatic void
pauseMusicStream
(Music music) Pause music playingstatic void
pauseSound
(Sound sound) Pause a soundstatic void
playAudioStream
(AudioStream stream) Play audio streamstatic void
Play a recorded automation eventstatic void
playMusicStream
(Music music) Start music playingstatic void
Play a soundstatic void
Register all input eventsstatic void
Set window state: not minimized/maximized (only PLATFORM_DESKTOP)static void
resumeAudioStream
(AudioStream stream) Resume audio streamstatic void
resumeMusicStream
(Music music) Resume playing paused musicstatic void
resumeSound
(Sound sound) Resume a paused soundstatic boolean
saveFileData
(String fileName, MemorySegment data, int dataSize) Save data to file from byte array (write), returns true on successstatic boolean
saveFileText
(String fileName, ByteBuffer text) Save text data to file (write), string must be '\0' terminated, returns true on successstatic void
seekMusicStream
(Music music, float position) Seek music to a position (in seconds)static void
setAudioStreamBufferSizeDefault
(int size) Default size for new audio streamsstatic void
setAudioStreamCallback
(AudioStream stream, MemorySegment callback) Audio thread callback to request new datastatic void
setAudioStreamPan
(AudioStream stream, float pan) Set pan for audio stream (0.5 is centered)static void
setAudioStreamPitch
(AudioStream stream, float pitch) Set pitch for audio stream (1.0 is base level)static void
setAudioStreamVolume
(AudioStream stream, float volume) Set volume for audio stream (1.0 is max level)static void
setAutomationEventBaseFrame
(int frame) Set automation event internal base frame to start recordingstatic void
Set automation event list to record tostatic void
setClipboardText
(String text) Set clipboard text contentstatic void
setConfigFlags
(int flags) Setup init configuration flags (view FLAGS)static void
setExitKey
(int key) Set a custom key to exit program (default is ESC)static int
setGamepadMappings
(String mappings) Set internal gamepad mappings (SDL_GameControllerDB)static void
setGesturesEnabled
(int flags) Enable a set of gestures using flagsstatic void
setLoadFileDataCallback
(MemorySegment callback) Set custom file binary data loaderstatic void
setLoadFileTextCallback
(MemorySegment callback) Set custom file text data loaderstatic void
setMasterVolume
(float volume) Set master volume (listener)static void
setMaterialTexture
(Material material, int mapType, Texture texture) Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)static void
setModelMeshMaterial
(Model model, int meshId, int materialId) Set material for a meshstatic void
setMouseCursor
(int cursor) Set mouse cursorstatic void
setMouseOffset
(int offsetX, int offsetY) Set mouse offsetstatic void
setMousePosition
(int x, int y) Set mouse position XYstatic void
setMouseScale
(float scaleX, float scaleY) Set mouse scalingstatic void
setMusicPan
(Music music, float pan) Set pan for a music (0.5 is center)static void
setMusicPitch
(Music music, float pitch) Set pitch for a music (1.0 is base level)static void
setMusicVolume
(Music music, float volume) Set volume for music (1.0 is max level)static void
setPixelColor
(MemorySegment dstPtr, Color color, int format) Set color formatted into destination pixel pointerstatic void
setRandomSeed
(int seed) Set the seed for the random number generatorstatic void
setSaveFileDataCallback
(MemorySegment callback) Set custom file binary data saverstatic void
setSaveFileTextCallback
(MemorySegment callback) Set custom file text data saverstatic void
setShaderValue
(Shader shader, int locIndex, MemorySegment value, int uniformType) Set shader uniform valuestatic void
setShaderValueMatrix
(Shader shader, int locIndex, Matrix mat) Set shader uniform value (matrix 4x4)static void
setShaderValueTexture
(Shader shader, int locIndex, Texture texture) Set shader uniform value for texture (sampler2d)static void
setShaderValueV
(Shader shader, int locIndex, MemorySegment value, int uniformType, int count) Set shader uniform value vectorstatic void
setShapesTexture
(Texture texture, Rectangle source) Set texture and rectangle to be used on shapes drawingstatic void
setSoundPan
(Sound sound, float pan) Set pan for a sound (0.5 is center)static void
setSoundPitch
(Sound sound, float pitch) Set pitch for a sound (1.0 is base level)static void
setSoundVolume
(Sound sound, float volume) Set volume for a sound (1.0 is max level)static void
setTargetFPS
(int fps) Set target FPS (maximum)static void
setTextLineSpacing
(int spacing) Set vertical line spacing when drawing with line-breaksstatic void
setTextureFilter
(Texture texture, int filter) Set texture scaling filter modestatic void
setTextureWrap
(Texture texture, int wrap) Set texture wrapping modestatic void
setTraceLogCallback
(MemorySegment callback) Set custom trace logstatic void
setTraceLogLevel
(int logLevel) Set the current threshold (minimum) log levelstatic void
Set window focused (only PLATFORM_DESKTOP)static void
setWindowIcon
(Image image) Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)static void
setWindowIcons
(Image images, int count) Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)static void
setWindowMaxSize
(int width, int height) Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)static void
setWindowMinSize
(int width, int height) Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)static void
setWindowMonitor
(int monitor) Set monitor for the current windowstatic void
setWindowOpacity
(float opacity) Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)static void
setWindowPosition
(int x, int y) Set window position on screen (only PLATFORM_DESKTOP)static void
setWindowSize
(int width, int height) Set window dimensionsstatic void
setWindowState
(int flags) Set window configuration state using flags (only PLATFORM_DESKTOP)static void
setWindowTitle
(String title) Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)static void
Shows cursorstatic void
Start recording automation events (AutomationEventList must be set)static void
stopAudioStream
(AudioStream stream) Stop audio streamstatic void
Stop recording automation eventsstatic void
stopMusicStream
(Music music) Stop music playingstatic void
Stop playing a soundstatic void
Swap back buffer with front buffer (screen drawing)static void
takeScreenshot
(String fileName) Takes a screenshot of current screen (filename extension defines format)static void
textAppend
(ByteBuffer text, String append, IntBuffer position) Append text at specific position and move cursor!static int
textCopy
(ByteBuffer dst, String src) Copy one string to another, returns bytes copiedstatic int
textFindIndex
(String text, String find) Find first text occurrence within a stringstatic ByteBuffer
textInsert
(String text, String insert, int position) Insert text in a position (WARNING: memory must be freed!)static boolean
textIsEqual
(String text1, String text2) Check if two text string are equalstatic String
textJoin
(MemorySegment textList, int count, String delimiter) Join text strings with delimiterstatic int
textLength
(String text) Get text length, checks for '\0' endingstatic ByteBuffer
textReplace
(ByteBuffer text, String replace, String by) Replace text string (WARNING: memory must be freed!)static MemorySegment
Split text into multiple stringsstatic String
textSubtext
(String text, int position, int length) Get a piece of a text stringstatic int
textToInteger
(String text) Get integer value from text (negative values not supported)static String
textToLower
(String text) Get lower case version of provided stringstatic String
textToPascal
(String text) Get Pascal case notation version of provided stringstatic String
textToUpper
(String text) Get upper case version of provided stringstatic void
Toggle window state: borderless windowed (only PLATFORM_DESKTOP)static void
Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)static void
unloadAudioStream
(AudioStream stream) Unload audio stream and free memorystatic void
Unload automation events list from filestatic void
unloadCodepoints
(IntBuffer codepoints) Unload codepoints data from memorystatic void
unloadDirectoryFiles
(FilePathList files) Unload filepathsstatic void
unloadDroppedFiles
(FilePathList files) Unload dropped filepathsstatic void
unloadFileData
(ByteBuffer data) Unload file data allocated by LoadFileData()static void
unloadFileText
(ByteBuffer text) Unload file text data allocated by LoadFileText()static void
unloadFont
(Font font) Unload font from GPU memory (VRAM)static void
unloadFontData
(GlyphInfo glyphs, int glyphCount) Unload font chars info data (RAM)static void
unloadImage
(Image image) Unload image from CPU memory (RAM)static void
unloadImageColors
(Color colors) Unload color data loaded with LoadImageColors()static void
unloadImagePalette
(Color colors) Unload colors palette loaded with LoadImagePalette()static void
unloadMaterial
(Material material) Unload material from GPU memory (VRAM)static void
unloadMesh
(Mesh mesh) Unload mesh data from CPU and GPUstatic void
unloadModel
(Model model) Unload model (including meshes) from memory (RAM and/or VRAM)static void
Unload animation datastatic void
unloadModelAnimations
(ModelAnimation animations, int animCount) Unload animation array datastatic void
unloadMusicStream
(Music music) Unload music streamstatic void
unloadRandomSequence
(IntBuffer sequence) Unload random values sequencestatic void
unloadRenderTexture
(RenderTexture target) Unload render texture from GPU memory (VRAM)static void
unloadShader
(Shader shader) Unload shader from GPU memory (VRAM)static void
unloadSound
(Sound sound) Unload soundstatic void
unloadSoundAlias
(Sound alias) Unload a sound alias (does not deallocate sample data)static void
unloadTexture
(Texture texture) Unload texture from GPU memory (VRAM)static void
unloadUTF8
(ByteBuffer text) Unload UTF-8 text encoded from codepoints arraystatic void
unloadVrStereoConfig
(VrStereoConfig config) Unload VR stereo configstatic void
unloadWave
(Wave wave) Unload wave datastatic void
unloadWaveSamples
(FloatBuffer samples) Unload samples data loaded with LoadWaveSamples()static void
updateAudioStream
(AudioStream stream, MemorySegment data, int frameCount) Update audio stream buffers with datastatic void
updateCamera
(Camera3D camera, int mode) Update camera position for selected modestatic void
updateCameraPro
(Camera3D camera, Vector3 movement, Vector3 rotation, float zoom) Update camera movement/rotationstatic void
updateMeshBuffer
(Mesh mesh, int index, MemorySegment data, int dataSize, int offset) Update mesh vertex data in GPU for a specific buffer indexstatic void
updateModelAnimation
(Model model, ModelAnimation anim, int frame) Update model animation posestatic void
updateMusicStream
(Music music) Updates buffers for music streamingstatic void
updateSound
(Sound sound, MemorySegment data, int sampleCount) Update sound buffer with new datastatic void
updateTexture
(Texture texture, MemorySegment pixels) Update GPU texture with new datastatic void
updateTextureRec
(Texture texture, Rectangle rec, MemorySegment pixels) Update GPU texture rectangle with new datastatic void
uploadMesh
(Mesh mesh, boolean dynamic) Upload mesh vertex data in GPU and provide VAO/VBO idsstatic void
waitTime
(double seconds) Wait for some time (halt program execution)static Wave
Copy a wave to a new wavestatic Wave
Copy a wave to a new wavestatic void
Crop a wave to defined samples rangestatic void
waveFormat
(Wave wave, int sampleRate, int sampleSize, int channels) Convert wave data to desired formatstatic boolean
Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)
-
Field Details
-
LIGHTGRAY
-
GRAY
-
DARKGRAY
-
YELLOW
-
GOLD
-
ORANGE
-
PINK
-
RED
-
MAROON
-
GREEN
-
LIME
-
DARKGREEN
-
SKYBLUE
-
BLUE
-
DARKBLUE
-
PURPLE
-
VIOLET
-
DARKPURPLE
-
BEIGE
-
BROWN
-
DARKBROWN
-
WHITE
-
BLACK
-
BLANK
-
MAGENTA
-
RAYWHITE
-
-
Constructor Details
-
Raylib
public Raylib()
-
-
Method Details
-
createIntBuffer
Any IntBuffers you create *MUST* be direct allocation and native order. Use this method to ensure that.- Parameters:
size
-- Returns:
-
createFloatBuffer
Any FloatBuffers you create *MUST* be direct allocation and native order. Use this method to ensure that.- Parameters:
size
-- Returns:
-
createByteBuffer
Any ByteBuffers you create *MUST* be direct allocation and native order. Use this method to ensure that.- Parameters:
size
-- Returns:
-
initWindow
Initialize window and OpenGL context -
closeWindow
public static void closeWindow()Close window and unload OpenGL context -
windowShouldClose
public static boolean windowShouldClose()Check if application should close (KEY_ESCAPE pressed or windows close icon clicked) -
isWindowReady
public static boolean isWindowReady()Check if window has been initialized successfully -
isWindowFullscreen
public static boolean isWindowFullscreen()Check if window is currently fullscreen -
isWindowHidden
public static boolean isWindowHidden()Check if window is currently hidden (only PLATFORM_DESKTOP) -
isWindowMinimized
public static boolean isWindowMinimized()Check if window is currently minimized (only PLATFORM_DESKTOP) -
isWindowMaximized
public static boolean isWindowMaximized()Check if window is currently maximized (only PLATFORM_DESKTOP) -
isWindowFocused
public static boolean isWindowFocused()Check if window is currently focused (only PLATFORM_DESKTOP) -
isWindowResized
public static boolean isWindowResized()Check if window has been resized last frame -
isWindowState
public static boolean isWindowState(int flag) Check if one specific window flag is enabled -
setWindowState
public static void setWindowState(int flags) Set window configuration state using flags (only PLATFORM_DESKTOP) -
clearWindowState
public static void clearWindowState(int flags) Clear window configuration state flags -
toggleFullscreen
public static void toggleFullscreen()Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP) -
toggleBorderlessWindowed
public static void toggleBorderlessWindowed()Toggle window state: borderless windowed (only PLATFORM_DESKTOP) -
maximizeWindow
public static void maximizeWindow()Set window state: maximized, if resizable (only PLATFORM_DESKTOP) -
minimizeWindow
public static void minimizeWindow()Set window state: minimized, if resizable (only PLATFORM_DESKTOP) -
restoreWindow
public static void restoreWindow()Set window state: not minimized/maximized (only PLATFORM_DESKTOP) -
setWindowIcon
Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP) -
setWindowIcons
Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP) -
setWindowTitle
Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB) -
setWindowPosition
public static void setWindowPosition(int x, int y) Set window position on screen (only PLATFORM_DESKTOP) -
setWindowMonitor
public static void setWindowMonitor(int monitor) Set monitor for the current window -
setWindowMinSize
public static void setWindowMinSize(int width, int height) Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE) -
setWindowMaxSize
public static void setWindowMaxSize(int width, int height) Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE) -
setWindowSize
public static void setWindowSize(int width, int height) Set window dimensions -
setWindowOpacity
public static void setWindowOpacity(float opacity) Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP) -
setWindowFocused
public static void setWindowFocused()Set window focused (only PLATFORM_DESKTOP) -
getWindowHandle
Get native window handle -
getScreenWidth
public static int getScreenWidth()Get current screen width -
getScreenHeight
public static int getScreenHeight()Get current screen height -
getRenderWidth
public static int getRenderWidth()Get current render width (it considers HiDPI) -
getRenderHeight
public static int getRenderHeight()Get current render height (it considers HiDPI) -
getMonitorCount
public static int getMonitorCount()Get number of connected monitors -
getCurrentMonitor
public static int getCurrentMonitor()Get current connected monitor -
getMonitorPosition
Get specified monitor position -
getMonitorPosition
-
getMonitorWidth
public static int getMonitorWidth(int monitor) Get specified monitor width (current video mode used by monitor) -
getMonitorHeight
public static int getMonitorHeight(int monitor) Get specified monitor height (current video mode used by monitor) -
getMonitorPhysicalWidth
public static int getMonitorPhysicalWidth(int monitor) Get specified monitor physical width in millimetres -
getMonitorPhysicalHeight
public static int getMonitorPhysicalHeight(int monitor) Get specified monitor physical height in millimetres -
getMonitorRefreshRate
public static int getMonitorRefreshRate(int monitor) Get specified monitor refresh rate -
getWindowPosition
Get window position XY on monitor -
getWindowPosition
-
getWindowScaleDPI
Get window scale DPI factor -
getWindowScaleDPI
-
getMonitorName
Get the human-readable, UTF-8 encoded name of the specified monitor -
setClipboardText
Set clipboard text content -
getClipboardText
Get clipboard text content -
enableEventWaiting
public static void enableEventWaiting()Enable waiting for events on EndDrawing(), no automatic event polling -
disableEventWaiting
public static void disableEventWaiting()Disable waiting for events on EndDrawing(), automatic events polling -
showCursor
public static void showCursor()Shows cursor -
hideCursor
public static void hideCursor()Hides cursor -
isCursorHidden
public static boolean isCursorHidden()Check if cursor is not visible -
enableCursor
public static void enableCursor()Enables cursor (unlock cursor) -
disableCursor
public static void disableCursor()Disables cursor (lock cursor) -
isCursorOnScreen
public static boolean isCursorOnScreen()Check if cursor is on the screen -
clearBackground
Set background color (framebuffer clear color) -
beginDrawing
public static void beginDrawing()Setup canvas (framebuffer) to start drawing -
endDrawing
public static void endDrawing()End canvas drawing and swap buffers (double buffering) -
beginMode2D
Begin 2D mode with custom camera (2D) -
endMode2D
public static void endMode2D()Ends 2D mode with custom camera -
beginMode3D
Begin 3D mode with custom camera (3D) -
endMode3D
public static void endMode3D()Ends 3D mode and returns to default 2D orthographic mode -
beginTextureMode
Begin drawing to render texture -
endTextureMode
public static void endTextureMode()Ends drawing to render texture -
beginShaderMode
Begin custom shader drawing -
endShaderMode
public static void endShaderMode()End custom shader drawing (use default shader) -
beginBlendMode
public static void beginBlendMode(int mode) Begin blending mode (alpha, additive, multiplied, subtract, custom) -
endBlendMode
public static void endBlendMode()End blending mode (reset to default: alpha blending) -
beginScissorMode
public static void beginScissorMode(int x, int y, int width, int height) Begin scissor mode (define screen area for following drawing) -
endScissorMode
public static void endScissorMode()End scissor mode -
beginVrStereoMode
Begin stereo rendering (requires VR simulator) -
endVrStereoMode
public static void endVrStereoMode()End stereo rendering (requires VR simulator) -
loadVrStereoConfig
Load VR stereo config for VR simulator device parameters -
loadVrStereoConfig
Load VR stereo config for VR simulator device parameters -
unloadVrStereoConfig
Unload VR stereo config -
loadShader
-
loadShader
-
loadShaderFromMemory
-
loadShaderFromMemory
-
isShaderReady
Check if a shader is ready -
getShaderLocation
-
getShaderLocationAttrib
-
setShaderValue
public static void setShaderValue(Shader shader, int locIndex, MemorySegment value, int uniformType) Set shader uniform value -
setShaderValueV
public static void setShaderValueV(Shader shader, int locIndex, MemorySegment value, int uniformType, int count) Set shader uniform value vector -
setShaderValueMatrix
-
setShaderValueTexture
-
unloadShader
Unload shader from GPU memory (VRAM) -
getMouseRay
-
getMouseRay
-
getCameraMatrix
-
getCameraMatrix
-
getCameraMatrix2D
-
getCameraMatrix2D
-
getWorldToScreen
-
getWorldToScreen
-
getScreenToWorld2D
-
getScreenToWorld2D
-
getWorldToScreenEx
-
getWorldToScreenEx
-
getWorldToScreen2D
-
getWorldToScreen2D
-
setTargetFPS
public static void setTargetFPS(int fps) Set target FPS (maximum) -
getFrameTime
public static float getFrameTime()Get time in seconds for last frame drawn (delta time) -
getTime
public static double getTime()Get elapsed time in seconds since InitWindow() -
getFPS
public static int getFPS()Get current FPS -
swapScreenBuffer
public static void swapScreenBuffer()Swap back buffer with front buffer (screen drawing) -
pollInputEvents
public static void pollInputEvents()Register all input events -
waitTime
public static void waitTime(double seconds) Wait for some time (halt program execution) -
setRandomSeed
public static void setRandomSeed(int seed) Set the seed for the random number generator -
getRandomValue
public static int getRandomValue(int min, int max) Get a random value between min and max (both included) -
loadRandomSequence
Load random values sequence, no values repeated -
unloadRandomSequence
Unload random values sequence -
takeScreenshot
Takes a screenshot of current screen (filename extension defines format) -
setConfigFlags
public static void setConfigFlags(int flags) Setup init configuration flags (view FLAGS) -
openURL
Open URL with default system browser (if available) -
setTraceLogLevel
public static void setTraceLogLevel(int logLevel) Set the current threshold (minimum) log level -
memAlloc
Internal memory allocator -
memRealloc
Internal memory reallocator -
memFree
Internal memory free -
setTraceLogCallback
Set custom trace log -
setLoadFileDataCallback
Set custom file binary data loader -
setSaveFileDataCallback
Set custom file binary data saver -
setLoadFileTextCallback
Set custom file text data loader -
setSaveFileTextCallback
Set custom file text data saver -
loadFileData
Load file data as byte array (read) -
unloadFileData
Unload file data allocated by LoadFileData() -
saveFileData
Save data to file from byte array (write), returns true on success -
exportDataAsCode
Export data to code (.h), returns true on success -
loadFileText
Load text data from file (read), returns a '\0' terminated string -
unloadFileText
Unload file text data allocated by LoadFileText() -
saveFileText
Save text data to file (write), string must be '\0' terminated, returns true on success -
fileExists
Check if file exists -
directoryExists
Check if a directory path exists -
isFileExtension
-
getFileLength
Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h) -
getFileExtension
-
getFileName
-
getFileNameWithoutExt
-
getDirectoryPath
-
getPrevDirectoryPath
-
getWorkingDirectory
Get current working directory (uses static string) -
getApplicationDirectory
Get the directory of the running application (uses static string) -
changeDirectory
Change working directory, return true on success -
isPathFile
Check if a given path is a file or a directory -
loadDirectoryFiles
Load directory filepaths -
loadDirectoryFiles
Load directory filepaths -
loadDirectoryFilesEx
public static FilePathList loadDirectoryFilesEx(String basePath, String filter, boolean scanSubdirs) Load directory filepaths with extension filtering and recursive directory scan -
loadDirectoryFilesEx
public static FilePathList loadDirectoryFilesEx(Arena arena, String basePath, String filter, boolean scanSubdirs) Load directory filepaths with extension filtering and recursive directory scan -
unloadDirectoryFiles
Unload filepaths -
isFileDropped
public static boolean isFileDropped()Check if a file has been dropped into window -
loadDroppedFiles
Load dropped filepaths -
loadDroppedFiles
Load dropped filepaths -
unloadDroppedFiles
Unload dropped filepaths -
getFileModTime
Get file modification time (last write time) -
compressData
Compress data (DEFLATE algorithm), memory must be MemFree() -
decompressData
Decompress data (DEFLATE algorithm), memory must be MemFree() -
encodeDataBase64
Encode data to Base64 string, memory must be MemFree() -
decodeDataBase64
Decode Base64 string data, memory must be MemFree() -
loadAutomationEventList
Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS -
loadAutomationEventList
Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS -
unloadAutomationEventList
Unload automation events list from file -
exportAutomationEventList
Export automation events list as text file -
setAutomationEventList
Set automation event list to record to -
setAutomationEventBaseFrame
public static void setAutomationEventBaseFrame(int frame) Set automation event internal base frame to start recording -
startAutomationEventRecording
public static void startAutomationEventRecording()Start recording automation events (AutomationEventList must be set) -
stopAutomationEventRecording
public static void stopAutomationEventRecording()Stop recording automation events -
playAutomationEvent
Play a recorded automation event -
isKeyPressed
public static boolean isKeyPressed(int key) Check if a key has been pressed once -
isKeyPressedRepeat
public static boolean isKeyPressedRepeat(int key) Check if a key has been pressed again (Only PLATFORM_DESKTOP) -
isKeyDown
public static boolean isKeyDown(int key) Check if a key is being pressed -
isKeyReleased
public static boolean isKeyReleased(int key) Check if a key has been released once -
isKeyUp
public static boolean isKeyUp(int key) Check if a key is NOT being pressed -
getKeyPressed
public static int getKeyPressed()Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty -
getCharPressed
public static int getCharPressed()Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty -
setExitKey
public static void setExitKey(int key) Set a custom key to exit program (default is ESC) -
isGamepadAvailable
public static boolean isGamepadAvailable(int gamepad) Check if a gamepad is available -
getGamepadName
Get gamepad internal name id -
isGamepadButtonPressed
public static boolean isGamepadButtonPressed(int gamepad, int button) Check if a gamepad button has been pressed once -
isGamepadButtonDown
public static boolean isGamepadButtonDown(int gamepad, int button) Check if a gamepad button is being pressed -
isGamepadButtonReleased
public static boolean isGamepadButtonReleased(int gamepad, int button) Check if a gamepad button has been released once -
isGamepadButtonUp
public static boolean isGamepadButtonUp(int gamepad, int button) Check if a gamepad button is NOT being pressed -
getGamepadButtonPressed
public static int getGamepadButtonPressed()Get the last gamepad button pressed -
getGamepadAxisCount
public static int getGamepadAxisCount(int gamepad) Get gamepad axis count for a gamepad -
getGamepadAxisMovement
public static float getGamepadAxisMovement(int gamepad, int axis) Get axis movement value for a gamepad axis -
setGamepadMappings
Set internal gamepad mappings (SDL_GameControllerDB) -
isMouseButtonPressed
public static boolean isMouseButtonPressed(int button) Check if a mouse button has been pressed once -
isMouseButtonDown
public static boolean isMouseButtonDown(int button) Check if a mouse button is being pressed -
isMouseButtonReleased
public static boolean isMouseButtonReleased(int button) Check if a mouse button has been released once -
isMouseButtonUp
public static boolean isMouseButtonUp(int button) Check if a mouse button is NOT being pressed -
getMouseX
public static int getMouseX()Get mouse position X -
getMouseY
public static int getMouseY()Get mouse position Y -
getMousePosition
Get mouse position XY -
getMousePosition
-
getMouseDelta
Get mouse delta between frames -
getMouseDelta
-
setMousePosition
public static void setMousePosition(int x, int y) Set mouse position XY -
setMouseOffset
public static void setMouseOffset(int offsetX, int offsetY) Set mouse offset -
setMouseScale
public static void setMouseScale(float scaleX, float scaleY) Set mouse scaling -
getMouseWheelMove
public static float getMouseWheelMove()Get mouse wheel movement for X or Y, whichever is larger -
getMouseWheelMoveV
Get mouse wheel movement for both X and Y -
getMouseWheelMoveV
-
setMouseCursor
public static void setMouseCursor(int cursor) Set mouse cursor -
getTouchX
public static int getTouchX()Get touch position X for touch point 0 (relative to screen size) -
getTouchY
public static int getTouchY()Get touch position Y for touch point 0 (relative to screen size) -
getTouchPosition
Get touch position XY for a touch point index (relative to screen size) -
getTouchPosition
-
getTouchPointId
public static int getTouchPointId(int index) Get touch point identifier for given index -
getTouchPointCount
public static int getTouchPointCount()Get number of touch points -
setGesturesEnabled
public static void setGesturesEnabled(int flags) Enable a set of gestures using flags -
isGestureDetected
public static boolean isGestureDetected(int gesture) Check if a gesture have been detected -
getGestureDetected
public static int getGestureDetected()Get latest detected gesture -
getGestureHoldDuration
public static float getGestureHoldDuration()Get gesture hold time in milliseconds -
getGestureDragVector
Get gesture drag vector -
getGestureDragVector
-
getGestureDragAngle
public static float getGestureDragAngle()Get gesture drag angle -
getGesturePinchVector
Get gesture pinch delta -
getGesturePinchVector
-
getGesturePinchAngle
public static float getGesturePinchAngle()Get gesture pinch angle -
updateCamera
Update camera position for selected mode -
updateCameraPro
-
setShapesTexture
-
drawPixel
Draw a pixel -
drawPixelV
-
drawLine
Draw a line -
drawLineV
-
drawLineEx
-
drawLineStrip
-
drawLineBezier
-
drawCircle
Draw a color-filled circle -
drawCircleSector
-
drawCircleSectorLines
-
drawCircleGradient
-
drawCircleV
-
drawCircleLines
Draw circle outline -
drawCircleLinesV
-
drawEllipse
Draw ellipse -
drawEllipseLines
public static void drawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipse outline -
drawRing
-
drawRingLines
-
drawRectangle
Draw a color-filled rectangle -
drawRectangleV
-
drawRectangleRec
-
drawRectanglePro
-
drawRectangleGradientV
-
drawRectangleGradientH
-
drawRectangleGradientEx
-
drawRectangleLines
Draw rectangle outline -
drawRectangleLinesEx
-
drawRectangleRounded
-
drawRectangleRoundedLines
-
drawTriangle
-
drawTriangleLines
-
drawTriangleFan
-
drawTriangleStrip
-
drawPoly
-
drawPolyLines
-
drawPolyLinesEx
-
drawSplineLinear
-
drawSplineBasis
-
drawSplineCatmullRom
-
drawSplineBezierQuadratic
-
drawSplineBezierCubic
-
drawSplineSegmentLinear
-
drawSplineSegmentBasis
-
drawSplineSegmentCatmullRom
-
drawSplineSegmentBezierQuadratic
-
drawSplineSegmentBezierCubic
-
getSplinePointLinear
-
getSplinePointLinear
-
getSplinePointBasis
-
getSplinePointBasis
-
getSplinePointCatmullRom
-
getSplinePointCatmullRom
-
getSplinePointBezierQuad
-
getSplinePointBezierQuad
-
getSplinePointBezierCubic
-
getSplinePointBezierCubic
-
checkCollisionRecs
-
checkCollisionCircles
-
checkCollisionCircleRec
-
checkCollisionPointRec
-
checkCollisionPointCircle
-
checkCollisionPointTriangle
-
checkCollisionPointPoly
-
checkCollisionLines
-
checkCollisionPointLine
-
getCollisionRec
-
getCollisionRec
-
loadImage
-
loadImage
-
loadImageRaw
-
loadImageRaw
-
loadImageSvg
-
loadImageSvg
-
loadImageAnim
-
loadImageAnim
-
loadImageFromMemory
Load image from memory buffer, fileType refers to extension: i.e. '.png' -
loadImageFromMemory
public static Image loadImageFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load image from memory buffer, fileType refers to extension: i.e. '.png' -
loadImageFromTexture
-
loadImageFromTexture
-
loadImageFromScreen
Load image from screen buffer and (screenshot) -
loadImageFromScreen
-
isImageReady
Check if an image is ready -
unloadImage
Unload image from CPU memory (RAM) -
exportImage
-
exportImageToMemory
Export image to memory buffer -
exportImageAsCode
-
genImageColor
-
genImageColor
-
genImageGradientLinear
-
genImageGradientLinear
-
genImageGradientRadial
-
genImageGradientRadial
-
genImageGradientSquare
-
genImageGradientSquare
-
genImageChecked
-
genImageChecked
-
genImageWhiteNoise
Generate image: white noise -
genImageWhiteNoise
-
genImagePerlinNoise
public static Image genImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) Generate image: perlin noise -
genImagePerlinNoise
-
genImageCellular
Generate image: cellular algorithm, bigger tileSize means bigger cells -
genImageCellular
-
genImageText
-
genImageText
-
imageCopy
-
imageCopy
-
imageFromImage
-
imageFromImage
-
imageText
-
imageText
-
imageTextEx
-
imageTextEx
-
imageFormat
Convert image data to desired format -
imageToPOT
-
imageCrop
-
imageAlphaCrop
Crop image depending on alpha value -
imageAlphaClear
-
imageAlphaMask
-
imageAlphaPremultiply
Premultiply alpha channel -
imageBlurGaussian
Apply Gaussian blur using a box blur approximation -
imageResize
Resize image (Bicubic scaling algorithm) -
imageResizeNN
Resize image (Nearest-Neighbor scaling algorithm) -
imageResizeCanvas
-
imageMipmaps
Compute all mipmap levels for a provided image -
imageDither
Dither image data to 16bpp or lower (Floyd-Steinberg dithering) -
imageFlipVertical
Flip image vertically -
imageFlipHorizontal
Flip image horizontally -
imageRotate
Rotate image by input angle in degrees (-359 to 359) -
imageRotateCW
Rotate image clockwise 90deg -
imageRotateCCW
Rotate image counter-clockwise 90deg -
imageColorTint
-
imageColorInvert
Modify image color: invert -
imageColorGrayscale
Modify image color: grayscale -
imageColorContrast
Modify image color: contrast (-100 to 100) -
imageColorBrightness
Modify image color: brightness (-255 to 255) -
imageColorReplace
-
loadImageColors
-
loadImagePalette
-
unloadImageColors
Unload color data loaded with LoadImageColors() -
unloadImagePalette
Unload colors palette loaded with LoadImagePalette() -
getImageAlphaBorder
-
getImageAlphaBorder
-
getImageColor
-
getImageColor
-
imageClearBackground
-
imageDrawPixel
-
imageDrawPixelV
-
imageDrawLine
-
imageDrawLineV
-
imageDrawCircle
-
imageDrawCircleV
-
imageDrawCircleLines
-
imageDrawCircleLinesV
-
imageDrawRectangle
-
imageDrawRectangleV
-
imageDrawRectangleRec
-
imageDrawRectangleLines
-
imageDraw
-
imageDrawText
-
imageDrawTextEx
-
loadTexture
-
loadTexture
-
loadTextureFromImage
-
loadTextureFromImage
-
loadTextureCubemap
-
loadTextureCubemap
-
loadRenderTexture
Load texture for rendering (framebuffer) -
loadRenderTexture
Load texture for rendering (framebuffer) -
isTextureReady
Check if a texture is ready -
unloadTexture
Unload texture from GPU memory (VRAM) -
isRenderTextureReady
Check if a render texture is ready -
unloadRenderTexture
Unload render texture from GPU memory (VRAM) -
updateTexture
Update GPU texture with new data -
updateTextureRec
Update GPU texture rectangle with new data -
genTextureMipmaps
Generate GPU mipmaps for a texture -
setTextureFilter
Set texture scaling filter mode -
setTextureWrap
Set texture wrapping mode -
drawTexture
-
drawTextureV
-
drawTextureEx
-
drawTextureRec
-
drawTexturePro
-
drawTextureNPatch
public static void drawTextureNPatch(Texture texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) Draws a texture (or part of it) that stretches or shrinks nicely -
fade
-
fade
-
colorToInt
Get hexadecimal value for a Color -
colorNormalize
-
colorNormalize
-
colorFromNormalized
-
colorFromNormalized
-
colorToHSV
-
colorToHSV
-
colorFromHSV
Get a Color from HSV values, hue [0..360], saturation/value [0..1] -
colorFromHSV
-
colorTint
-
colorTint
-
colorBrightness
-
colorBrightness
-
colorContrast
-
colorContrast
-
colorAlpha
-
colorAlpha
-
colorAlphaBlend
-
colorAlphaBlend
-
getColor
Get Color structure from hexadecimal value -
getColor
-
getPixelColor
Get Color from a source pixel pointer of certain format -
getPixelColor
Get Color from a source pixel pointer of certain format -
setPixelColor
Set color formatted into destination pixel pointer -
getPixelDataSize
public static int getPixelDataSize(int width, int height, int format) Get pixel data size in bytes for certain format -
getFontDefault
Get the default Font -
getFontDefault
-
loadFont
-
loadFont
-
loadFontEx
-
loadFontEx
-
loadFontFromImage
-
loadFontFromImage
-
loadFontFromMemory
public static Font loadFontFromMemory(String fileType, ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount) Load font from memory buffer, fileType refers to extension: i.e. '.ttf' -
loadFontFromMemory
public static Font loadFontFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount) Load font from memory buffer, fileType refers to extension: i.e. '.ttf' -
isFontReady
Check if a font is ready -
loadFontData
public static GlyphInfo loadFontData(ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount, int type) Load font data for further use -
genImageFontAtlas
public static Image genImageFontAtlas(MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) Generate image font atlas using chars info -
genImageFontAtlas
public static Image genImageFontAtlas(Arena arena, MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) Generate image font atlas using chars info -
unloadFontData
Unload font chars info data (RAM) -
unloadFont
Unload font from GPU memory (VRAM) -
exportFontAsCode
-
drawFPS
public static void drawFPS(int posX, int posY) Draw current FPS -
drawText
-
drawTextEx
-
drawTextPro
-
drawTextCodepoint
-
drawTextCodepoints
public static void drawTextCodepoints(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) Draw multiple character (codepoint) -
setTextLineSpacing
public static void setTextLineSpacing(int spacing) Set vertical line spacing when drawing with line-breaks -
measureText
Measure string width for default font -
measureTextEx
-
measureTextEx
-
getGlyphIndex
Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found -
getGlyphInfo
-
getGlyphInfo
-
getGlyphAtlasRec
-
getGlyphAtlasRec
-
loadUTF8
Load UTF-8 text encoded from codepoints array -
unloadUTF8
Unload UTF-8 text encoded from codepoints array -
loadCodepoints
-
unloadCodepoints
Unload codepoints data from memory -
getCodepointCount
Get total number of codepoints in a UTF-8 encoded string -
getCodepoint
-
getCodepointNext
-
getCodepointPrevious
-
codepointToUTF8
-
textCopy
Copy one string to another, returns bytes copied -
textIsEqual
-
textLength
Get text length, checks for '\0' ending -
textSubtext
-
textReplace
Replace text string (WARNING: memory must be freed!) -
textInsert
Insert text in a position (WARNING: memory must be freed!) -
textJoin
Join text strings with delimiter -
textSplit
Split text into multiple strings -
textAppend
Append text at specific position and move cursor! -
textFindIndex
-
textToUpper
-
textToLower
-
textToPascal
-
textToInteger
Get integer value from text (negative values not supported) -
drawLine3D
-
drawPoint3D
-
drawCircle3D
-
drawTriangle3D
-
drawTriangleStrip3D
-
drawCube
-
drawCubeV
-
drawCubeWires
-
drawCubeWiresV
-
drawSphere
-
drawSphereEx
-
drawSphereWires
-
drawCylinder
-
drawCylinderEx
-
drawCylinderWires
-
drawCylinderWiresEx
-
drawCapsule
-
drawCapsuleWires
-
drawPlane
-
drawRay
-
drawGrid
public static void drawGrid(int slices, float spacing) Draw a grid (centered at (0, 0, 0)) -
loadModel
-
loadModel
-
loadModelFromMesh
-
loadModelFromMesh
-
isModelReady
Check if a model is ready -
unloadModel
Unload model (including meshes) from memory (RAM and/or VRAM) -
getModelBoundingBox
Compute model bounding box limits (considers all meshes) -
getModelBoundingBox
Compute model bounding box limits (considers all meshes) -
drawModel
-
drawModelEx
-
drawModelWires
-
drawModelWiresEx
-
drawBoundingBox
Draw bounding box (wires) -
drawBillboard
-
drawBillboardRec
-
drawBillboardPro
-
uploadMesh
Upload mesh vertex data in GPU and provide VAO/VBO ids -
updateMeshBuffer
public static void updateMeshBuffer(Mesh mesh, int index, MemorySegment data, int dataSize, int offset) Update mesh vertex data in GPU for a specific buffer index -
unloadMesh
Unload mesh data from CPU and GPU -
drawMesh
-
drawMeshInstanced
public static void drawMeshInstanced(Mesh mesh, Material material, MemorySegment transforms, int instances) Draw multiple mesh instances with material and different transforms -
exportMesh
-
getMeshBoundingBox
Compute mesh bounding box limits -
getMeshBoundingBox
Compute mesh bounding box limits -
genMeshTangents
Compute mesh tangents -
genMeshPoly
Generate polygonal mesh -
genMeshPoly
-
genMeshPlane
Generate plane mesh (with subdivisions) -
genMeshPlane
-
genMeshCube
Generate cuboid mesh -
genMeshCube
-
genMeshSphere
Generate sphere mesh (standard sphere) -
genMeshSphere
-
genMeshHemiSphere
Generate half-sphere mesh (no bottom cap) -
genMeshHemiSphere
-
genMeshCylinder
Generate cylinder mesh -
genMeshCylinder
-
genMeshCone
Generate cone/pyramid mesh -
genMeshCone
-
genMeshTorus
Generate torus mesh -
genMeshTorus
-
genMeshKnot
Generate trefoil knot mesh -
genMeshKnot
-
genMeshHeightmap
-
genMeshHeightmap
-
genMeshCubicmap
-
genMeshCubicmap
-
loadMaterials
-
loadMaterialDefault
Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps) -
loadMaterialDefault
-
isMaterialReady
Check if a material is ready -
unloadMaterial
Unload material from GPU memory (VRAM) -
setMaterialTexture
-
setModelMeshMaterial
Set material for a mesh -
loadModelAnimations
Load model animations from file -
updateModelAnimation
Update model animation pose -
unloadModelAnimation
Unload animation data -
unloadModelAnimations
Unload animation array data -
isModelAnimationValid
Check model animation skeleton match -
checkCollisionSpheres
-
checkCollisionBoxes
Check collision between two bounding boxes -
checkCollisionBoxSphere
Check collision between box and sphere -
getRayCollisionSphere
Get collision info between ray and sphere -
getRayCollisionSphere
public static RayCollision getRayCollisionSphere(Arena arena, Ray ray, Vector3 center, float radius) Get collision info between ray and sphere -
getRayCollisionBox
Get collision info between ray and box -
getRayCollisionBox
Get collision info between ray and box -
getRayCollisionMesh
Get collision info between ray and mesh -
getRayCollisionMesh
Get collision info between ray and mesh -
getRayCollisionTriangle
Get collision info between ray and triangle -
getRayCollisionTriangle
-
getRayCollisionQuad
-
getRayCollisionQuad
-
initAudioDevice
public static void initAudioDevice()Initialize audio device and context -
closeAudioDevice
public static void closeAudioDevice()Close the audio device and context -
isAudioDeviceReady
public static boolean isAudioDeviceReady()Check if audio device has been initialized successfully -
setMasterVolume
public static void setMasterVolume(float volume) Set master volume (listener) -
getMasterVolume
public static float getMasterVolume()Get master volume (listener) -
loadWave
-
loadWave
-
loadWaveFromMemory
Load wave from memory buffer, fileType refers to extension: i.e. '.wav' -
loadWaveFromMemory
public static Wave loadWaveFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e. '.wav' -
isWaveReady
Checks if wave data is ready -
loadSound
-
loadSound
-
loadSoundFromWave
-
loadSoundFromWave
-
loadSoundAlias
-
loadSoundAlias
-
isSoundReady
Checks if a sound is ready -
updateSound
Update sound buffer with new data -
unloadWave
Unload wave data -
unloadSound
Unload sound -
unloadSoundAlias
Unload a sound alias (does not deallocate sample data) -
exportWave
-
exportWaveAsCode
-
playSound
Play a sound -
stopSound
Stop playing a sound -
pauseSound
Pause a sound -
resumeSound
Resume a paused sound -
isSoundPlaying
Check if a sound is currently playing -
setSoundVolume
Set volume for a sound (1.0 is max level) -
setSoundPitch
Set pitch for a sound (1.0 is base level) -
setSoundPan
Set pan for a sound (0.5 is center) -
waveCopy
-
waveCopy
-
waveCrop
Crop a wave to defined samples range -
waveFormat
Convert wave data to desired format -
loadWaveSamples
Load samples data from wave as a 32bit float data array -
unloadWaveSamples
Unload samples data loaded with LoadWaveSamples() -
loadMusicStream
-
loadMusicStream
-
loadMusicStreamFromMemory
Load music stream from data -
loadMusicStreamFromMemory
public static Music loadMusicStreamFromMemory(Arena arena, String fileType, ByteBuffer data, int dataSize) Load music stream from data -
isMusicReady
Checks if a music stream is ready -
unloadMusicStream
Unload music stream -
playMusicStream
Start music playing -
isMusicStreamPlaying
Check if music is playing -
updateMusicStream
Updates buffers for music streaming -
stopMusicStream
Stop music playing -
pauseMusicStream
Pause music playing -
resumeMusicStream
Resume playing paused music -
seekMusicStream
Seek music to a position (in seconds) -
setMusicVolume
Set volume for music (1.0 is max level) -
setMusicPitch
Set pitch for a music (1.0 is base level) -
setMusicPan
Set pan for a music (0.5 is center) -
getMusicTimeLength
Get music time length (in seconds) -
getMusicTimePlayed
Get current music time played (in seconds) -
loadAudioStream
Load audio stream (to stream raw audio pcm data) -
loadAudioStream
public static AudioStream loadAudioStream(Arena arena, int sampleRate, int sampleSize, int channels) Load audio stream (to stream raw audio pcm data) -
isAudioStreamReady
Checks if an audio stream is ready -
unloadAudioStream
Unload audio stream and free memory -
updateAudioStream
Update audio stream buffers with data -
isAudioStreamProcessed
Check if any audio stream buffers requires refill -
playAudioStream
Play audio stream -
pauseAudioStream
Pause audio stream -
resumeAudioStream
Resume audio stream -
isAudioStreamPlaying
Check if audio stream is playing -
stopAudioStream
Stop audio stream -
setAudioStreamVolume
Set volume for audio stream (1.0 is max level) -
setAudioStreamPitch
Set pitch for audio stream (1.0 is base level) -
setAudioStreamPan
Set pan for audio stream (0.5 is centered) -
setAudioStreamBufferSizeDefault
public static void setAudioStreamBufferSizeDefault(int size) Default size for new audio streams -
setAudioStreamCallback
Audio thread callback to request new data -
attachAudioStreamProcessor
Attach audio stream processor to stream, receives the samples ass -
detachAudioStreamProcessor
Detach audio stream processor from stream -
attachAudioMixedProcessor
Attach audio stream processor to the entire audio pipeline, receives the samples ass -
detachAudioMixedProcessor
Detach audio stream processor from the entire audio pipeline
-