Package com.raylib
Class Raylib
java.lang.Object
com.raylib.Raylib
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classColor blending modes (pre-defined)static classCamera system modesstatic classCamera projectionstatic classSystem/Window config flagsstatic classCubemap layoutsstatic classFont type, defines generation methodstatic classGamepad axisstatic classGamepad buttonsstatic classGesturestatic classKeyboard keys (US keyboard layout)static classMaterial map indexstatic classMouse buttonsstatic classMouse cursorstatic classN-patch layoutstatic classPixel formatsstatic classShader attribute data typesstatic classShader location indexstatic classShader uniform data typestatic classTexture parameters: filter modestatic classTexture parameters: wrap modestatic classTrace log level -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Colorstatic Color -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachAudioMixedProcessor(MemorySegment processor) Attach audio stream processor to the entire audio pipeline, receives the samples ass static voidattachAudioStreamProcessor(AudioStream stream, MemorySegment processor) Attach audio stream processor to stream, receives the samples ass static voidbeginBlendMode(int mode) Begin blending mode (alpha, additive, multiplied, subtract, custom)static voidSetup canvas (framebuffer) to start drawingstatic voidbeginMode2D(Camera2D camera) Begin 2D mode with custom camera (2D)static voidbeginMode3D(Camera3D camera) Begin 3D mode with custom camera (3D)static voidbeginScissorMode(int x, int y, int width, int height) Begin scissor mode (define screen area for following drawing)static voidbeginShaderMode(Shader shader) Begin custom shader drawingstatic voidbeginTextureMode(RenderTexture target) Begin drawing to render texturestatic voidbeginVrStereoMode(VrStereoConfig config) Begin stereo rendering (requires VR simulator)static booleanchangeDirectory(String dir) Change working directory, return true on successstatic booleancheckCollisionBoxes(BoundingBox box1, BoundingBox box2) Check collision between two bounding boxesstatic booleancheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) Check collision between box and spherestatic booleancheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) Check collision between circle and rectanglestatic booleancheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) Check collision between two circlesstatic booleancheckCollisionLines(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 booleancheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) Check if point is inside circlestatic booleancheckCollisionPointLine(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 booleancheckCollisionPointPoly(Vector2 point, Vector2 points, int pointCount) Check if point is within a polygon described by array of verticesstatic booleancheckCollisionPointRec(Vector2 point, Rectangle rec) Check if point is inside rectanglestatic booleancheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) Check if point is inside a trianglestatic booleancheckCollisionRecs(Rectangle rec1, Rectangle rec2) Check collision between two rectanglesstatic booleancheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) Check collision between two spheresstatic voidclearBackground(Color color) Set background color (framebuffer clear color)static voidclearWindowState(int flags) Clear window configuration state flagsstatic voidClose the audio device and contextstatic voidClose window and unload OpenGL contextstatic StringcodepointToUTF8(int codepoint, IntBuffer utf8Size) Encode one codepoint into UTF-8 byte array (array length returned as parameter)static ColorcolorAlpha(Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorcolorAlpha(Arena arena, Color color, float alpha) Get color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorcolorAlphaBlend(Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic ColorcolorAlphaBlend(Arena arena, Color dst, Color src, Color tint) Get src alpha-blended into dst color with tintstatic ColorcolorBrightness(Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic ColorcolorBrightness(Arena arena, Color color, float factor) Get color with brightness correction, brightness factor goes from -1.0f to 1.0fstatic ColorcolorContrast(Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic ColorcolorContrast(Arena arena, Color color, float contrast) Get color with contrast correction, contrast values between -1.0f and 1.0fstatic ColorcolorFromHSV(float hue, float saturation, float value) Get a Color from HSV values, hue [0..360], saturation/value [0..1]static ColorcolorFromHSV(Arena arena, float hue, float saturation, float value) Get a Color from HSV values, hue [0..360], saturation/value [0..1]static ColorcolorFromNormalized(Vector4 normalized) Get Color from normalized values [0..1]static ColorcolorFromNormalized(Arena arena, Vector4 normalized) Get Color from normalized values [0..1]static Vector4colorNormalize(Color color) Get Color normalized as float [0..1]static Vector4colorNormalize(Arena arena, Color color) Get Color normalized as float [0..1]static ColorGet color multiplied with another colorstatic ColorGet color multiplied with another colorstatic Vector3colorToHSV(Color color) Get HSV values for a Color, hue [0..360], saturation/value [0..1]static Vector3colorToHSV(Arena arena, Color color) Get HSV values for a Color, hue [0..360], saturation/value [0..1]static intcolorToInt(Color color) Get hexadecimal value for a Colorstatic ByteBuffercompressData(ByteBuffer data, int dataSize, IntBuffer compDataSize) Compress data (DEFLATE algorithm), memory must be MemFree()static ByteBuffercreateByteBuffer(int size) Any ByteBuffers you create *MUST* be direct allocation and native order.static FloatBuffercreateFloatBuffer(int size) Any FloatBuffers you create *MUST* be direct allocation and native order.static IntBuffercreateIntBuffer(int size) Any IntBuffers you create *MUST* be direct allocation and native order.static ByteBufferdecodeDataBase64(ByteBuffer data, IntBuffer outputSize) Decode Base64 string data, memory must be MemFree()static ByteBufferdecompressData(ByteBuffer compData, int compDataSize, IntBuffer dataSize) Decompress data (DEFLATE algorithm), memory must be MemFree()static voiddetachAudioMixedProcessor(MemorySegment processor) Detach audio stream processor from the entire audio pipelinestatic voiddetachAudioStreamProcessor(AudioStream stream, MemorySegment processor) Detach audio stream processor from streamstatic booleandirectoryExists(String dirPath) Check if a directory path existsstatic voidDisables cursor (lock cursor)static voidDisable waiting for events on EndDrawing(), automatic events pollingstatic voiddrawBillboard(Camera3D camera, Texture texture, Vector3 position, float size, Color tint) Draw a billboard texturestatic voiddrawBillboardPro(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 voiddrawBillboardRec(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint) Draw a billboard texture defined by sourcestatic voiddrawBoundingBox(BoundingBox box, Color color) Draw bounding box (wires)static voiddrawCapsule(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 voiddrawCapsuleWires(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 voiddrawCircle(int centerX, int centerY, float radius, Color color) Draw a color-filled circlestatic voiddrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) Draw a circle in 3D world spacestatic voiddrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) Draw a gradient-filled circlestatic voiddrawCircleLines(int centerX, int centerY, float radius, Color color) Draw circle outlinestatic voiddrawCircleLinesV(Vector2 center, float radius, Color color) Draw circle outline (Vector version)static voiddrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw a piece of a circlestatic voiddrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) Draw circle sector outlinestatic voiddrawCircleV(Vector2 center, float radius, Color color) Draw a color-filled circle (Vector version)static voidDraw cubestatic voidDraw cube (Vector version)static voiddrawCubeWires(Vector3 position, float width, float height, float length, Color color) Draw cube wiresstatic voiddrawCubeWiresV(Vector3 position, Vector3 size, Color color) Draw cube wires (Vector version)static voiddrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) Draw a cylinder/conestatic voiddrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) Draw a cylinder with base at startPos and top at endPosstatic voiddrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) Draw a cylinder/cone wiresstatic voiddrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) Draw a cylinder wires with base at startPos and top at endPosstatic voiddrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipsestatic voiddrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) Draw ellipse outlinestatic voiddrawFPS(int posX, int posY) Draw current FPSstatic voiddrawGrid(int slices, float spacing) Draw a grid (centered at (0, 0, 0))static voidDraw a linestatic voiddrawLine3D(Vector3 startPos, Vector3 endPos, Color color) Draw a line in 3D world spacestatic voiddrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw line segment cubic-bezier in-out interpolationstatic voiddrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) Draw a line (using triangles/quads)static voiddrawLineStrip(Vector2 points, int pointCount, Color color) Draw lines sequence (using gl lines)static voidDraw a line (using gl lines)static voidDraw a 3d mesh with material and transformstatic voiddrawMeshInstanced(Mesh mesh, Material material, MemorySegment transforms, int instances) Draw multiple mesh instances with material and different transformsstatic voidDraw a model (with texture if set)static voiddrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) Draw a model with extended parametersstatic voiddrawModelWires(Model model, Vector3 position, float scale, Color tint) Draw a model wires (with texture if set)static voiddrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) Draw a model wires (with texture if set) with extended parametersstatic voidDraw a pixelstatic voiddrawPixelV(Vector2 position, Color color) Draw a pixel (Vector version)static voidDraw a plane XZstatic voiddrawPoint3D(Vector3 position, Color color) Draw a point in 3D space, actually a small linestatic voidDraw a regular polygon (Vector version)static voiddrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) Draw a polygon outline of n sidesstatic voiddrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) Draw a polygon outline of n sides with extended parametersstatic voidDraw a ray linestatic voiddrawRectangle(int posX, int posY, int width, int height, Color color) Draw a color-filled rectanglestatic voidDraw a gradient-filled rectangle with custom vertex colorsstatic voiddrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) Draw a horizontal-gradient-filled rectanglestatic voiddrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) Draw a vertical-gradient-filled rectanglestatic voiddrawRectangleLines(int posX, int posY, int width, int height, Color color) Draw rectangle outlinestatic voiddrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) Draw rectangle outline with extended parametersstatic voiddrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) Draw a color-filled rectangle with pro parametersstatic voiddrawRectangleRec(Rectangle rec, Color color) Draw a color-filled rectanglestatic voiddrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) Draw rectangle with rounded edgesstatic voiddrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, float lineThick, Color color) Draw rectangle with rounded edges outlinestatic voiddrawRectangleV(Vector2 position, Vector2 size, Color color) Draw a color-filled rectangle (Vector version)static voiddrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ringstatic voiddrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) Draw ring outlinestatic voiddrawSphere(Vector3 centerPos, float radius, Color color) Draw spherestatic voiddrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) Draw sphere with extended parametersstatic voiddrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) Draw sphere wiresstatic voiddrawSplineBasis(Vector2 points, int pointCount, float thick, Color color) Draw spline: B-Spline, minimum 4 pointsstatic voiddrawSplineBezierCubic(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 voiddrawSplineBezierQuadratic(Vector2 points, int pointCount, float thick, Color color) Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]static voiddrawSplineCatmullRom(Vector2 points, int pointCount, float thick, Color color) Draw spline: Catmull-Rom, minimum 4 pointsstatic voiddrawSplineLinear(Vector2 points, int pointCount, float thick, Color color) Draw spline: Linear, minimum 2 pointsstatic voidDraw spline segment: B-Spline, 4 pointsstatic voiddrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) Draw spline segment: Cubic Bezier, 2 points, 2 control pointsstatic voiddrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) Draw spline segment: Quadratic Bezier, 2 points, 1 control pointstatic voiddrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) Draw spline segment: Catmull-Rom, 4 pointsstatic voiddrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) Draw spline segment: Linear, 2 pointsstatic voidDraw text (using default font)static voiddrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) Draw one character (codepoint)static voiddrawTextCodepoints(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) Draw multiple character (codepoint)static voiddrawTextEx(Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text using font and additional parametersstatic voiddrawTextPro(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 voiddrawTexture(Texture texture, int posX, int posY, Color tint) Draw a Texture2Dstatic voiddrawTextureEx(Texture texture, Vector2 position, float rotation, float scale, Color tint) Draw a Texture2D with extended parametersstatic voiddrawTextureNPatch(Texture texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) Draws a texture (or part of it) that stretches or shrinks nicelystatic voiddrawTexturePro(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 voiddrawTextureRec(Texture texture, Rectangle source, Vector2 position, Color tint) Draw a part of a texture defined by a rectanglestatic voiddrawTextureV(Texture texture, Vector2 position, Color tint) Draw a Texture2D with position defined as Vector2static voiddrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static voiddrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) Draw a color-filled triangle (vertex in counter-clockwise order!)static voiddrawTriangleFan(Vector2 points, int pointCount, Color color) Draw a triangle fan defined by points (first vertex is the center)static voiddrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) Draw triangle outline (vertex in counter-clockwise order!)static voiddrawTriangleStrip(Vector2 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic voiddrawTriangleStrip3D(Vector3 points, int pointCount, Color color) Draw a triangle strip defined by pointsstatic voidEnables cursor (unlock cursor)static voidEnable waiting for events on EndDrawing(), no automatic event pollingstatic ByteBufferencodeDataBase64(ByteBuffer data, int dataSize, IntBuffer outputSize) Encode data to Base64 string, memory must be MemFree()static voidEnd blending mode (reset to default: alpha blending)static voidEnd canvas drawing and swap buffers (double buffering)static voidEnds 2D mode with custom camerastatic voidEnds 3D mode and returns to default 2D orthographic modestatic voidEnd scissor modestatic voidEnd custom shader drawing (use default shader)static voidEnds drawing to render texturestatic voidEnd stereo rendering (requires VR simulator)static booleanexportAutomationEventList(AutomationEventList list, String fileName) Export automation events list as text filestatic booleanexportDataAsCode(ByteBuffer data, int dataSize, String fileName) Export data to code (.h), returns true on successstatic booleanexportFontAsCode(Font font, String fileName) Export font as code file, returns true on successstatic booleanexportImage(Image image, String fileName) Export image data to file, returns true on successstatic booleanexportImageAsCode(Image image, String fileName) Export image as code file defining an array of bytes, returns true on successstatic ByteBufferexportImageToMemory(Image image, String fileType, IntBuffer fileSize) Export image to memory bufferstatic booleanexportMesh(Mesh mesh, String fileName) Export mesh data to file, returns true on successstatic booleanexportWave(Wave wave, String fileName) Export wave data to file, returns true on successstatic booleanexportWaveAsCode(Wave wave, String fileName) Export wave sample data to code (.h), returns true on successstatic ColorGet color with alpha applied, alpha goes from 0.0f to 1.0fstatic ColorGet color with alpha applied, alpha goes from 0.0f to 1.0fstatic booleanfileExists(String fileName) Check if file existsstatic ImagegenImageCellular(int width, int height, int tileSize) Generate image: cellular algorithm, bigger tileSize means bigger cellsstatic ImagegenImageCellular(Arena arena, int width, int height, int tileSize) Generate image: cellular algorithm, bigger tileSize means bigger cellsstatic ImagegenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic ImagegenImageChecked(Arena arena, int width, int height, int checksX, int checksY, Color col1, Color col2) Generate image: checkedstatic ImagegenImageColor(int width, int height, Color color) Generate image: plain colorstatic ImagegenImageColor(Arena arena, int width, int height, Color color) Generate image: plain colorstatic ImagegenImageFontAtlas(Arena arena, MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) Generate image font atlas using chars infostatic ImagegenImageFontAtlas(MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) Generate image font atlas using chars infostatic ImagegenImageGradientLinear(int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic ImagegenImageGradientLinear(Arena arena, int width, int height, int direction, Color start, Color end) Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradientstatic ImagegenImageGradientRadial(int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic ImagegenImageGradientRadial(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: radial gradientstatic ImagegenImageGradientSquare(int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic ImagegenImageGradientSquare(Arena arena, int width, int height, float density, Color inner, Color outer) Generate image: square gradientstatic ImagegenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) Generate image: perlin noisestatic ImagegenImagePerlinNoise(Arena arena, int width, int height, int offsetX, int offsetY, float scale) Generate image: perlin noisestatic ImagegenImageText(int width, int height, String text) Generate image: grayscale image from text datastatic ImagegenImageText(Arena arena, int width, int height, String text) Generate image: grayscale image from text datastatic ImagegenImageWhiteNoise(int width, int height, float factor) Generate image: white noisestatic ImagegenImageWhiteNoise(Arena arena, int width, int height, float factor) Generate image: white noisestatic MeshgenMeshCone(float radius, float height, int slices) Generate cone/pyramid meshstatic MeshgenMeshCone(Arena arena, float radius, float height, int slices) Generate cone/pyramid meshstatic MeshgenMeshCube(float width, float height, float length) Generate cuboid meshstatic MeshgenMeshCube(Arena arena, float width, float height, float length) Generate cuboid meshstatic MeshgenMeshCubicmap(Image cubicmap, Vector3 cubeSize) Generate cubes-based map mesh from image datastatic MeshgenMeshCubicmap(Arena arena, Image cubicmap, Vector3 cubeSize) Generate cubes-based map mesh from image datastatic MeshgenMeshCylinder(float radius, float height, int slices) Generate cylinder meshstatic MeshgenMeshCylinder(Arena arena, float radius, float height, int slices) Generate cylinder meshstatic MeshgenMeshHeightmap(Image heightmap, Vector3 size) Generate heightmap mesh from image datastatic MeshgenMeshHeightmap(Arena arena, Image heightmap, Vector3 size) Generate heightmap mesh from image datastatic MeshgenMeshHemiSphere(float radius, int rings, int slices) Generate half-sphere mesh (no bottom cap)static MeshgenMeshHemiSphere(Arena arena, float radius, int rings, int slices) Generate half-sphere mesh (no bottom cap)static MeshgenMeshKnot(float radius, float size, int radSeg, int sides) Generate trefoil knot meshstatic MeshgenMeshKnot(Arena arena, float radius, float size, int radSeg, int sides) Generate trefoil knot meshstatic MeshgenMeshPlane(float width, float length, int resX, int resZ) Generate plane mesh (with subdivisions)static MeshgenMeshPlane(Arena arena, float width, float length, int resX, int resZ) Generate plane mesh (with subdivisions)static MeshgenMeshPoly(int sides, float radius) Generate polygonal meshstatic MeshgenMeshPoly(Arena arena, int sides, float radius) Generate polygonal meshstatic MeshgenMeshSphere(float radius, int rings, int slices) Generate sphere mesh (standard sphere)static MeshgenMeshSphere(Arena arena, float radius, int rings, int slices) Generate sphere mesh (standard sphere)static voidgenMeshTangents(Mesh mesh) Compute mesh tangentsstatic MeshgenMeshTorus(float radius, float size, int radSeg, int sides) Generate torus meshstatic MeshgenMeshTorus(Arena arena, float radius, float size, int radSeg, int sides) Generate torus meshstatic voidgenTextureMipmaps(Texture texture) Generate GPU mipmaps for a texturestatic StringGet the directory of the running application (uses static string)static MatrixgetCameraMatrix(Camera3D camera) Get camera transform matrix (view matrix)static MatrixgetCameraMatrix(Arena arena, Camera3D camera) Get camera transform matrix (view matrix)static MatrixgetCameraMatrix2D(Camera2D camera) Get camera 2d transform matrixstatic MatrixgetCameraMatrix2D(Arena arena, Camera2D camera) Get camera 2d transform matrixstatic intGet char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is emptystatic StringGet clipboard text contentstatic intgetCodepoint(String text, IntBuffer codepointSize) Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failurestatic intgetCodepointCount(String text) Get total number of codepoints in a UTF-8 encoded stringstatic intgetCodepointNext(String text, IntBuffer codepointSize) Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failurestatic intgetCodepointPrevious(String text, IntBuffer codepointSize) Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failurestatic RectanglegetCollisionRec(Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic RectanglegetCollisionRec(Arena arena, Rectangle rec1, Rectangle rec2) Get collision rectangle for two rectangles collisionstatic ColorgetColor(int hexValue) Get Color structure from hexadecimal valuestatic ColorGet Color structure from hexadecimal valuestatic intGet current connected monitorstatic StringgetDirectoryPath(String filePath) Get full path for a given fileName with path (uses static string)static StringgetFileExtension(String fileName) Get pointer to extension for a filename string (includes dot: '.png')static intgetFileLength(String fileName) Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)static longgetFileModTime(String fileName) Get file modification time (last write time)static StringgetFileName(String filePath) Get pointer to filename for a path stringstatic StringgetFileNameWithoutExt(String filePath) Get filename string without extension (uses static string)static FontGet the default Fontstatic FontgetFontDefault(Arena arena) Get the default Fontstatic intgetFPS()Get current FPSstatic floatGet time in seconds for last frame drawn (delta time)static intgetGamepadAxisCount(int gamepad) Get gamepad axis count for a gamepadstatic floatgetGamepadAxisMovement(int gamepad, int axis) Get axis movement value for a gamepad axisstatic intGet the last gamepad button pressedstatic StringgetGamepadName(int gamepad) Get gamepad internal name idstatic intGet latest detected gesturestatic floatGet gesture drag anglestatic Vector2Get gesture drag vectorstatic Vector2getGestureDragVector(Arena arena) Get gesture drag vectorstatic floatGet gesture hold time in millisecondsstatic floatGet gesture pinch anglestatic Vector2Get gesture pinch deltastatic Vector2getGesturePinchVector(Arena arena) Get gesture pinch deltastatic RectanglegetGlyphAtlasRec(Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic RectanglegetGlyphAtlasRec(Arena arena, Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic intgetGlyphIndex(Font font, int codepoint) Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not foundstatic GlyphInfogetGlyphInfo(Font font, int codepoint) Get glyph font info data for a codepoint (unicode character), fallback to '?' if not foundstatic GlyphInfogetGlyphInfo(Arena arena, Font font, int codepoint) Get glyph font info data for a codepoint (unicode character), fallback to '?' if not foundstatic RectanglegetImageAlphaBorder(Image image, float threshold) Get image alpha border rectanglestatic RectanglegetImageAlphaBorder(Arena arena, Image image, float threshold) Get image alpha border rectanglestatic ColorgetImageColor(Image image, int x, int y) Get image pixel color at (x, y) positionstatic ColorgetImageColor(Arena arena, Image image, int x, int y) Get image pixel color at (x, y) positionstatic intGet key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is emptystatic floatGet master volume (listener)static BoundingBoxgetMeshBoundingBox(Mesh mesh) Compute mesh bounding box limitsstatic BoundingBoxgetMeshBoundingBox(Arena arena, Mesh mesh) Compute mesh bounding box limitsstatic BoundingBoxgetModelBoundingBox(Model model) Compute model bounding box limits (considers all meshes)static BoundingBoxgetModelBoundingBox(Arena arena, Model model) Compute model bounding box limits (considers all meshes)static intGet number of connected monitorsstatic intgetMonitorHeight(int monitor) Get specified monitor height (current video mode used by monitor)static StringgetMonitorName(int monitor) Get the human-readable, UTF-8 encoded name of the specified monitorstatic intgetMonitorPhysicalHeight(int monitor) Get specified monitor physical height in millimetresstatic intgetMonitorPhysicalWidth(int monitor) Get specified monitor physical width in millimetresstatic Vector2getMonitorPosition(int monitor) Get specified monitor positionstatic Vector2getMonitorPosition(Arena arena, int monitor) Get specified monitor positionstatic intgetMonitorRefreshRate(int monitor) Get specified monitor refresh ratestatic intgetMonitorWidth(int monitor) Get specified monitor width (current video mode used by monitor)static Vector2Get mouse delta between framesstatic Vector2getMouseDelta(Arena arena) Get mouse delta between framesstatic Vector2Get mouse position XYstatic Vector2getMousePosition(Arena arena) Get mouse position XYstatic RaygetMouseRay(Vector2 mousePosition, Camera3D camera) Get a ray trace from mouse positionstatic RaygetMouseRay(Arena arena, Vector2 mousePosition, Camera3D camera) Get a ray trace from mouse positionstatic floatGet mouse wheel movement for X or Y, whichever is largerstatic Vector2Get mouse wheel movement for both X and Ystatic Vector2getMouseWheelMoveV(Arena arena) Get mouse wheel movement for both X and Ystatic intGet mouse position Xstatic intGet mouse position Ystatic floatgetMusicTimeLength(Music music) Get music time length (in seconds)static floatgetMusicTimePlayed(Music music) Get current music time played (in seconds)static ColorgetPixelColor(Arena arena, MemorySegment srcPtr, int format) Get Color from a source pixel pointer of certain formatstatic ColorgetPixelColor(MemorySegment srcPtr, int format) Get Color from a source pixel pointer of certain formatstatic intgetPixelDataSize(int width, int height, int format) Get pixel data size in bytes for certain formatstatic StringgetPrevDirectoryPath(String dirPath) Get previous directory path for a given path (uses static string)static intgetRandomValue(int min, int max) Get a random value between min and max (both included)static RayCollisiongetRayCollisionBox(Ray ray, BoundingBox box) Get collision info between ray and boxstatic RayCollisiongetRayCollisionBox(Arena arena, Ray ray, BoundingBox box) Get collision info between ray and boxstatic RayCollisiongetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) Get collision info between ray and meshstatic RayCollisiongetRayCollisionMesh(Arena arena, Ray ray, Mesh mesh, Matrix transform) Get collision info between ray and meshstatic RayCollisionGet collision info between ray and quadstatic RayCollisionGet collision info between ray and quadstatic RayCollisiongetRayCollisionSphere(Ray ray, Vector3 center, float radius) Get collision info between ray and spherestatic RayCollisiongetRayCollisionSphere(Arena arena, Ray ray, Vector3 center, float radius) Get collision info between ray and spherestatic RayCollisiongetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) Get collision info between ray and trianglestatic RayCollisionGet collision info between ray and trianglestatic intGet current render height (it considers HiDPI)static intGet current render width (it considers HiDPI)static intGet current screen heightstatic Vector2getScreenToWorld2D(Vector2 position, Camera2D camera) Get the world space position for a 2d camera screen space positionstatic Vector2getScreenToWorld2D(Arena arena, Vector2 position, Camera2D camera) Get the world space position for a 2d camera screen space positionstatic intGet current screen widthstatic intgetShaderLocation(Shader shader, String uniformName) Get shader uniform locationstatic intgetShaderLocationAttrib(Shader shader, String attribName) Get shader attribute locationstatic Vector2getSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: B-Splinestatic Vector2Get (evaluate) spline point: B-Splinestatic Vector2getSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) Get (evaluate) spline point: Cubic Bezierstatic Vector2Get (evaluate) spline point: Cubic Bezierstatic Vector2getSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) Get (evaluate) spline point: Quadratic Bezierstatic Vector2getSplinePointBezierQuad(Arena arena, Vector2 p1, Vector2 c2, Vector2 p3, float t) Get (evaluate) spline point: Quadratic Bezierstatic Vector2getSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) Get (evaluate) spline point: Catmull-Romstatic Vector2Get (evaluate) spline point: Catmull-Romstatic Vector2getSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) Get (evaluate) spline point: Linearstatic Vector2getSplinePointLinear(Arena arena, Vector2 startPos, Vector2 endPos, float t) Get (evaluate) spline point: Linearstatic doublegetTime()Get elapsed time in seconds since InitWindow()static intGet number of touch pointsstatic intgetTouchPointId(int index) Get touch point identifier for given indexstatic Vector2getTouchPosition(int index) Get touch position XY for a touch point index (relative to screen size)static Vector2getTouchPosition(Arena arena, int index) Get touch position XY for a touch point index (relative to screen size)static intGet touch position X for touch point 0 (relative to screen size)static intGet touch position Y for touch point 0 (relative to screen size)static MemorySegmentGet native window handlestatic Vector2Get window position XY on monitorstatic Vector2getWindowPosition(Arena arena) Get window position XY on monitorstatic Vector2Get window scale DPI factorstatic Vector2getWindowScaleDPI(Arena arena) Get window scale DPI factorstatic StringGet current working directory (uses static string)static Vector2getWorldToScreen(Vector3 position, Camera3D camera) Get the screen space position for a 3d world space positionstatic Vector2getWorldToScreen(Arena arena, Vector3 position, Camera3D camera) Get the screen space position for a 3d world space positionstatic Vector2getWorldToScreen2D(Vector2 position, Camera2D camera) Get the screen space position for a 2d camera world space positionstatic Vector2getWorldToScreen2D(Arena arena, Vector2 position, Camera2D camera) Get the screen space position for a 2d camera world space positionstatic Vector2getWorldToScreenEx(Vector3 position, Camera3D camera, int width, int height) Get size position for a 3d world space positionstatic Vector2getWorldToScreenEx(Arena arena, Vector3 position, Camera3D camera, int width, int height) Get size position for a 3d world space positionstatic voidHides cursorstatic voidimageAlphaClear(Image image, Color color, float threshold) Clear alpha channel to desired colorstatic voidimageAlphaCrop(Image image, float threshold) Crop image depending on alpha valuestatic voidimageAlphaMask(Image image, Image alphaMask) Apply alpha mask to imagestatic voidimageAlphaPremultiply(Image image) Premultiply alpha channelstatic voidimageBlurGaussian(Image image, int blurSize) Apply Gaussian blur using a box blur approximationstatic voidimageClearBackground(Image dst, Color color) Clear image background with given colorstatic voidimageColorBrightness(Image image, int brightness) Modify image color: brightness (-255 to 255)static voidimageColorContrast(Image image, float contrast) Modify image color: contrast (-100 to 100)static voidimageColorGrayscale(Image image) Modify image color: grayscalestatic voidimageColorInvert(Image image) Modify image color: invertstatic voidimageColorReplace(Image image, Color color, Color replace) Modify image color: replace colorstatic voidimageColorTint(Image image, Color color) Modify image color: tintstatic ImageCreate an image duplicate (useful for transformations)static ImageCreate an image duplicate (useful for transformations)static voidCrop an image to a defined rectanglestatic voidimageDither(Image image, int rBpp, int gBpp, int bBpp, int aBpp) Dither image data to 16bpp or lower (Floyd-Steinberg dithering)static voidDraw a source image within a destination image (tint applied to source)static voidimageDrawCircle(Image dst, int centerX, int centerY, int radius, Color color) Draw a filled circle within an imagestatic voidimageDrawCircleLines(Image dst, int centerX, int centerY, int radius, Color color) Draw circle outline within an imagestatic voidimageDrawCircleLinesV(Image dst, Vector2 center, int radius, Color color) Draw circle outline within an image (Vector version)static voidimageDrawCircleV(Image dst, Vector2 center, int radius, Color color) Draw a filled circle within an image (Vector version)static voidimageDrawLine(Image dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) Draw line within an imagestatic voidimageDrawLineV(Image dst, Vector2 start, Vector2 end, Color color) Draw line within an image (Vector version)static voidimageDrawPixel(Image dst, int posX, int posY, Color color) Draw pixel within an imagestatic voidimageDrawPixelV(Image dst, Vector2 position, Color color) Draw pixel within an image (Vector version)static voidimageDrawRectangle(Image dst, int posX, int posY, int width, int height, Color color) Draw rectangle within an imagestatic voidimageDrawRectangleLines(Image dst, Rectangle rec, int thick, Color color) Draw rectangle lines within an imagestatic voidimageDrawRectangleRec(Image dst, Rectangle rec, Color color) Draw rectangle within an imagestatic voidimageDrawRectangleV(Image dst, Vector2 position, Vector2 size, Color color) Draw rectangle within an image (Vector version)static voidimageDrawText(Image dst, String text, int posX, int posY, int fontSize, Color color) Draw text (using default font) within an image (destination)static voidimageDrawTextEx(Image dst, Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text (custom sprite font) within an image (destination)static voidimageFlipHorizontal(Image image) Flip image horizontallystatic voidimageFlipVertical(Image image) Flip image verticallystatic voidimageFormat(Image image, int newFormat) Convert image data to desired formatstatic ImageimageFromImage(Image image, Rectangle rec) Create an image from another image piecestatic ImageimageFromImage(Arena arena, Image image, Rectangle rec) Create an image from another image piecestatic voidimageMipmaps(Image image) Compute all mipmap levels for a provided imagestatic voidimageResize(Image image, int newWidth, int newHeight) Resize image (Bicubic scaling algorithm)static voidimageResizeCanvas(Image image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) Resize canvas and fill with colorstatic voidimageResizeNN(Image image, int newWidth, int newHeight) Resize image (Nearest-Neighbor scaling algorithm)static voidimageRotate(Image image, int degrees) Rotate image by input angle in degrees (-359 to 359)static voidimageRotateCCW(Image image) Rotate image counter-clockwise 90degstatic voidimageRotateCW(Image image) Rotate image clockwise 90degstatic ImageCreate an image from text (default font)static ImageCreate an image from text (default font)static ImageimageTextEx(Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static ImageimageTextEx(Arena arena, Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static voidimageToPOT(Image image, Color fill) Convert image to POT (power-of-two)static voidInitialize audio device and contextstatic voidinitWindow(int width, int height, String title) Initialize window and OpenGL contextstatic booleanCheck if audio device has been initialized successfullystatic booleanisAudioStreamPlaying(AudioStream stream) Check if audio stream is playingstatic booleanisAudioStreamProcessed(AudioStream stream) Check if any audio stream buffers requires refillstatic booleanisAudioStreamReady(AudioStream stream) Checks if an audio stream is readystatic booleanCheck if cursor is not visiblestatic booleanCheck if cursor is on the screenstatic booleanCheck if a file has been dropped into windowstatic booleanisFileExtension(String fileName, String ext) Check file extension (including point: .png, .wav)static booleanisFontReady(Font font) Check if a font is readystatic booleanisGamepadAvailable(int gamepad) Check if a gamepad is availablestatic booleanisGamepadButtonDown(int gamepad, int button) Check if a gamepad button is being pressedstatic booleanisGamepadButtonPressed(int gamepad, int button) Check if a gamepad button has been pressed oncestatic booleanisGamepadButtonReleased(int gamepad, int button) Check if a gamepad button has been released oncestatic booleanisGamepadButtonUp(int gamepad, int button) Check if a gamepad button is NOT being pressedstatic booleanisGestureDetected(int gesture) Check if a gesture have been detectedstatic booleanisImageReady(Image image) Check if an image is readystatic booleanisKeyDown(int key) Check if a key is being pressedstatic booleanisKeyPressed(int key) Check if a key has been pressed oncestatic booleanisKeyPressedRepeat(int key) Check if a key has been pressed again (Only PLATFORM_DESKTOP)static booleanisKeyReleased(int key) Check if a key has been released oncestatic booleanisKeyUp(int key) Check if a key is NOT being pressedstatic booleanisMaterialReady(Material material) Check if a material is readystatic booleanisModelAnimationValid(Model model, ModelAnimation anim) Check model animation skeleton matchstatic booleanisModelReady(Model model) Check if a model is readystatic booleanisMouseButtonDown(int button) Check if a mouse button is being pressedstatic booleanisMouseButtonPressed(int button) Check if a mouse button has been pressed oncestatic booleanisMouseButtonReleased(int button) Check if a mouse button has been released oncestatic booleanisMouseButtonUp(int button) Check if a mouse button is NOT being pressedstatic booleanisMusicReady(Music music) Checks if a music stream is readystatic booleanisMusicStreamPlaying(Music music) Check if music is playingstatic booleanisPathFile(String path) Check if a given path is a file or a directorystatic booleanisRenderTextureReady(RenderTexture target) Check if a render texture is readystatic booleanisShaderReady(Shader shader) Check if a shader is readystatic booleanisSoundPlaying(Sound sound) Check if a sound is currently playingstatic booleanisSoundReady(Sound sound) Checks if a sound is readystatic booleanisTextureReady(Texture texture) Check if a texture is readystatic booleanisWaveReady(Wave wave) Checks if wave data is readystatic booleanCheck if window is currently focused (only PLATFORM_DESKTOP)static booleanCheck if window is currently fullscreenstatic booleanCheck if window is currently hidden (only PLATFORM_DESKTOP)static booleanCheck if window is currently maximized (only PLATFORM_DESKTOP)static booleanCheck if window is currently minimized (only PLATFORM_DESKTOP)static booleanCheck if window has been initialized successfullystatic booleanCheck if window has been resized last framestatic booleanisWindowState(int flag) Check if one specific window flag is enabledstatic AudioStreamloadAudioStream(int sampleRate, int sampleSize, int channels) Load audio stream (to stream raw audio pcm data)static AudioStreamloadAudioStream(Arena arena, int sampleRate, int sampleSize, int channels) Load audio stream (to stream raw audio pcm data)static AutomationEventListloadAutomationEventList(Arena arena, String fileName) Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTSstatic AutomationEventListloadAutomationEventList(String fileName) Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTSstatic IntBufferloadCodepoints(String text, IntBuffer count) Load all codepoints from a UTF-8 text string, codepoints count returned by parameterstatic FilePathListloadDirectoryFiles(Arena arena, String dirPath) Load directory filepathsstatic FilePathListloadDirectoryFiles(String dirPath) Load directory filepathsstatic FilePathListloadDirectoryFilesEx(Arena arena, String basePath, String filter, boolean scanSubdirs) Load directory filepaths with extension filtering and recursive directory scanstatic FilePathListloadDirectoryFilesEx(String basePath, String filter, boolean scanSubdirs) Load directory filepaths with extension filtering and recursive directory scanstatic FilePathListLoad dropped filepathsstatic FilePathListloadDroppedFiles(Arena arena) Load dropped filepathsstatic ByteBufferloadFileData(String fileName, IntBuffer dataSize) Load file data as byte array (read)static ByteBufferloadFileText(String fileName) Load text data from file (read), returns a '\0' terminated stringstatic FontLoad font from file into GPU memory (VRAM)static FontLoad font from file into GPU memory (VRAM)static GlyphInfoloadFontData(ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount, int type) Load font data for further usestatic FontloadFontEx(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 FontloadFontEx(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 FontloadFontFromImage(Image image, Color key, int firstChar) Load font from Image (XNA style)static FontloadFontFromImage(Arena arena, Image image, Color key, int firstChar) Load font from Image (XNA style)static FontloadFontFromMemory(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 FontloadFontFromMemory(String fileType, ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount) Load font from memory buffer, fileType refers to extension: i.e.static ImageLoad image from file into CPU memory (RAM)static ImageLoad image from file into CPU memory (RAM)static ImageloadImageAnim(Arena arena, String fileName, IntBuffer frames) Load image sequence from file (frames appended to image.data)static ImageloadImageAnim(String fileName, IntBuffer frames) Load image sequence from file (frames appended to image.data)static ColorloadImageColors(Image image) Load color data from image as a Color array (RGBA - 32bit)static ImageloadImageFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load image from memory buffer, fileType refers to extension: i.e.static ImageloadImageFromMemory(String fileType, ByteBuffer fileData, int dataSize) Load image from memory buffer, fileType refers to extension: i.e.static ImageLoad image from screen buffer and (screenshot)static ImageloadImageFromScreen(Arena arena) Load image from screen buffer and (screenshot)static ImageloadImageFromTexture(Texture texture) Load image from GPU texture datastatic ImageloadImageFromTexture(Arena arena, Texture texture) Load image from GPU texture datastatic ColorloadImagePalette(Image image, int maxPaletteSize, IntBuffer colorCount) Load colors palette from image as a Color array (RGBA - 32bit)static ImageloadImageRaw(Arena arena, String fileName, int width, int height, int format, int headerSize) Load image from RAW file datastatic ImageloadImageRaw(String fileName, int width, int height, int format, int headerSize) Load image from RAW file datastatic ImageloadImageSvg(Arena arena, String fileNameOrString, int width, int height) Load image from SVG file data or string with specified sizestatic ImageloadImageSvg(String fileNameOrString, int width, int height) Load image from SVG file data or string with specified sizestatic MaterialLoad default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)static MaterialloadMaterialDefault(Arena arena) Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)static MaterialloadMaterials(String fileName, IntBuffer materialCount) Load materials from model filestatic ModelLoad model from files (meshes and materials)static ModelLoad model from files (meshes and materials)static ModelAnimationloadModelAnimations(String fileName, IntBuffer animCount) Load model animations from filestatic ModelloadModelFromMesh(Mesh mesh) Load model from generated mesh (default material)static ModelloadModelFromMesh(Arena arena, Mesh mesh) Load model from generated mesh (default material)static MusicloadMusicStream(Arena arena, String fileName) Load music stream from filestatic MusicloadMusicStream(String fileName) Load music stream from filestatic MusicloadMusicStreamFromMemory(Arena arena, String fileType, ByteBuffer data, int dataSize) Load music stream from datastatic MusicloadMusicStreamFromMemory(String fileType, ByteBuffer data, int dataSize) Load music stream from datastatic IntBufferloadRandomSequence(int count, int min, int max) Load random values sequence, no values repeatedstatic RenderTextureloadRenderTexture(int width, int height) Load texture for rendering (framebuffer)static RenderTextureloadRenderTexture(Arena arena, int width, int height) Load texture for rendering (framebuffer)static ShaderloadShader(Arena arena, String vsFileName, String fsFileName) Load shader from files and bind default locationsstatic ShaderloadShader(String vsFileName, String fsFileName) Load shader from files and bind default locationsstatic ShaderloadShaderFromMemory(Arena arena, String vsCode, String fsCode) Load shader from code strings and bind default locationsstatic ShaderloadShaderFromMemory(String vsCode, String fsCode) Load shader from code strings and bind default locationsstatic SoundLoad sound from filestatic SoundLoad sound from filestatic SoundloadSoundAlias(Sound source) Create a new sound that shares the same sample data as the source sound, does not own the sound datastatic SoundloadSoundAlias(Arena arena, Sound source) Create a new sound that shares the same sample data as the source sound, does not own the sound datastatic SoundloadSoundFromWave(Wave wave) Load sound from wave datastatic SoundloadSoundFromWave(Arena arena, Wave wave) Load sound from wave datastatic TextureloadTexture(Arena arena, String fileName) Load texture from file into GPU memory (VRAM)static TextureloadTexture(String fileName) Load texture from file into GPU memory (VRAM)static TextureloadTextureCubemap(Image image, int layout) Load cubemap from image, multiple image cubemap layouts supportedstatic TextureloadTextureCubemap(Arena arena, Image image, int layout) Load cubemap from image, multiple image cubemap layouts supportedstatic TextureloadTextureFromImage(Image image) Load texture from image datastatic TextureloadTextureFromImage(Arena arena, Image image) Load texture from image datastatic ByteBufferloadUTF8(MemorySegment codepoints, int length) Load UTF-8 text encoded from codepoints arraystatic VrStereoConfigloadVrStereoConfig(VrDeviceInfo device) Load VR stereo config for VR simulator device parametersstatic VrStereoConfigloadVrStereoConfig(Arena arena, VrDeviceInfo device) Load VR stereo config for VR simulator device parametersstatic WaveLoad wave data from filestatic WaveLoad wave data from filestatic WaveloadWaveFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e.static WaveloadWaveFromMemory(String fileType, ByteBuffer fileData, int dataSize) Load wave from memory buffer, fileType refers to extension: i.e.static FloatBufferloadWaveSamples(Wave wave) Load samples data from wave as a 32bit float data arraystatic voidSet window state: maximized, if resizable (only PLATFORM_DESKTOP)static intmeasureText(String text, int fontSize) Measure string width for default fontstatic Vector2measureTextEx(Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic Vector2measureTextEx(Arena arena, Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic MemorySegmentmemAlloc(int size) Internal memory allocatorstatic voidmemFree(MemorySegment ptr) Internal memory freestatic MemorySegmentmemRealloc(MemorySegment ptr, int size) Internal memory reallocatorstatic voidSet window state: minimized, if resizable (only PLATFORM_DESKTOP)static voidOpen URL with default system browser (if available)static voidpauseAudioStream(AudioStream stream) Pause audio streamstatic voidpauseMusicStream(Music music) Pause music playingstatic voidpauseSound(Sound sound) Pause a soundstatic voidplayAudioStream(AudioStream stream) Play audio streamstatic voidPlay a recorded automation eventstatic voidplayMusicStream(Music music) Start music playingstatic voidPlay a soundstatic voidRegister all input eventsstatic voidSet window state: not minimized/maximized (only PLATFORM_DESKTOP)static voidresumeAudioStream(AudioStream stream) Resume audio streamstatic voidresumeMusicStream(Music music) Resume playing paused musicstatic voidresumeSound(Sound sound) Resume a paused soundstatic booleansaveFileData(String fileName, MemorySegment data, int dataSize) Save data to file from byte array (write), returns true on successstatic booleansaveFileText(String fileName, ByteBuffer text) Save text data to file (write), string must be '\0' terminated, returns true on successstatic voidseekMusicStream(Music music, float position) Seek music to a position (in seconds)static voidsetAudioStreamBufferSizeDefault(int size) Default size for new audio streamsstatic voidsetAudioStreamCallback(AudioStream stream, MemorySegment callback) Audio thread callback to request new datastatic voidsetAudioStreamPan(AudioStream stream, float pan) Set pan for audio stream (0.5 is centered)static voidsetAudioStreamPitch(AudioStream stream, float pitch) Set pitch for audio stream (1.0 is base level)static voidsetAudioStreamVolume(AudioStream stream, float volume) Set volume for audio stream (1.0 is max level)static voidsetAutomationEventBaseFrame(int frame) Set automation event internal base frame to start recordingstatic voidSet automation event list to record tostatic voidsetClipboardText(String text) Set clipboard text contentstatic voidsetConfigFlags(int flags) Setup init configuration flags (view FLAGS)static voidsetExitKey(int key) Set a custom key to exit program (default is ESC)static intsetGamepadMappings(String mappings) Set internal gamepad mappings (SDL_GameControllerDB)static voidsetGesturesEnabled(int flags) Enable a set of gestures using flagsstatic voidsetLoadFileDataCallback(MemorySegment callback) Set custom file binary data loaderstatic voidsetLoadFileTextCallback(MemorySegment callback) Set custom file text data loaderstatic voidsetMasterVolume(float volume) Set master volume (listener)static voidsetMaterialTexture(Material material, int mapType, Texture texture) Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)static voidsetModelMeshMaterial(Model model, int meshId, int materialId) Set material for a meshstatic voidsetMouseCursor(int cursor) Set mouse cursorstatic voidsetMouseOffset(int offsetX, int offsetY) Set mouse offsetstatic voidsetMousePosition(int x, int y) Set mouse position XYstatic voidsetMouseScale(float scaleX, float scaleY) Set mouse scalingstatic voidsetMusicPan(Music music, float pan) Set pan for a music (0.5 is center)static voidsetMusicPitch(Music music, float pitch) Set pitch for a music (1.0 is base level)static voidsetMusicVolume(Music music, float volume) Set volume for music (1.0 is max level)static voidsetPixelColor(MemorySegment dstPtr, Color color, int format) Set color formatted into destination pixel pointerstatic voidsetRandomSeed(int seed) Set the seed for the random number generatorstatic voidsetSaveFileDataCallback(MemorySegment callback) Set custom file binary data saverstatic voidsetSaveFileTextCallback(MemorySegment callback) Set custom file text data saverstatic voidsetShaderValue(Shader shader, int locIndex, MemorySegment value, int uniformType) Set shader uniform valuestatic voidsetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) Set shader uniform value (matrix 4x4)static voidsetShaderValueTexture(Shader shader, int locIndex, Texture texture) Set shader uniform value for texture (sampler2d)static voidsetShaderValueV(Shader shader, int locIndex, MemorySegment value, int uniformType, int count) Set shader uniform value vectorstatic voidsetShapesTexture(Texture texture, Rectangle source) Set texture and rectangle to be used on shapes drawingstatic voidsetSoundPan(Sound sound, float pan) Set pan for a sound (0.5 is center)static voidsetSoundPitch(Sound sound, float pitch) Set pitch for a sound (1.0 is base level)static voidsetSoundVolume(Sound sound, float volume) Set volume for a sound (1.0 is max level)static voidsetTargetFPS(int fps) Set target FPS (maximum)static voidsetTextLineSpacing(int spacing) Set vertical line spacing when drawing with line-breaksstatic voidsetTextureFilter(Texture texture, int filter) Set texture scaling filter modestatic voidsetTextureWrap(Texture texture, int wrap) Set texture wrapping modestatic voidsetTraceLogCallback(MemorySegment callback) Set custom trace logstatic voidsetTraceLogLevel(int logLevel) Set the current threshold (minimum) log levelstatic voidSet window focused (only PLATFORM_DESKTOP)static voidsetWindowIcon(Image image) Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)static voidsetWindowIcons(Image images, int count) Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)static voidsetWindowMaxSize(int width, int height) Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)static voidsetWindowMinSize(int width, int height) Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)static voidsetWindowMonitor(int monitor) Set monitor for the current windowstatic voidsetWindowOpacity(float opacity) Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)static voidsetWindowPosition(int x, int y) Set window position on screen (only PLATFORM_DESKTOP)static voidsetWindowSize(int width, int height) Set window dimensionsstatic voidsetWindowState(int flags) Set window configuration state using flags (only PLATFORM_DESKTOP)static voidsetWindowTitle(String title) Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)static voidShows cursorstatic voidStart recording automation events (AutomationEventList must be set)static voidstopAudioStream(AudioStream stream) Stop audio streamstatic voidStop recording automation eventsstatic voidstopMusicStream(Music music) Stop music playingstatic voidStop playing a soundstatic voidSwap back buffer with front buffer (screen drawing)static voidtakeScreenshot(String fileName) Takes a screenshot of current screen (filename extension defines format)static voidtextAppend(ByteBuffer text, String append, IntBuffer position) Append text at specific position and move cursor!static inttextCopy(ByteBuffer dst, String src) Copy one string to another, returns bytes copiedstatic inttextFindIndex(String text, String find) Find first text occurrence within a stringstatic ByteBuffertextInsert(String text, String insert, int position) Insert text in a position (WARNING: memory must be freed!)static booleantextIsEqual(String text1, String text2) Check if two text string are equalstatic StringtextJoin(MemorySegment textList, int count, String delimiter) Join text strings with delimiterstatic inttextLength(String text) Get text length, checks for '\0' endingstatic ByteBuffertextReplace(ByteBuffer text, String replace, String by) Replace text string (WARNING: memory must be freed!)static MemorySegmentSplit text into multiple stringsstatic StringtextSubtext(String text, int position, int length) Get a piece of a text stringstatic inttextToInteger(String text) Get integer value from text (negative values not supported)static StringtextToLower(String text) Get lower case version of provided stringstatic StringtextToPascal(String text) Get Pascal case notation version of provided stringstatic StringtextToUpper(String text) Get upper case version of provided stringstatic voidToggle window state: borderless windowed (only PLATFORM_DESKTOP)static voidToggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)static voidunloadAudioStream(AudioStream stream) Unload audio stream and free memorystatic voidUnload automation events list from filestatic voidunloadCodepoints(IntBuffer codepoints) Unload codepoints data from memorystatic voidunloadDirectoryFiles(FilePathList files) Unload filepathsstatic voidunloadDroppedFiles(FilePathList files) Unload dropped filepathsstatic voidunloadFileData(ByteBuffer data) Unload file data allocated by LoadFileData()static voidunloadFileText(ByteBuffer text) Unload file text data allocated by LoadFileText()static voidunloadFont(Font font) Unload font from GPU memory (VRAM)static voidunloadFontData(GlyphInfo glyphs, int glyphCount) Unload font chars info data (RAM)static voidunloadImage(Image image) Unload image from CPU memory (RAM)static voidunloadImageColors(Color colors) Unload color data loaded with LoadImageColors()static voidunloadImagePalette(Color colors) Unload colors palette loaded with LoadImagePalette()static voidunloadMaterial(Material material) Unload material from GPU memory (VRAM)static voidunloadMesh(Mesh mesh) Unload mesh data from CPU and GPUstatic voidunloadModel(Model model) Unload model (including meshes) from memory (RAM and/or VRAM)static voidUnload animation datastatic voidunloadModelAnimations(ModelAnimation animations, int animCount) Unload animation array datastatic voidunloadMusicStream(Music music) Unload music streamstatic voidunloadRandomSequence(IntBuffer sequence) Unload random values sequencestatic voidunloadRenderTexture(RenderTexture target) Unload render texture from GPU memory (VRAM)static voidunloadShader(Shader shader) Unload shader from GPU memory (VRAM)static voidunloadSound(Sound sound) Unload soundstatic voidunloadSoundAlias(Sound alias) Unload a sound alias (does not deallocate sample data)static voidunloadTexture(Texture texture) Unload texture from GPU memory (VRAM)static voidunloadUTF8(ByteBuffer text) Unload UTF-8 text encoded from codepoints arraystatic voidunloadVrStereoConfig(VrStereoConfig config) Unload VR stereo configstatic voidunloadWave(Wave wave) Unload wave datastatic voidunloadWaveSamples(FloatBuffer samples) Unload samples data loaded with LoadWaveSamples()static voidupdateAudioStream(AudioStream stream, MemorySegment data, int frameCount) Update audio stream buffers with datastatic voidupdateCamera(Camera3D camera, int mode) Update camera position for selected modestatic voidupdateCameraPro(Camera3D camera, Vector3 movement, Vector3 rotation, float zoom) Update camera movement/rotationstatic voidupdateMeshBuffer(Mesh mesh, int index, MemorySegment data, int dataSize, int offset) Update mesh vertex data in GPU for a specific buffer indexstatic voidupdateModelAnimation(Model model, ModelAnimation anim, int frame) Update model animation posestatic voidupdateMusicStream(Music music) Updates buffers for music streamingstatic voidupdateSound(Sound sound, MemorySegment data, int sampleCount) Update sound buffer with new datastatic voidupdateTexture(Texture texture, MemorySegment pixels) Update GPU texture with new datastatic voidupdateTextureRec(Texture texture, Rectangle rec, MemorySegment pixels) Update GPU texture rectangle with new datastatic voiduploadMesh(Mesh mesh, boolean dynamic) Upload mesh vertex data in GPU and provide VAO/VBO idsstatic voidwaitTime(double seconds) Wait for some time (halt program execution)static WaveCopy a wave to a new wavestatic WaveCopy a wave to a new wavestatic voidCrop a wave to defined samples rangestatic voidwaveFormat(Wave wave, int sampleRate, int sampleSize, int channels) Convert wave data to desired formatstatic booleanCheck 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
-