Class Raylib

java.lang.Object
com.raylib.Raylib

public class Raylib extends Object
  • Field Details Link icon

    • LIGHTGRAY Link icon

      public static Color LIGHTGRAY
    • GRAY Link icon

      public static Color GRAY
    • DARKGRAY Link icon

      public static Color DARKGRAY
    • YELLOW Link icon

      public static Color YELLOW
    • GOLD Link icon

      public static Color GOLD
    • ORANGE Link icon

      public static Color ORANGE
    • PINK Link icon

      public static Color PINK
    • RED Link icon

      public static Color RED
    • MAROON Link icon

      public static Color MAROON
    • GREEN Link icon

      public static Color GREEN
    • LIME Link icon

      public static Color LIME
    • DARKGREEN Link icon

      public static Color DARKGREEN
    • SKYBLUE Link icon

      public static Color SKYBLUE
    • BLUE Link icon

      public static Color BLUE
    • DARKBLUE Link icon

      public static Color DARKBLUE
    • PURPLE Link icon

      public static Color PURPLE
    • VIOLET Link icon

      public static Color VIOLET
    • DARKPURPLE Link icon

      public static Color DARKPURPLE
    • BEIGE Link icon

      public static Color BEIGE
    • BROWN Link icon

      public static Color BROWN
    • DARKBROWN Link icon

      public static Color DARKBROWN
    • WHITE Link icon

      public static Color WHITE
    • BLACK Link icon

      public static Color BLACK
    • BLANK Link icon

      public static Color BLANK
    • MAGENTA Link icon

      public static Color MAGENTA
    • RAYWHITE Link icon

      public static Color RAYWHITE
  • Constructor Details Link icon

    • Raylib Link icon

      public Raylib()
  • Method Details Link icon

    • createIntBuffer Link icon

      public static IntBuffer createIntBuffer(int size)
      Any IntBuffers you create *MUST* be direct allocation and native order. Use this method to ensure that.
      Parameters:
      size -
      Returns:
    • createFloatBuffer Link icon

      public static FloatBuffer createFloatBuffer(int size)
      Any FloatBuffers you create *MUST* be direct allocation and native order. Use this method to ensure that.
      Parameters:
      size -
      Returns:
    • createByteBuffer Link icon

      public static ByteBuffer createByteBuffer(int size)
      Any ByteBuffers you create *MUST* be direct allocation and native order. Use this method to ensure that.
      Parameters:
      size -
      Returns:
    • initWindow Link icon

      public static void initWindow(int width, int height, String title)
      Initialize window and OpenGL context
    • closeWindow Link icon

      public static void closeWindow()
      Close window and unload OpenGL context
    • windowShouldClose Link icon

      public static boolean windowShouldClose()
      Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)
    • isWindowReady Link icon

      public static boolean isWindowReady()
      Check if window has been initialized successfully
    • isWindowFullscreen Link icon

      public static boolean isWindowFullscreen()
      Check if window is currently fullscreen
    • isWindowHidden Link icon

      public static boolean isWindowHidden()
      Check if window is currently hidden
    • isWindowMinimized Link icon

      public static boolean isWindowMinimized()
      Check if window is currently minimized
    • isWindowMaximized Link icon

      public static boolean isWindowMaximized()
      Check if window is currently maximized
    • isWindowFocused Link icon

      public static boolean isWindowFocused()
      Check if window is currently focused
    • isWindowResized Link icon

      public static boolean isWindowResized()
      Check if window has been resized last frame
    • isWindowState Link icon

      public static boolean isWindowState(int flag)
      Check if one specific window flag is enabled
    • setWindowState Link icon

      public static void setWindowState(int flags)
      Set window configuration state using flags
    • clearWindowState Link icon

      public static void clearWindowState(int flags)
      Clear window configuration state flags
    • toggleFullscreen Link icon

      public static void toggleFullscreen()
      Toggle window state: fullscreen/windowed, resizes monitor to match window resolution
    • toggleBorderlessWindowed Link icon

      public static void toggleBorderlessWindowed()
      Toggle window state: borderless windowed, resizes window to match monitor resolution
    • maximizeWindow Link icon

      public static void maximizeWindow()
      Set window state: maximized, if resizable
    • minimizeWindow Link icon

      public static void minimizeWindow()
      Set window state: minimized, if resizable
    • restoreWindow Link icon

      public static void restoreWindow()
      Set window state: not minimized/maximized
    • setWindowIcon Link icon

      public static void setWindowIcon(Image image)
      Set icon for window (single image, RGBA 32bit)
    • setWindowIcons Link icon

      public static void setWindowIcons(Image images, int count)
      Set icon for window (multiple images, RGBA 32bit)
    • setWindowTitle Link icon

      public static void setWindowTitle(String title)
      Set title for window
    • setWindowPosition Link icon

      public static void setWindowPosition(int x, int y)
      Set window position on screen
    • setWindowMonitor Link icon

      public static void setWindowMonitor(int monitor)
      Set monitor for the current window
    • setWindowMinSize Link icon

      public static void setWindowMinSize(int width, int height)
      Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)
    • setWindowMaxSize Link icon

      public static void setWindowMaxSize(int width, int height)
      Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)
    • setWindowSize Link icon

      public static void setWindowSize(int width, int height)
      Set window dimensions
    • setWindowOpacity Link icon

      public static void setWindowOpacity(float opacity)
      Set window opacity [0.0f..1.0f]
    • setWindowFocused Link icon

      public static void setWindowFocused()
      Set window focused
    • getWindowHandle Link icon

      public static MemorySegment getWindowHandle()
      Get native window handle
    • getScreenWidth Link icon

      public static int getScreenWidth()
      Get current screen width
    • getScreenHeight Link icon

      public static int getScreenHeight()
      Get current screen height
    • getRenderWidth Link icon

      public static int getRenderWidth()
      Get current render width (it considers HiDPI)
    • getRenderHeight Link icon

      public static int getRenderHeight()
      Get current render height (it considers HiDPI)
    • getMonitorCount Link icon

      public static int getMonitorCount()
      Get number of connected monitors
    • getCurrentMonitor Link icon

      public static int getCurrentMonitor()
      Get current monitor where window is placed
    • getMonitorPosition Link icon

      public static Vector2 getMonitorPosition(int monitor)
      Get specified monitor position
    • getMonitorPosition Link icon

      public static Vector2 getMonitorPosition(Arena arena, int monitor)
      Get specified monitor position
    • getMonitorWidth Link icon

      public static int getMonitorWidth(int monitor)
      Get specified monitor width (current video mode used by monitor)
    • getMonitorHeight Link icon

      public static int getMonitorHeight(int monitor)
      Get specified monitor height (current video mode used by monitor)
    • getMonitorPhysicalWidth Link icon

      public static int getMonitorPhysicalWidth(int monitor)
      Get specified monitor physical width in millimetres
    • getMonitorPhysicalHeight Link icon

      public static int getMonitorPhysicalHeight(int monitor)
      Get specified monitor physical height in millimetres
    • getMonitorRefreshRate Link icon

      public static int getMonitorRefreshRate(int monitor)
      Get specified monitor refresh rate
    • getWindowPosition Link icon

      public static Vector2 getWindowPosition()
      Get window position XY on monitor
    • getWindowPosition Link icon

      public static Vector2 getWindowPosition(Arena arena)
      Get window position XY on monitor
    • getWindowScaleDPI Link icon

      public static Vector2 getWindowScaleDPI()
      Get window scale DPI factor
    • getWindowScaleDPI Link icon

      public static Vector2 getWindowScaleDPI(Arena arena)
      Get window scale DPI factor
    • getMonitorName Link icon

      public static String getMonitorName(int monitor)
      Get the human-readable, UTF-8 encoded name of the specified monitor
    • setClipboardText Link icon

      public static void setClipboardText(String text)
      Set clipboard text content
    • getClipboardText Link icon

      public static String getClipboardText()
      Get clipboard text content
    • getClipboardImage Link icon

      public static Image getClipboardImage()
      Get clipboard image content
    • getClipboardImage Link icon

      public static Image getClipboardImage(Arena arena)
      Get clipboard image content
    • enableEventWaiting Link icon

      public static void enableEventWaiting()
      Enable waiting for events on EndDrawing(), no automatic event polling
    • disableEventWaiting Link icon

      public static void disableEventWaiting()
      Disable waiting for events on EndDrawing(), automatic events polling
    • showCursor Link icon

      public static void showCursor()
      Shows cursor
    • hideCursor Link icon

      public static void hideCursor()
      Hides cursor
    • isCursorHidden Link icon

      public static boolean isCursorHidden()
      Check if cursor is not visible
    • enableCursor Link icon

      public static void enableCursor()
      Enables cursor (unlock cursor)
    • disableCursor Link icon

      public static void disableCursor()
      Disables cursor (lock cursor)
    • isCursorOnScreen Link icon

      public static boolean isCursorOnScreen()
      Check if cursor is on the screen
    • clearBackground Link icon

      public static void clearBackground(Color color)
      Set background color (framebuffer clear color)
    • beginDrawing Link icon

      public static void beginDrawing()
      Setup canvas (framebuffer) to start drawing
    • endDrawing Link icon

      public static void endDrawing()
      End canvas drawing and swap buffers (double buffering)
    • beginMode2D Link icon

      public static void beginMode2D(Camera2D camera)
      Begin 2D mode with custom camera (2D)
    • endMode2D Link icon

      public static void endMode2D()
      Ends 2D mode with custom camera
    • beginMode3D Link icon

      public static void beginMode3D(Camera3D camera)
      Begin 3D mode with custom camera (3D)
    • endMode3D Link icon

      public static void endMode3D()
      Ends 3D mode and returns to default 2D orthographic mode
    • beginTextureMode Link icon

      public static void beginTextureMode(RenderTexture target)
      Begin drawing to render texture
    • endTextureMode Link icon

      public static void endTextureMode()
      Ends drawing to render texture
    • beginShaderMode Link icon

      public static void beginShaderMode(Shader shader)
      Begin custom shader drawing
    • endShaderMode Link icon

      public static void endShaderMode()
      End custom shader drawing (use default shader)
    • beginBlendMode Link icon

      public static void beginBlendMode(int mode)
      Begin blending mode (alpha, additive, multiplied, subtract, custom)
    • endBlendMode Link icon

      public static void endBlendMode()
      End blending mode (reset to default: alpha blending)
    • beginScissorMode Link icon

      public static void beginScissorMode(int x, int y, int width, int height)
      Begin scissor mode (define screen area for following drawing)
    • endScissorMode Link icon

      public static void endScissorMode()
      End scissor mode
    • beginVrStereoMode Link icon

      public static void beginVrStereoMode(VrStereoConfig config)
      Begin stereo rendering (requires VR simulator)
    • endVrStereoMode Link icon

      public static void endVrStereoMode()
      End stereo rendering (requires VR simulator)
    • loadVrStereoConfig Link icon

      public static VrStereoConfig loadVrStereoConfig(VrDeviceInfo device)
      Load VR stereo config for VR simulator device parameters
    • loadVrStereoConfig Link icon

      public static VrStereoConfig loadVrStereoConfig(Arena arena, VrDeviceInfo device)
      Load VR stereo config for VR simulator device parameters
    • unloadVrStereoConfig Link icon

      public static void unloadVrStereoConfig(VrStereoConfig config)
      Unload VR stereo config
    • loadShader Link icon

      public static Shader loadShader(String vsFileName, String fsFileName)
      Load shader from files and bind default locations
    • loadShader Link icon

      public static Shader loadShader(Arena arena, String vsFileName, String fsFileName)
      Load shader from files and bind default locations
    • loadShaderFromMemory Link icon

      public static Shader loadShaderFromMemory(String vsCode, String fsCode)
      Load shader from code strings and bind default locations
    • loadShaderFromMemory Link icon

      public static Shader loadShaderFromMemory(Arena arena, String vsCode, String fsCode)
      Load shader from code strings and bind default locations
    • isShaderValid Link icon

      public static boolean isShaderValid(Shader shader)
      Check if a shader is valid (loaded on GPU)
    • getShaderLocation Link icon

      public static int getShaderLocation(Shader shader, String uniformName)
      Get shader uniform location
    • getShaderLocationAttrib Link icon

      public static int getShaderLocationAttrib(Shader shader, String attribName)
      Get shader attribute location
    • setShaderValue Link icon

      public static void setShaderValue(Shader shader, int locIndex, MemorySegment value, int uniformType)
      Set shader uniform value
    • setShaderValueV Link icon

      public static void setShaderValueV(Shader shader, int locIndex, MemorySegment value, int uniformType, int count)
      Set shader uniform value vector
    • setShaderValueMatrix Link icon

      public static void setShaderValueMatrix(Shader shader, int locIndex, Matrix mat)
      Set shader uniform value (matrix 4x4)
    • setShaderValueTexture Link icon

      public static void setShaderValueTexture(Shader shader, int locIndex, Texture texture)
      Set shader uniform value for texture (sampler2d)
    • unloadShader Link icon

      public static void unloadShader(Shader shader)
      Unload shader from GPU memory (VRAM)
    • getScreenToWorldRay Link icon

      public static Ray getScreenToWorldRay(Vector2 position, Camera3D camera)
      Get a ray trace from screen position (i.e mouse)
    • getScreenToWorldRay Link icon

      public static Ray getScreenToWorldRay(Arena arena, Vector2 position, Camera3D camera)
      Get a ray trace from screen position (i.e mouse)
    • getScreenToWorldRayEx Link icon

      public static Ray getScreenToWorldRayEx(Vector2 position, Camera3D camera, int width, int height)
      Get a ray trace from screen position (i.e mouse) in a viewport
    • getScreenToWorldRayEx Link icon

      public static Ray getScreenToWorldRayEx(Arena arena, Vector2 position, Camera3D camera, int width, int height)
      Get a ray trace from screen position (i.e mouse) in a viewport
    • getWorldToScreen Link icon

      public static Vector2 getWorldToScreen(Vector3 position, Camera3D camera)
      Get the screen space position for a 3d world space position
    • getWorldToScreen Link icon

      public static Vector2 getWorldToScreen(Arena arena, Vector3 position, Camera3D camera)
      Get the screen space position for a 3d world space position
    • getWorldToScreenEx Link icon

      public static Vector2 getWorldToScreenEx(Vector3 position, Camera3D camera, int width, int height)
      Get size position for a 3d world space position
    • getWorldToScreenEx Link icon

      public static Vector2 getWorldToScreenEx(Arena arena, Vector3 position, Camera3D camera, int width, int height)
      Get size position for a 3d world space position
    • getWorldToScreen2D Link icon

      public static Vector2 getWorldToScreen2D(Vector2 position, Camera2D camera)
      Get the screen space position for a 2d camera world space position
    • getWorldToScreen2D Link icon

      public static Vector2 getWorldToScreen2D(Arena arena, Vector2 position, Camera2D camera)
      Get the screen space position for a 2d camera world space position
    • getScreenToWorld2D Link icon

      public static Vector2 getScreenToWorld2D(Vector2 position, Camera2D camera)
      Get the world space position for a 2d camera screen space position
    • getScreenToWorld2D Link icon

      public static Vector2 getScreenToWorld2D(Arena arena, Vector2 position, Camera2D camera)
      Get the world space position for a 2d camera screen space position
    • getCameraMatrix Link icon

      public static Matrix getCameraMatrix(Camera3D camera)
      Get camera transform matrix (view matrix)
    • getCameraMatrix Link icon

      public static Matrix getCameraMatrix(Arena arena, Camera3D camera)
      Get camera transform matrix (view matrix)
    • getCameraMatrix2D Link icon

      public static Matrix getCameraMatrix2D(Camera2D camera)
      Get camera 2d transform matrix
    • getCameraMatrix2D Link icon

      public static Matrix getCameraMatrix2D(Arena arena, Camera2D camera)
      Get camera 2d transform matrix
    • setTargetFPS Link icon

      public static void setTargetFPS(int fps)
      Set target FPS (maximum)
    • getFrameTime Link icon

      public static float getFrameTime()
      Get time in seconds for last frame drawn (delta time)
    • getTime Link icon

      public static double getTime()
      Get elapsed time in seconds since InitWindow()
    • getFPS Link icon

      public static int getFPS()
      Get current FPS
    • swapScreenBuffer Link icon

      public static void swapScreenBuffer()
      Swap back buffer with front buffer (screen drawing)
    • pollInputEvents Link icon

      public static void pollInputEvents()
      Register all input events
    • waitTime Link icon

      public static void waitTime(double seconds)
      Wait for some time (halt program execution)
    • setRandomSeed Link icon

      public static void setRandomSeed(int seed)
      Set the seed for the random number generator
    • getRandomValue Link icon

      public static int getRandomValue(int min, int max)
      Get a random value between min and max (both included)
    • loadRandomSequence Link icon

      public static IntBuffer loadRandomSequence(int count, int min, int max)
      Load random values sequence, no values repeated
    • unloadRandomSequence Link icon

      public static void unloadRandomSequence(IntBuffer sequence)
      Unload random values sequence
    • takeScreenshot Link icon

      public static void takeScreenshot(String fileName)
      Takes a screenshot of current screen (filename extension defines format)
    • setConfigFlags Link icon

      public static void setConfigFlags(int flags)
      Setup init configuration flags (view FLAGS)
    • openURL Link icon

      public static void openURL(String url)
      Open URL with default system browser (if available)
    • setTraceLogLevel Link icon

      public static void setTraceLogLevel(int logLevel)
      Set the current threshold (minimum) log level
    • memAlloc Link icon

      public static MemorySegment memAlloc(int size)
      Internal memory allocator
    • memRealloc Link icon

      public static MemorySegment memRealloc(MemorySegment ptr, int size)
      Internal memory reallocator
    • memFree Link icon

      public static void memFree(MemorySegment ptr)
      Internal memory free
    • setTraceLogCallback Link icon

      public static void setTraceLogCallback(MemorySegment callback)
      Set custom trace log
    • setLoadFileDataCallback Link icon

      public static void setLoadFileDataCallback(MemorySegment callback)
      Set custom file binary data loader
    • setSaveFileDataCallback Link icon

      public static void setSaveFileDataCallback(MemorySegment callback)
      Set custom file binary data saver
    • setLoadFileTextCallback Link icon

      public static void setLoadFileTextCallback(MemorySegment callback)
      Set custom file text data loader
    • setSaveFileTextCallback Link icon

      public static void setSaveFileTextCallback(MemorySegment callback)
      Set custom file text data saver
    • loadFileData Link icon

      public static ByteBuffer loadFileData(String fileName, IntBuffer dataSize)
      Load file data as byte array (read)
    • unloadFileData Link icon

      public static void unloadFileData(ByteBuffer data)
      Unload file data allocated by LoadFileData()
    • saveFileData Link icon

      public static boolean saveFileData(String fileName, MemorySegment data, int dataSize)
      Save data to file from byte array (write), returns true on success
    • exportDataAsCode Link icon

      public static boolean exportDataAsCode(ByteBuffer data, int dataSize, String fileName)
      Export data to code (.h), returns true on success
    • loadFileText Link icon

      public static ByteBuffer loadFileText(String fileName)
      Load text data from file (read), returns a '\0' terminated string
    • unloadFileText Link icon

      public static void unloadFileText(ByteBuffer text)
      Unload file text data allocated by LoadFileText()
    • saveFileText Link icon

      public static boolean saveFileText(String fileName, ByteBuffer text)
      Save text data to file (write), string must be '\0' terminated, returns true on success
    • fileExists Link icon

      public static boolean fileExists(String fileName)
      Check if file exists
    • directoryExists Link icon

      public static boolean directoryExists(String dirPath)
      Check if a directory path exists
    • isFileExtension Link icon

      public static boolean isFileExtension(String fileName, String ext)
      Check file extension (including point: .png, .wav)
    • getFileLength Link icon

      public static int getFileLength(String fileName)
      Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)
    • getFileExtension Link icon

      public static String getFileExtension(String fileName)
      Get pointer to extension for a filename string (includes dot: '.png')
    • getFileName Link icon

      public static String getFileName(String filePath)
      Get pointer to filename for a path string
    • getFileNameWithoutExt Link icon

      public static String getFileNameWithoutExt(String filePath)
      Get filename string without extension (uses static string)
    • getDirectoryPath Link icon

      public static String getDirectoryPath(String filePath)
      Get full path for a given fileName with path (uses static string)
    • getPrevDirectoryPath Link icon

      public static String getPrevDirectoryPath(String dirPath)
      Get previous directory path for a given path (uses static string)
    • getWorkingDirectory Link icon

      public static String getWorkingDirectory()
      Get current working directory (uses static string)
    • getApplicationDirectory Link icon

      public static String getApplicationDirectory()
      Get the directory of the running application (uses static string)
    • makeDirectory Link icon

      public static int makeDirectory(String dirPath)
      Create directories (including full path requested), returns 0 on success
    • changeDirectory Link icon

      public static boolean changeDirectory(String dir)
      Change working directory, return true on success
    • isPathFile Link icon

      public static boolean isPathFile(String path)
      Check if a given path is a file or a directory
    • isFileNameValid Link icon

      public static boolean isFileNameValid(String fileName)
      Check if fileName is valid for the platform/OS
    • loadDirectoryFiles Link icon

      public static FilePathList loadDirectoryFiles(String dirPath)
      Load directory filepaths
    • loadDirectoryFiles Link icon

      public static FilePathList loadDirectoryFiles(Arena arena, String dirPath)
      Load directory filepaths
    • loadDirectoryFilesEx Link icon

      public static FilePathList loadDirectoryFilesEx(String basePath, String filter, boolean scanSubdirs)
      Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
    • loadDirectoryFilesEx Link icon

      public static FilePathList loadDirectoryFilesEx(Arena arena, String basePath, String filter, boolean scanSubdirs)
      Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
    • unloadDirectoryFiles Link icon

      public static void unloadDirectoryFiles(FilePathList files)
      Unload filepaths
    • isFileDropped Link icon

      public static boolean isFileDropped()
      Check if a file has been dropped into window
    • loadDroppedFiles Link icon

      public static FilePathList loadDroppedFiles()
      Load dropped filepaths
    • loadDroppedFiles Link icon

      public static FilePathList loadDroppedFiles(Arena arena)
      Load dropped filepaths
    • unloadDroppedFiles Link icon

      public static void unloadDroppedFiles(FilePathList files)
      Unload dropped filepaths
    • getFileModTime Link icon

      public static long getFileModTime(String fileName)
      Get file modification time (last write time)
    • compressData Link icon

      public static ByteBuffer compressData(ByteBuffer data, int dataSize, IntBuffer compDataSize)
      Compress data (DEFLATE algorithm), memory must be MemFree()
    • decompressData Link icon

      public static ByteBuffer decompressData(ByteBuffer compData, int compDataSize, IntBuffer dataSize)
      Decompress data (DEFLATE algorithm), memory must be MemFree()
    • encodeDataBase64 Link icon

      public static ByteBuffer encodeDataBase64(ByteBuffer data, int dataSize, IntBuffer outputSize)
      Encode data to Base64 string, memory must be MemFree()
    • decodeDataBase64 Link icon

      public static ByteBuffer decodeDataBase64(ByteBuffer data, IntBuffer outputSize)
      Decode Base64 string data, memory must be MemFree()
    • computeCRC32 Link icon

      public static int computeCRC32(ByteBuffer data, int dataSize)
      Compute CRC32 hash code
    • computeMD5 Link icon

      public static MemorySegment computeMD5(ByteBuffer data, int dataSize)
      Compute MD5 hash code, returns static int[4] (16 bytes)
    • computeSHA1 Link icon

      public static MemorySegment computeSHA1(ByteBuffer data, int dataSize)
      Compute SHA1 hash code, returns static int[5] (20 bytes)
    • loadAutomationEventList Link icon

      public static AutomationEventList loadAutomationEventList(String fileName)
      Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS
    • loadAutomationEventList Link icon

      public static AutomationEventList loadAutomationEventList(Arena arena, String fileName)
      Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS
    • unloadAutomationEventList Link icon

      public static void unloadAutomationEventList(AutomationEventList list)
      Unload automation events list from file
    • exportAutomationEventList Link icon

      public static boolean exportAutomationEventList(AutomationEventList list, String fileName)
      Export automation events list as text file
    • setAutomationEventList Link icon

      public static void setAutomationEventList(AutomationEventList list)
      Set automation event list to record to
    • setAutomationEventBaseFrame Link icon

      public static void setAutomationEventBaseFrame(int frame)
      Set automation event internal base frame to start recording
    • startAutomationEventRecording Link icon

      public static void startAutomationEventRecording()
      Start recording automation events (AutomationEventList must be set)
    • stopAutomationEventRecording Link icon

      public static void stopAutomationEventRecording()
      Stop recording automation events
    • playAutomationEvent Link icon

      public static void playAutomationEvent(AutomationEvent event)
      Play a recorded automation event
    • isKeyPressed Link icon

      public static boolean isKeyPressed(int key)
      Check if a key has been pressed once
    • isKeyPressedRepeat Link icon

      public static boolean isKeyPressedRepeat(int key)
      Check if a key has been pressed again
    • isKeyDown Link icon

      public static boolean isKeyDown(int key)
      Check if a key is being pressed
    • isKeyReleased Link icon

      public static boolean isKeyReleased(int key)
      Check if a key has been released once
    • isKeyUp Link icon

      public static boolean isKeyUp(int key)
      Check if a key is NOT being pressed
    • getKeyPressed Link icon

      public static int getKeyPressed()
      Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
    • getCharPressed Link icon

      public static int getCharPressed()
      Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
    • setExitKey Link icon

      public static void setExitKey(int key)
      Set a custom key to exit program (default is ESC)
    • isGamepadAvailable Link icon

      public static boolean isGamepadAvailable(int gamepad)
      Check if a gamepad is available
    • getGamepadName Link icon

      public static String getGamepadName(int gamepad)
      Get gamepad internal name id
    • isGamepadButtonPressed Link icon

      public static boolean isGamepadButtonPressed(int gamepad, int button)
      Check if a gamepad button has been pressed once
    • isGamepadButtonDown Link icon

      public static boolean isGamepadButtonDown(int gamepad, int button)
      Check if a gamepad button is being pressed
    • isGamepadButtonReleased Link icon

      public static boolean isGamepadButtonReleased(int gamepad, int button)
      Check if a gamepad button has been released once
    • isGamepadButtonUp Link icon

      public static boolean isGamepadButtonUp(int gamepad, int button)
      Check if a gamepad button is NOT being pressed
    • getGamepadButtonPressed Link icon

      public static int getGamepadButtonPressed()
      Get the last gamepad button pressed
    • getGamepadAxisCount Link icon

      public static int getGamepadAxisCount(int gamepad)
      Get gamepad axis count for a gamepad
    • getGamepadAxisMovement Link icon

      public static float getGamepadAxisMovement(int gamepad, int axis)
      Get axis movement value for a gamepad axis
    • setGamepadMappings Link icon

      public static int setGamepadMappings(String mappings)
      Set internal gamepad mappings (SDL_GameControllerDB)
    • setGamepadVibration Link icon

      public static void setGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration)
      Set gamepad vibration for both motors (duration in seconds)
    • isMouseButtonPressed Link icon

      public static boolean isMouseButtonPressed(int button)
      Check if a mouse button has been pressed once
    • isMouseButtonDown Link icon

      public static boolean isMouseButtonDown(int button)
      Check if a mouse button is being pressed
    • isMouseButtonReleased Link icon

      public static boolean isMouseButtonReleased(int button)
      Check if a mouse button has been released once
    • isMouseButtonUp Link icon

      public static boolean isMouseButtonUp(int button)
      Check if a mouse button is NOT being pressed
    • getMouseX Link icon

      public static int getMouseX()
      Get mouse position X
    • getMouseY Link icon

      public static int getMouseY()
      Get mouse position Y
    • getMousePosition Link icon

      public static Vector2 getMousePosition()
      Get mouse position XY
    • getMousePosition Link icon

      public static Vector2 getMousePosition(Arena arena)
      Get mouse position XY
    • getMouseDelta Link icon

      public static Vector2 getMouseDelta()
      Get mouse delta between frames
    • getMouseDelta Link icon

      public static Vector2 getMouseDelta(Arena arena)
      Get mouse delta between frames
    • setMousePosition Link icon

      public static void setMousePosition(int x, int y)
      Set mouse position XY
    • setMouseOffset Link icon

      public static void setMouseOffset(int offsetX, int offsetY)
      Set mouse offset
    • setMouseScale Link icon

      public static void setMouseScale(float scaleX, float scaleY)
      Set mouse scaling
    • getMouseWheelMove Link icon

      public static float getMouseWheelMove()
      Get mouse wheel movement for X or Y, whichever is larger
    • getMouseWheelMoveV Link icon

      public static Vector2 getMouseWheelMoveV()
      Get mouse wheel movement for both X and Y
    • getMouseWheelMoveV Link icon

      public static Vector2 getMouseWheelMoveV(Arena arena)
      Get mouse wheel movement for both X and Y
    • setMouseCursor Link icon

      public static void setMouseCursor(int cursor)
      Set mouse cursor
    • getTouchX Link icon

      public static int getTouchX()
      Get touch position X for touch point 0 (relative to screen size)
    • getTouchY Link icon

      public static int getTouchY()
      Get touch position Y for touch point 0 (relative to screen size)
    • getTouchPosition Link icon

      public static Vector2 getTouchPosition(int index)
      Get touch position XY for a touch point index (relative to screen size)
    • getTouchPosition Link icon

      public static Vector2 getTouchPosition(Arena arena, int index)
      Get touch position XY for a touch point index (relative to screen size)
    • getTouchPointId Link icon

      public static int getTouchPointId(int index)
      Get touch point identifier for given index
    • getTouchPointCount Link icon

      public static int getTouchPointCount()
      Get number of touch points
    • setGesturesEnabled Link icon

      public static void setGesturesEnabled(int flags)
      Enable a set of gestures using flags
    • isGestureDetected Link icon

      public static boolean isGestureDetected(int gesture)
      Check if a gesture have been detected
    • getGestureDetected Link icon

      public static int getGestureDetected()
      Get latest detected gesture
    • getGestureHoldDuration Link icon

      public static float getGestureHoldDuration()
      Get gesture hold time in seconds
    • getGestureDragVector Link icon

      public static Vector2 getGestureDragVector()
      Get gesture drag vector
    • getGestureDragVector Link icon

      public static Vector2 getGestureDragVector(Arena arena)
      Get gesture drag vector
    • getGestureDragAngle Link icon

      public static float getGestureDragAngle()
      Get gesture drag angle
    • getGesturePinchVector Link icon

      public static Vector2 getGesturePinchVector()
      Get gesture pinch delta
    • getGesturePinchVector Link icon

      public static Vector2 getGesturePinchVector(Arena arena)
      Get gesture pinch delta
    • getGesturePinchAngle Link icon

      public static float getGesturePinchAngle()
      Get gesture pinch angle
    • updateCamera Link icon

      public static void updateCamera(Camera3D camera, int mode)
      Update camera position for selected mode
    • updateCameraPro Link icon

      public static void updateCameraPro(Camera3D camera, Vector3 movement, Vector3 rotation, float zoom)
      Update camera movement/rotation
    • setShapesTexture Link icon

      public static void setShapesTexture(Texture texture, Rectangle source)
      Set texture and rectangle to be used on shapes drawing
    • getShapesTexture Link icon

      public static Texture getShapesTexture()
      Get texture that is used for shapes drawing
    • getShapesTexture Link icon

      public static Texture getShapesTexture(Arena arena)
      Get texture that is used for shapes drawing
    • getShapesTextureRectangle Link icon

      public static Rectangle getShapesTextureRectangle()
      Get texture source rectangle that is used for shapes drawing
    • getShapesTextureRectangle Link icon

      public static Rectangle getShapesTextureRectangle(Arena arena)
      Get texture source rectangle that is used for shapes drawing
    • drawPixel Link icon

      public static void drawPixel(int posX, int posY, Color color)
      Draw a pixel using geometry [Can be slow, use with care]
    • drawPixelV Link icon

      public static void drawPixelV(Vector2 position, Color color)
      Draw a pixel using geometry (Vector version) [Can be slow, use with care]
    • drawLine Link icon

      public static void drawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color)
      Draw a line
    • drawLineV Link icon

      public static void drawLineV(Vector2 startPos, Vector2 endPos, Color color)
      Draw a line (using gl lines)
    • drawLineEx Link icon

      public static void drawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color)
      Draw a line (using triangles/quads)
    • drawLineStrip Link icon

      public static void drawLineStrip(MemorySegment points, int pointCount, Color color)
      Draw lines sequence (using gl lines)
    • drawLineBezier Link icon

      public static void drawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color)
      Draw line segment cubic-bezier in-out interpolation
    • drawCircle Link icon

      public static void drawCircle(int centerX, int centerY, float radius, Color color)
      Draw a color-filled circle
    • drawCircleSector Link icon

      public static void drawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color)
      Draw a piece of a circle
    • drawCircleSectorLines Link icon

      public static void drawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color)
      Draw circle sector outline
    • drawCircleGradient Link icon

      public static void drawCircleGradient(int centerX, int centerY, float radius, Color inner, Color outer)
      Draw a gradient-filled circle
    • drawCircleV Link icon

      public static void drawCircleV(Vector2 center, float radius, Color color)
      Draw a color-filled circle (Vector version)
    • drawCircleLines Link icon

      public static void drawCircleLines(int centerX, int centerY, float radius, Color color)
      Draw circle outline
    • drawCircleLinesV Link icon

      public static void drawCircleLinesV(Vector2 center, float radius, Color color)
      Draw circle outline (Vector version)
    • drawEllipse Link icon

      public static void drawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color)
      Draw ellipse
    • drawEllipseLines Link icon

      public static void drawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color)
      Draw ellipse outline
    • drawRing Link icon

      public static void drawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color)
      Draw ring
    • drawRingLines Link icon

      public static void drawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color)
      Draw ring outline
    • drawRectangle Link icon

      public static void drawRectangle(int posX, int posY, int width, int height, Color color)
      Draw a color-filled rectangle
    • drawRectangleV Link icon

      public static void drawRectangleV(Vector2 position, Vector2 size, Color color)
      Draw a color-filled rectangle (Vector version)
    • drawRectangleRec Link icon

      public static void drawRectangleRec(Rectangle rec, Color color)
      Draw a color-filled rectangle
    • drawRectanglePro Link icon

      public static void drawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color)
      Draw a color-filled rectangle with pro parameters
    • drawRectangleGradientV Link icon

      public static void drawRectangleGradientV(int posX, int posY, int width, int height, Color top, Color bottom)
      Draw a vertical-gradient-filled rectangle
    • drawRectangleGradientH Link icon

      public static void drawRectangleGradientH(int posX, int posY, int width, int height, Color left, Color right)
      Draw a horizontal-gradient-filled rectangle
    • drawRectangleGradientEx Link icon

      public static void drawRectangleGradientEx(Rectangle rec, Color topLeft, Color bottomLeft, Color topRight, Color bottomRight)
      Draw a gradient-filled rectangle with custom vertex colors
    • drawRectangleLines Link icon

      public static void drawRectangleLines(int posX, int posY, int width, int height, Color color)
      Draw rectangle outline
    • drawRectangleLinesEx Link icon

      public static void drawRectangleLinesEx(Rectangle rec, float lineThick, Color color)
      Draw rectangle outline with extended parameters
    • drawRectangleRounded Link icon

      public static void drawRectangleRounded(Rectangle rec, float roundness, int segments, Color color)
      Draw rectangle with rounded edges
    • drawRectangleRoundedLines Link icon

      public static void drawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color)
      Draw rectangle lines with rounded edges
    • drawRectangleRoundedLinesEx Link icon

      public static void drawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color)
      Draw rectangle with rounded edges outline
    • drawTriangle Link icon

      public static void drawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color)
      Draw a color-filled triangle (vertex in counter-clockwise order!)
    • drawTriangleLines Link icon

      public static void drawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color)
      Draw triangle outline (vertex in counter-clockwise order!)
    • drawTriangleFan Link icon

      public static void drawTriangleFan(MemorySegment points, int pointCount, Color color)
      Draw a triangle fan defined by points (first vertex is the center)
    • drawTriangleStrip Link icon

      public static void drawTriangleStrip(MemorySegment points, int pointCount, Color color)
      Draw a triangle strip defined by points
    • drawPoly Link icon

      public static void drawPoly(Vector2 center, int sides, float radius, float rotation, Color color)
      Draw a regular polygon (Vector version)
    • drawPolyLines Link icon

      public static void drawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color)
      Draw a polygon outline of n sides
    • drawPolyLinesEx Link icon

      public static void drawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color)
      Draw a polygon outline of n sides with extended parameters
    • drawSplineLinear Link icon

      public static void drawSplineLinear(MemorySegment points, int pointCount, float thick, Color color)
      Draw spline: Linear, minimum 2 points
    • drawSplineBasis Link icon

      public static void drawSplineBasis(MemorySegment points, int pointCount, float thick, Color color)
      Draw spline: B-Spline, minimum 4 points
    • drawSplineCatmullRom Link icon

      public static void drawSplineCatmullRom(MemorySegment points, int pointCount, float thick, Color color)
      Draw spline: Catmull-Rom, minimum 4 points
    • drawSplineBezierQuadratic Link icon

      public static void drawSplineBezierQuadratic(MemorySegment points, int pointCount, float thick, Color color)
      Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]
    • drawSplineBezierCubic Link icon

      public static void drawSplineBezierCubic(MemorySegment points, int pointCount, float thick, Color color)
      Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]
    • drawSplineSegmentLinear Link icon

      public static void drawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color)
      Draw spline segment: Linear, 2 points
    • drawSplineSegmentBasis Link icon

      public static void drawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color)
      Draw spline segment: B-Spline, 4 points
    • drawSplineSegmentCatmullRom Link icon

      public static void drawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color)
      Draw spline segment: Catmull-Rom, 4 points
    • drawSplineSegmentBezierQuadratic Link icon

      public static void drawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color)
      Draw spline segment: Quadratic Bezier, 2 points, 1 control point
    • drawSplineSegmentBezierCubic Link icon

      public static void drawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color)
      Draw spline segment: Cubic Bezier, 2 points, 2 control points
    • getSplinePointLinear Link icon

      public static Vector2 getSplinePointLinear(Vector2 startPos, Vector2 endPos, float t)
      Get (evaluate) spline point: Linear
    • getSplinePointLinear Link icon

      public static Vector2 getSplinePointLinear(Arena arena, Vector2 startPos, Vector2 endPos, float t)
      Get (evaluate) spline point: Linear
    • getSplinePointBasis Link icon

      public static Vector2 getSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t)
      Get (evaluate) spline point: B-Spline
    • getSplinePointBasis Link icon

      public static Vector2 getSplinePointBasis(Arena arena, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t)
      Get (evaluate) spline point: B-Spline
    • getSplinePointCatmullRom Link icon

      public static Vector2 getSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t)
      Get (evaluate) spline point: Catmull-Rom
    • getSplinePointCatmullRom Link icon

      public static Vector2 getSplinePointCatmullRom(Arena arena, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t)
      Get (evaluate) spline point: Catmull-Rom
    • getSplinePointBezierQuad Link icon

      public static Vector2 getSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t)
      Get (evaluate) spline point: Quadratic Bezier
    • getSplinePointBezierQuad Link icon

      public static Vector2 getSplinePointBezierQuad(Arena arena, Vector2 p1, Vector2 c2, Vector2 p3, float t)
      Get (evaluate) spline point: Quadratic Bezier
    • getSplinePointBezierCubic Link icon

      public static Vector2 getSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t)
      Get (evaluate) spline point: Cubic Bezier
    • getSplinePointBezierCubic Link icon

      public static Vector2 getSplinePointBezierCubic(Arena arena, Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t)
      Get (evaluate) spline point: Cubic Bezier
    • checkCollisionRecs Link icon

      public static boolean checkCollisionRecs(Rectangle rec1, Rectangle rec2)
      Check collision between two rectangles
    • checkCollisionCircles Link icon

      public static boolean checkCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2)
      Check collision between two circles
    • checkCollisionCircleRec Link icon

      public static boolean checkCollisionCircleRec(Vector2 center, float radius, Rectangle rec)
      Check collision between circle and rectangle
    • checkCollisionCircleLine Link icon

      public static boolean checkCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2)
      Check if circle collides with a line created betweeen two points [p1] and [p2]
    • checkCollisionPointRec Link icon

      public static boolean checkCollisionPointRec(Vector2 point, Rectangle rec)
      Check if point is inside rectangle
    • checkCollisionPointCircle Link icon

      public static boolean checkCollisionPointCircle(Vector2 point, Vector2 center, float radius)
      Check if point is inside circle
    • checkCollisionPointTriangle Link icon

      public static boolean checkCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3)
      Check if point is inside a triangle
    • checkCollisionPointLine Link icon

      public static boolean checkCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold)
      Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
    • checkCollisionPointPoly Link icon

      public static boolean checkCollisionPointPoly(Vector2 point, MemorySegment points, int pointCount)
      Check if point is within a polygon described by array of vertices
    • checkCollisionLines Link icon

      public static boolean checkCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 collisionPoint)
      Check the collision between two lines defined by two points each, returns collision point by reference
    • getCollisionRec Link icon

      public static Rectangle getCollisionRec(Rectangle rec1, Rectangle rec2)
      Get collision rectangle for two rectangles collision
    • getCollisionRec Link icon

      public static Rectangle getCollisionRec(Arena arena, Rectangle rec1, Rectangle rec2)
      Get collision rectangle for two rectangles collision
    • loadImage Link icon

      public static Image loadImage(String fileName)
      Load image from file into CPU memory (RAM)
    • loadImage Link icon

      public static Image loadImage(Arena arena, String fileName)
      Load image from file into CPU memory (RAM)
    • loadImageRaw Link icon

      public static Image loadImageRaw(String fileName, int width, int height, int format, int headerSize)
      Load image from RAW file data
    • loadImageRaw Link icon

      public static Image loadImageRaw(Arena arena, String fileName, int width, int height, int format, int headerSize)
      Load image from RAW file data
    • loadImageAnim Link icon

      public static Image loadImageAnim(String fileName, IntBuffer frames)
      Load image sequence from file (frames appended to image.data)
    • loadImageAnim Link icon

      public static Image loadImageAnim(Arena arena, String fileName, IntBuffer frames)
      Load image sequence from file (frames appended to image.data)
    • loadImageAnimFromMemory Link icon

      public static Image loadImageAnimFromMemory(String fileType, ByteBuffer fileData, int dataSize, IntBuffer frames)
      Load image sequence from memory buffer
    • loadImageAnimFromMemory Link icon

      public static Image loadImageAnimFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize, IntBuffer frames)
      Load image sequence from memory buffer
    • loadImageFromMemory Link icon

      public static Image loadImageFromMemory(String fileType, ByteBuffer fileData, int dataSize)
      Load image from memory buffer, fileType refers to extension: i.e. '.png'
    • loadImageFromMemory Link icon

      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 Link icon

      public static Image loadImageFromTexture(Texture texture)
      Load image from GPU texture data
    • loadImageFromTexture Link icon

      public static Image loadImageFromTexture(Arena arena, Texture texture)
      Load image from GPU texture data
    • loadImageFromScreen Link icon

      public static Image loadImageFromScreen()
      Load image from screen buffer and (screenshot)
    • loadImageFromScreen Link icon

      public static Image loadImageFromScreen(Arena arena)
      Load image from screen buffer and (screenshot)
    • isImageValid Link icon

      public static boolean isImageValid(Image image)
      Check if an image is valid (data and parameters)
    • unloadImage Link icon

      public static void unloadImage(Image image)
      Unload image from CPU memory (RAM)
    • exportImage Link icon

      public static boolean exportImage(Image image, String fileName)
      Export image data to file, returns true on success
    • exportImageToMemory Link icon

      public static ByteBuffer exportImageToMemory(Image image, String fileType, IntBuffer fileSize)
      Export image to memory buffer
    • exportImageAsCode Link icon

      public static boolean exportImageAsCode(Image image, String fileName)
      Export image as code file defining an array of bytes, returns true on success
    • genImageColor Link icon

      public static Image genImageColor(int width, int height, Color color)
      Generate image: plain color
    • genImageColor Link icon

      public static Image genImageColor(Arena arena, int width, int height, Color color)
      Generate image: plain color
    • genImageGradientLinear Link icon

      public static Image genImageGradientLinear(int width, int height, int direction, Color start, Color end)
      Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient
    • genImageGradientLinear Link icon

      public static Image genImageGradientLinear(Arena arena, int width, int height, int direction, Color start, Color end)
      Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient
    • genImageGradientRadial Link icon

      public static Image genImageGradientRadial(int width, int height, float density, Color inner, Color outer)
      Generate image: radial gradient
    • genImageGradientRadial Link icon

      public static Image genImageGradientRadial(Arena arena, int width, int height, float density, Color inner, Color outer)
      Generate image: radial gradient
    • genImageGradientSquare Link icon

      public static Image genImageGradientSquare(int width, int height, float density, Color inner, Color outer)
      Generate image: square gradient
    • genImageGradientSquare Link icon

      public static Image genImageGradientSquare(Arena arena, int width, int height, float density, Color inner, Color outer)
      Generate image: square gradient
    • genImageChecked Link icon

      public static Image genImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2)
      Generate image: checked
    • genImageChecked Link icon

      public static Image genImageChecked(Arena arena, int width, int height, int checksX, int checksY, Color col1, Color col2)
      Generate image: checked
    • genImageWhiteNoise Link icon

      public static Image genImageWhiteNoise(int width, int height, float factor)
      Generate image: white noise
    • genImageWhiteNoise Link icon

      public static Image genImageWhiteNoise(Arena arena, int width, int height, float factor)
      Generate image: white noise
    • genImagePerlinNoise Link icon

      public static Image genImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale)
      Generate image: perlin noise
    • genImagePerlinNoise Link icon

      public static Image genImagePerlinNoise(Arena arena, int width, int height, int offsetX, int offsetY, float scale)
      Generate image: perlin noise
    • genImageCellular Link icon

      public static Image genImageCellular(int width, int height, int tileSize)
      Generate image: cellular algorithm, bigger tileSize means bigger cells
    • genImageCellular Link icon

      public static Image genImageCellular(Arena arena, int width, int height, int tileSize)
      Generate image: cellular algorithm, bigger tileSize means bigger cells
    • genImageText Link icon

      public static Image genImageText(int width, int height, String text)
      Generate image: grayscale image from text data
    • genImageText Link icon

      public static Image genImageText(Arena arena, int width, int height, String text)
      Generate image: grayscale image from text data
    • imageCopy Link icon

      public static Image imageCopy(Image image)
      Create an image duplicate (useful for transformations)
    • imageCopy Link icon

      public static Image imageCopy(Arena arena, Image image)
      Create an image duplicate (useful for transformations)
    • imageFromImage Link icon

      public static Image imageFromImage(Image image, Rectangle rec)
      Create an image from another image piece
    • imageFromImage Link icon

      public static Image imageFromImage(Arena arena, Image image, Rectangle rec)
      Create an image from another image piece
    • imageFromChannel Link icon

      public static Image imageFromChannel(Image image, int selectedChannel)
      Create an image from a selected channel of another image (GRAYSCALE)
    • imageFromChannel Link icon

      public static Image imageFromChannel(Arena arena, Image image, int selectedChannel)
      Create an image from a selected channel of another image (GRAYSCALE)
    • imageText Link icon

      public static Image imageText(String text, int fontSize, Color color)
      Create an image from text (default font)
    • imageText Link icon

      public static Image imageText(Arena arena, String text, int fontSize, Color color)
      Create an image from text (default font)
    • imageTextEx Link icon

      public static Image imageTextEx(Font font, String text, float fontSize, float spacing, Color tint)
      Create an image from text (custom sprite font)
    • imageTextEx Link icon

      public static Image imageTextEx(Arena arena, Font font, String text, float fontSize, float spacing, Color tint)
      Create an image from text (custom sprite font)
    • imageFormat Link icon

      public static void imageFormat(Image image, int newFormat)
      Convert image data to desired format
    • imageToPOT Link icon

      public static void imageToPOT(Image image, Color fill)
      Convert image to POT (power-of-two)
    • imageCrop Link icon

      public static void imageCrop(Image image, Rectangle crop)
      Crop an image to a defined rectangle
    • imageAlphaCrop Link icon

      public static void imageAlphaCrop(Image image, float threshold)
      Crop image depending on alpha value
    • imageAlphaClear Link icon

      public static void imageAlphaClear(Image image, Color color, float threshold)
      Clear alpha channel to desired color
    • imageAlphaMask Link icon

      public static void imageAlphaMask(Image image, Image alphaMask)
      Apply alpha mask to image
    • imageAlphaPremultiply Link icon

      public static void imageAlphaPremultiply(Image image)
      Premultiply alpha channel
    • imageBlurGaussian Link icon

      public static void imageBlurGaussian(Image image, int blurSize)
      Apply Gaussian blur using a box blur approximation
    • imageKernelConvolution Link icon

      public static void imageKernelConvolution(Image image, MemorySegment kernel, int kernelSize)
      Apply custom square convolution kernel to image
    • imageResize Link icon

      public static void imageResize(Image image, int newWidth, int newHeight)
      Resize image (Bicubic scaling algorithm)
    • imageResizeNN Link icon

      public static void imageResizeNN(Image image, int newWidth, int newHeight)
      Resize image (Nearest-Neighbor scaling algorithm)
    • imageResizeCanvas Link icon

      public static void imageResizeCanvas(Image image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill)
      Resize canvas and fill with color
    • imageMipmaps Link icon

      public static void imageMipmaps(Image image)
      Compute all mipmap levels for a provided image
    • imageDither Link icon

      public static void imageDither(Image image, int rBpp, int gBpp, int bBpp, int aBpp)
      Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
    • imageFlipVertical Link icon

      public static void imageFlipVertical(Image image)
      Flip image vertically
    • imageFlipHorizontal Link icon

      public static void imageFlipHorizontal(Image image)
      Flip image horizontally
    • imageRotate Link icon

      public static void imageRotate(Image image, int degrees)
      Rotate image by input angle in degrees (-359 to 359)
    • imageRotateCW Link icon

      public static void imageRotateCW(Image image)
      Rotate image clockwise 90deg
    • imageRotateCCW Link icon

      public static void imageRotateCCW(Image image)
      Rotate image counter-clockwise 90deg
    • imageColorTint Link icon

      public static void imageColorTint(Image image, Color color)
      Modify image color: tint
    • imageColorInvert Link icon

      public static void imageColorInvert(Image image)
      Modify image color: invert
    • imageColorGrayscale Link icon

      public static void imageColorGrayscale(Image image)
      Modify image color: grayscale
    • imageColorContrast Link icon

      public static void imageColorContrast(Image image, float contrast)
      Modify image color: contrast (-100 to 100)
    • imageColorBrightness Link icon

      public static void imageColorBrightness(Image image, int brightness)
      Modify image color: brightness (-255 to 255)
    • imageColorReplace Link icon

      public static void imageColorReplace(Image image, Color color, Color replace)
      Modify image color: replace color
    • loadImageColors Link icon

      public static Color loadImageColors(Image image)
      Load color data from image as a Color array (RGBA - 32bit)
    • loadImagePalette Link icon

      public static Color loadImagePalette(Image image, int maxPaletteSize, IntBuffer colorCount)
      Load colors palette from image as a Color array (RGBA - 32bit)
    • unloadImageColors Link icon

      public static void unloadImageColors(Color colors)
      Unload color data loaded with LoadImageColors()
    • unloadImagePalette Link icon

      public static void unloadImagePalette(Color colors)
      Unload colors palette loaded with LoadImagePalette()
    • getImageAlphaBorder Link icon

      public static Rectangle getImageAlphaBorder(Image image, float threshold)
      Get image alpha border rectangle
    • getImageAlphaBorder Link icon

      public static Rectangle getImageAlphaBorder(Arena arena, Image image, float threshold)
      Get image alpha border rectangle
    • getImageColor Link icon

      public static Color getImageColor(Image image, int x, int y)
      Get image pixel color at (x, y) position
    • getImageColor Link icon

      public static Color getImageColor(Arena arena, Image image, int x, int y)
      Get image pixel color at (x, y) position
    • imageClearBackground Link icon

      public static void imageClearBackground(Image dst, Color color)
      Clear image background with given color
    • imageDrawPixel Link icon

      public static void imageDrawPixel(Image dst, int posX, int posY, Color color)
      Draw pixel within an image
    • imageDrawPixelV Link icon

      public static void imageDrawPixelV(Image dst, Vector2 position, Color color)
      Draw pixel within an image (Vector version)
    • imageDrawLine Link icon

      public static void imageDrawLine(Image dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color)
      Draw line within an image
    • imageDrawLineV Link icon

      public static void imageDrawLineV(Image dst, Vector2 start, Vector2 end, Color color)
      Draw line within an image (Vector version)
    • imageDrawLineEx Link icon

      public static void imageDrawLineEx(Image dst, Vector2 start, Vector2 end, int thick, Color color)
      Draw a line defining thickness within an image
    • imageDrawCircle Link icon

      public static void imageDrawCircle(Image dst, int centerX, int centerY, int radius, Color color)
      Draw a filled circle within an image
    • imageDrawCircleV Link icon

      public static void imageDrawCircleV(Image dst, Vector2 center, int radius, Color color)
      Draw a filled circle within an image (Vector version)
    • imageDrawCircleLines Link icon

      public static void imageDrawCircleLines(Image dst, int centerX, int centerY, int radius, Color color)
      Draw circle outline within an image
    • imageDrawCircleLinesV Link icon

      public static void imageDrawCircleLinesV(Image dst, Vector2 center, int radius, Color color)
      Draw circle outline within an image (Vector version)
    • imageDrawRectangle Link icon

      public static void imageDrawRectangle(Image dst, int posX, int posY, int width, int height, Color color)
      Draw rectangle within an image
    • imageDrawRectangleV Link icon

      public static void imageDrawRectangleV(Image dst, Vector2 position, Vector2 size, Color color)
      Draw rectangle within an image (Vector version)
    • imageDrawRectangleRec Link icon

      public static void imageDrawRectangleRec(Image dst, Rectangle rec, Color color)
      Draw rectangle within an image
    • imageDrawRectangleLines Link icon

      public static void imageDrawRectangleLines(Image dst, Rectangle rec, int thick, Color color)
      Draw rectangle lines within an image
    • imageDrawTriangle Link icon

      public static void imageDrawTriangle(Image dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color)
      Draw triangle within an image
    • imageDrawTriangleEx Link icon

      public static void imageDrawTriangleEx(Image dst, Vector2 v1, Vector2 v2, Vector2 v3, Color c1, Color c2, Color c3)
      Draw triangle with interpolated colors within an image
    • imageDrawTriangleLines Link icon

      public static void imageDrawTriangleLines(Image dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color)
      Draw triangle outline within an image
    • imageDrawTriangleFan Link icon

      public static void imageDrawTriangleFan(Image dst, Vector2 points, int pointCount, Color color)
      Draw a triangle fan defined by points within an image (first vertex is the center)
    • imageDrawTriangleStrip Link icon

      public static void imageDrawTriangleStrip(Image dst, Vector2 points, int pointCount, Color color)
      Draw a triangle strip defined by points within an image
    • imageDraw Link icon

      public static void imageDraw(Image dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint)
      Draw a source image within a destination image (tint applied to source)
    • imageDrawText Link icon

      public static void imageDrawText(Image dst, String text, int posX, int posY, int fontSize, Color color)
      Draw text (using default font) within an image (destination)
    • imageDrawTextEx Link icon

      public static void imageDrawTextEx(Image dst, Font font, String text, Vector2 position, float fontSize, float spacing, Color tint)
      Draw text (custom sprite font) within an image (destination)
    • loadTexture Link icon

      public static Texture loadTexture(String fileName)
      Load texture from file into GPU memory (VRAM)
    • loadTexture Link icon

      public static Texture loadTexture(Arena arena, String fileName)
      Load texture from file into GPU memory (VRAM)
    • loadTextureFromImage Link icon

      public static Texture loadTextureFromImage(Image image)
      Load texture from image data
    • loadTextureFromImage Link icon

      public static Texture loadTextureFromImage(Arena arena, Image image)
      Load texture from image data
    • loadTextureCubemap Link icon

      public static Texture loadTextureCubemap(Image image, int layout)
      Load cubemap from image, multiple image cubemap layouts supported
    • loadTextureCubemap Link icon

      public static Texture loadTextureCubemap(Arena arena, Image image, int layout)
      Load cubemap from image, multiple image cubemap layouts supported
    • loadRenderTexture Link icon

      public static RenderTexture loadRenderTexture(int width, int height)
      Load texture for rendering (framebuffer)
    • loadRenderTexture Link icon

      public static RenderTexture loadRenderTexture(Arena arena, int width, int height)
      Load texture for rendering (framebuffer)
    • isTextureValid Link icon

      public static boolean isTextureValid(Texture texture)
      Check if a texture is valid (loaded in GPU)
    • unloadTexture Link icon

      public static void unloadTexture(Texture texture)
      Unload texture from GPU memory (VRAM)
    • isRenderTextureValid Link icon

      public static boolean isRenderTextureValid(RenderTexture target)
      Check if a render texture is valid (loaded in GPU)
    • unloadRenderTexture Link icon

      public static void unloadRenderTexture(RenderTexture target)
      Unload render texture from GPU memory (VRAM)
    • updateTexture Link icon

      public static void updateTexture(Texture texture, MemorySegment pixels)
      Update GPU texture with new data
    • updateTextureRec Link icon

      public static void updateTextureRec(Texture texture, Rectangle rec, MemorySegment pixels)
      Update GPU texture rectangle with new data
    • genTextureMipmaps Link icon

      public static void genTextureMipmaps(Texture texture)
      Generate GPU mipmaps for a texture
    • setTextureFilter Link icon

      public static void setTextureFilter(Texture texture, int filter)
      Set texture scaling filter mode
    • setTextureWrap Link icon

      public static void setTextureWrap(Texture texture, int wrap)
      Set texture wrapping mode
    • drawTexture Link icon

      public static void drawTexture(Texture texture, int posX, int posY, Color tint)
      Draw a Texture2D
    • drawTextureV Link icon

      public static void drawTextureV(Texture texture, Vector2 position, Color tint)
      Draw a Texture2D with position defined as Vector2
    • drawTextureEx Link icon

      public static void drawTextureEx(Texture texture, Vector2 position, float rotation, float scale, Color tint)
      Draw a Texture2D with extended parameters
    • drawTextureRec Link icon

      public static void drawTextureRec(Texture texture, Rectangle source, Vector2 position, Color tint)
      Draw a part of a texture defined by a rectangle
    • drawTexturePro Link icon

      public static void drawTexturePro(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint)
      Draw a part of a texture defined by a rectangle with 'pro' parameters
    • drawTextureNPatch Link icon

      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
    • colorIsEqual Link icon

      public static boolean colorIsEqual(Color col1, Color col2)
      Check if two colors are equal
    • fade Link icon

      public static Color fade(Color color, float alpha)
      Get color with alpha applied, alpha goes from 0.0f to 1.0f
    • fade Link icon

      public static Color fade(Arena arena, Color color, float alpha)
      Get color with alpha applied, alpha goes from 0.0f to 1.0f
    • colorToInt Link icon

      public static int colorToInt(Color color)
      Get hexadecimal value for a Color (0xRRGGBBAA)
    • colorNormalize Link icon

      public static Vector4 colorNormalize(Color color)
      Get Color normalized as float [0..1]
    • colorNormalize Link icon

      public static Vector4 colorNormalize(Arena arena, Color color)
      Get Color normalized as float [0..1]
    • colorFromNormalized Link icon

      public static Color colorFromNormalized(Vector4 normalized)
      Get Color from normalized values [0..1]
    • colorFromNormalized Link icon

      public static Color colorFromNormalized(Arena arena, Vector4 normalized)
      Get Color from normalized values [0..1]
    • colorToHSV Link icon

      public static Vector3 colorToHSV(Color color)
      Get HSV values for a Color, hue [0..360], saturation/value [0..1]
    • colorToHSV Link icon

      public static Vector3 colorToHSV(Arena arena, Color color)
      Get HSV values for a Color, hue [0..360], saturation/value [0..1]
    • colorFromHSV Link icon

      public static Color colorFromHSV(float hue, float saturation, float value)
      Get a Color from HSV values, hue [0..360], saturation/value [0..1]
    • colorFromHSV Link icon

      public static Color colorFromHSV(Arena arena, float hue, float saturation, float value)
      Get a Color from HSV values, hue [0..360], saturation/value [0..1]
    • colorTint Link icon

      public static Color colorTint(Color color, Color tint)
      Get color multiplied with another color
    • colorTint Link icon

      public static Color colorTint(Arena arena, Color color, Color tint)
      Get color multiplied with another color
    • colorBrightness Link icon

      public static Color colorBrightness(Color color, float factor)
      Get color with brightness correction, brightness factor goes from -1.0f to 1.0f
    • colorBrightness Link icon

      public static Color colorBrightness(Arena arena, Color color, float factor)
      Get color with brightness correction, brightness factor goes from -1.0f to 1.0f
    • colorContrast Link icon

      public static Color colorContrast(Color color, float contrast)
      Get color with contrast correction, contrast values between -1.0f and 1.0f
    • colorContrast Link icon

      public static Color colorContrast(Arena arena, Color color, float contrast)
      Get color with contrast correction, contrast values between -1.0f and 1.0f
    • colorAlpha Link icon

      public static Color colorAlpha(Color color, float alpha)
      Get color with alpha applied, alpha goes from 0.0f to 1.0f
    • colorAlpha Link icon

      public static Color colorAlpha(Arena arena, Color color, float alpha)
      Get color with alpha applied, alpha goes from 0.0f to 1.0f
    • colorAlphaBlend Link icon

      public static Color colorAlphaBlend(Color dst, Color src, Color tint)
      Get src alpha-blended into dst color with tint
    • colorAlphaBlend Link icon

      public static Color colorAlphaBlend(Arena arena, Color dst, Color src, Color tint)
      Get src alpha-blended into dst color with tint
    • colorLerp Link icon

      public static Color colorLerp(Color color1, Color color2, float factor)
      Get color lerp interpolation between two colors, factor [0.0f..1.0f]
    • colorLerp Link icon

      public static Color colorLerp(Arena arena, Color color1, Color color2, float factor)
      Get color lerp interpolation between two colors, factor [0.0f..1.0f]
    • getColor Link icon

      public static Color getColor(int hexValue)
      Get Color structure from hexadecimal value
    • getColor Link icon

      public static Color getColor(Arena arena, int hexValue)
      Get Color structure from hexadecimal value
    • getPixelColor Link icon

      public static Color getPixelColor(MemorySegment srcPtr, int format)
      Get Color from a source pixel pointer of certain format
    • getPixelColor Link icon

      public static Color getPixelColor(Arena arena, MemorySegment srcPtr, int format)
      Get Color from a source pixel pointer of certain format
    • setPixelColor Link icon

      public static void setPixelColor(MemorySegment dstPtr, Color color, int format)
      Set color formatted into destination pixel pointer
    • getPixelDataSize Link icon

      public static int getPixelDataSize(int width, int height, int format)
      Get pixel data size in bytes for certain format
    • getFontDefault Link icon

      public static Font getFontDefault()
      Get the default Font
    • getFontDefault Link icon

      public static Font getFontDefault(Arena arena)
      Get the default Font
    • loadFont Link icon

      public static Font loadFont(String fileName)
      Load font from file into GPU memory (VRAM)
    • loadFont Link icon

      public static Font loadFont(Arena arena, String fileName)
      Load font from file into GPU memory (VRAM)
    • loadFontEx Link icon

      public static Font loadFontEx(String fileName, int fontSize, IntBuffer codepoints, int codepointCount)
      Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
    • loadFontEx Link icon

      public static Font loadFontEx(Arena arena, String fileName, int fontSize, IntBuffer codepoints, int codepointCount)
      Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
    • loadFontFromImage Link icon

      public static Font loadFontFromImage(Image image, Color key, int firstChar)
      Load font from Image (XNA style)
    • loadFontFromImage Link icon

      public static Font loadFontFromImage(Arena arena, Image image, Color key, int firstChar)
      Load font from Image (XNA style)
    • loadFontFromMemory Link icon

      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 Link icon

      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'
    • isFontValid Link icon

      public static boolean isFontValid(Font font)
      Check if a font is valid (font data loaded, WARNING: GPU texture not checked)
    • loadFontData Link icon

      public static GlyphInfo loadFontData(ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount, int type)
      Load font data for further use
    • genImageFontAtlas Link icon

      public static Image genImageFontAtlas(MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod)
      Generate image font atlas using chars info
    • genImageFontAtlas Link icon

      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 Link icon

      public static void unloadFontData(GlyphInfo glyphs, int glyphCount)
      Unload font chars info data (RAM)
    • unloadFont Link icon

      public static void unloadFont(Font font)
      Unload font from GPU memory (VRAM)
    • exportFontAsCode Link icon

      public static boolean exportFontAsCode(Font font, String fileName)
      Export font as code file, returns true on success
    • drawFPS Link icon

      public static void drawFPS(int posX, int posY)
      Draw current FPS
    • drawText Link icon

      public static void drawText(String text, int posX, int posY, int fontSize, Color color)
      Draw text (using default font)
    • drawTextEx Link icon

      public static void drawTextEx(Font font, String text, Vector2 position, float fontSize, float spacing, Color tint)
      Draw text using font and additional parameters
    • drawTextPro Link icon

      public static void drawTextPro(Font font, String text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint)
      Draw text using Font and pro parameters (rotation)
    • drawTextCodepoint Link icon

      public static void drawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint)
      Draw one character (codepoint)
    • drawTextCodepoints Link icon

      public static void drawTextCodepoints(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint)
      Draw multiple character (codepoint)
    • setTextLineSpacing Link icon

      public static void setTextLineSpacing(int spacing)
      Set vertical line spacing when drawing with line-breaks
    • measureText Link icon

      public static int measureText(String text, int fontSize)
      Measure string width for default font
    • measureTextEx Link icon

      public static Vector2 measureTextEx(Font font, String text, float fontSize, float spacing)
      Measure string size for Font
    • measureTextEx Link icon

      public static Vector2 measureTextEx(Arena arena, Font font, String text, float fontSize, float spacing)
      Measure string size for Font
    • getGlyphIndex Link icon

      public static int getGlyphIndex(Font font, int codepoint)
      Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
    • getGlyphInfo Link icon

      public static GlyphInfo getGlyphInfo(Font font, int codepoint)
      Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
    • getGlyphInfo Link icon

      public static GlyphInfo getGlyphInfo(Arena arena, Font font, int codepoint)
      Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
    • getGlyphAtlasRec Link icon

      public static Rectangle getGlyphAtlasRec(Font font, int codepoint)
      Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
    • getGlyphAtlasRec Link icon

      public static Rectangle getGlyphAtlasRec(Arena arena, Font font, int codepoint)
      Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
    • loadUTF8 Link icon

      public static ByteBuffer loadUTF8(MemorySegment codepoints, int length)
      Load UTF-8 text encoded from codepoints array
    • unloadUTF8 Link icon

      public static void unloadUTF8(ByteBuffer text)
      Unload UTF-8 text encoded from codepoints array
    • loadCodepoints Link icon

      public static IntBuffer loadCodepoints(String text, IntBuffer count)
      Load all codepoints from a UTF-8 text string, codepoints count returned by parameter
    • unloadCodepoints Link icon

      public static void unloadCodepoints(IntBuffer codepoints)
      Unload codepoints data from memory
    • getCodepointCount Link icon

      public static int getCodepointCount(String text)
      Get total number of codepoints in a UTF-8 encoded string
    • getCodepoint Link icon

      public static int getCodepoint(String text, IntBuffer codepointSize)
      Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
    • getCodepointNext Link icon

      public static int getCodepointNext(String text, IntBuffer codepointSize)
      Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
    • getCodepointPrevious Link icon

      public static int getCodepointPrevious(String text, IntBuffer codepointSize)
      Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
    • codepointToUTF8 Link icon

      public static String codepointToUTF8(int codepoint, IntBuffer utf8Size)
      Encode one codepoint into UTF-8 byte array (array length returned as parameter)
    • textCopy Link icon

      public static int textCopy(ByteBuffer dst, String src)
      Copy one string to another, returns bytes copied
    • textIsEqual Link icon

      public static boolean textIsEqual(String text1, String text2)
      Check if two text string are equal
    • textLength Link icon

      public static int textLength(String text)
      Get text length, checks for '\0' ending
    • textSubtext Link icon

      public static String textSubtext(String text, int position, int length)
      Get a piece of a text string
    • textReplace Link icon

      public static ByteBuffer textReplace(String text, String replace, String by)
      Replace text string (WARNING: memory must be freed!)
    • textInsert Link icon

      public static ByteBuffer textInsert(String text, String insert, int position)
      Insert text in a position (WARNING: memory must be freed!)
    • textJoin Link icon

      public static String textJoin(MemorySegment textList, int count, String delimiter)
      Join text strings with delimiter
    • textSplit Link icon

      public static MemorySegment textSplit(String text, byte delimiter, IntBuffer count)
      Split text into multiple strings
    • textAppend Link icon

      public static void textAppend(ByteBuffer text, String append, IntBuffer position)
      Append text at specific position and move cursor!
    • textFindIndex Link icon

      public static int textFindIndex(String text, String find)
      Find first text occurrence within a string
    • textToUpper Link icon

      public static String textToUpper(String text)
      Get upper case version of provided string
    • textToLower Link icon

      public static String textToLower(String text)
      Get lower case version of provided string
    • textToPascal Link icon

      public static String textToPascal(String text)
      Get Pascal case notation version of provided string
    • textToSnake Link icon

      public static String textToSnake(String text)
      Get Snake case notation version of provided string
    • textToCamel Link icon

      public static String textToCamel(String text)
      Get Camel case notation version of provided string
    • textToInteger Link icon

      public static int textToInteger(String text)
      Get integer value from text (negative values not supported)
    • textToFloat Link icon

      public static float textToFloat(String text)
      Get float value from text (negative values not supported)
    • drawLine3D Link icon

      public static void drawLine3D(Vector3 startPos, Vector3 endPos, Color color)
      Draw a line in 3D world space
    • drawPoint3D Link icon

      public static void drawPoint3D(Vector3 position, Color color)
      Draw a point in 3D space, actually a small line
    • drawCircle3D Link icon

      public static void drawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color)
      Draw a circle in 3D world space
    • drawTriangle3D Link icon

      public static void drawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color)
      Draw a color-filled triangle (vertex in counter-clockwise order!)
    • drawTriangleStrip3D Link icon

      public static void drawTriangleStrip3D(MemorySegment points, int pointCount, Color color)
      Draw a triangle strip defined by points
    • drawCube Link icon

      public static void drawCube(Vector3 position, float width, float height, float length, Color color)
      Draw cube
    • drawCubeV Link icon

      public static void drawCubeV(Vector3 position, Vector3 size, Color color)
      Draw cube (Vector version)
    • drawCubeWires Link icon

      public static void drawCubeWires(Vector3 position, float width, float height, float length, Color color)
      Draw cube wires
    • drawCubeWiresV Link icon

      public static void drawCubeWiresV(Vector3 position, Vector3 size, Color color)
      Draw cube wires (Vector version)
    • drawSphere Link icon

      public static void drawSphere(Vector3 centerPos, float radius, Color color)
      Draw sphere
    • drawSphereEx Link icon

      public static void drawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color)
      Draw sphere with extended parameters
    • drawSphereWires Link icon

      public static void drawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color)
      Draw sphere wires
    • drawCylinder Link icon

      public static void drawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color)
      Draw a cylinder/cone
    • drawCylinderEx Link icon

      public static void drawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color)
      Draw a cylinder with base at startPos and top at endPos
    • drawCylinderWires Link icon

      public static void drawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color)
      Draw a cylinder/cone wires
    • drawCylinderWiresEx Link icon

      public static void drawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color)
      Draw a cylinder wires with base at startPos and top at endPos
    • drawCapsule Link icon

      public static void drawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color)
      Draw a capsule with the center of its sphere caps at startPos and endPos
    • drawCapsuleWires Link icon

      public static void drawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color)
      Draw capsule wireframe with the center of its sphere caps at startPos and endPos
    • drawPlane Link icon

      public static void drawPlane(Vector3 centerPos, Vector2 size, Color color)
      Draw a plane XZ
    • drawRay Link icon

      public static void drawRay(Ray ray, Color color)
      Draw a ray line
    • drawGrid Link icon

      public static void drawGrid(int slices, float spacing)
      Draw a grid (centered at (0, 0, 0))
    • loadModel Link icon

      public static Model loadModel(String fileName)
      Load model from files (meshes and materials)
    • loadModel Link icon

      public static Model loadModel(Arena arena, String fileName)
      Load model from files (meshes and materials)
    • loadModelFromMesh Link icon

      public static Model loadModelFromMesh(Mesh mesh)
      Load model from generated mesh (default material)
    • loadModelFromMesh Link icon

      public static Model loadModelFromMesh(Arena arena, Mesh mesh)
      Load model from generated mesh (default material)
    • isModelValid Link icon

      public static boolean isModelValid(Model model)
      Check if a model is valid (loaded in GPU, VAO/VBOs)
    • unloadModel Link icon

      public static void unloadModel(Model model)
      Unload model (including meshes) from memory (RAM and/or VRAM)
    • getModelBoundingBox Link icon

      public static BoundingBox getModelBoundingBox(Model model)
      Compute model bounding box limits (considers all meshes)
    • getModelBoundingBox Link icon

      public static BoundingBox getModelBoundingBox(Arena arena, Model model)
      Compute model bounding box limits (considers all meshes)
    • drawModel Link icon

      public static void drawModel(Model model, Vector3 position, float scale, Color tint)
      Draw a model (with texture if set)
    • drawModelEx Link icon

      public static void drawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)
      Draw a model with extended parameters
    • drawModelWires Link icon

      public static void drawModelWires(Model model, Vector3 position, float scale, Color tint)
      Draw a model wires (with texture if set)
    • drawModelWiresEx Link icon

      public static void drawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)
      Draw a model wires (with texture if set) with extended parameters
    • drawModelPoints Link icon

      public static void drawModelPoints(Model model, Vector3 position, float scale, Color tint)
      Draw a model as points
    • drawModelPointsEx Link icon

      public static void drawModelPointsEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint)
      Draw a model as points with extended parameters
    • drawBoundingBox Link icon

      public static void drawBoundingBox(BoundingBox box, Color color)
      Draw bounding box (wires)
    • drawBillboard Link icon

      public static void drawBillboard(Camera3D camera, Texture texture, Vector3 position, float scale, Color tint)
      Draw a billboard texture
    • drawBillboardRec Link icon

      public static void drawBillboardRec(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector2 size, Color tint)
      Draw a billboard texture defined by source
    • drawBillboardPro Link icon

      public static void drawBillboardPro(Camera3D camera, Texture texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint)
      Draw a billboard texture defined by source and rotation
    • uploadMesh Link icon

      public static void uploadMesh(Mesh mesh, boolean dynamic)
      Upload mesh vertex data in GPU and provide VAO/VBO ids
    • updateMeshBuffer Link icon

      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 Link icon

      public static void unloadMesh(Mesh mesh)
      Unload mesh data from CPU and GPU
    • drawMesh Link icon

      public static void drawMesh(Mesh mesh, Material material, Matrix transform)
      Draw a 3d mesh with material and transform
    • drawMeshInstanced Link icon

      public static void drawMeshInstanced(Mesh mesh, Material material, MemorySegment transforms, int instances)
      Draw multiple mesh instances with material and different transforms
    • getMeshBoundingBox Link icon

      public static BoundingBox getMeshBoundingBox(Mesh mesh)
      Compute mesh bounding box limits
    • getMeshBoundingBox Link icon

      public static BoundingBox getMeshBoundingBox(Arena arena, Mesh mesh)
      Compute mesh bounding box limits
    • genMeshTangents Link icon

      public static void genMeshTangents(Mesh mesh)
      Compute mesh tangents
    • exportMesh Link icon

      public static boolean exportMesh(Mesh mesh, String fileName)
      Export mesh data to file, returns true on success
    • exportMeshAsCode Link icon

      public static boolean exportMeshAsCode(Mesh mesh, String fileName)
      Export mesh as code file (.h) defining multiple arrays of vertex attributes
    • genMeshPoly Link icon

      public static Mesh genMeshPoly(int sides, float radius)
      Generate polygonal mesh
    • genMeshPoly Link icon

      public static Mesh genMeshPoly(Arena arena, int sides, float radius)
      Generate polygonal mesh
    • genMeshPlane Link icon

      public static Mesh genMeshPlane(float width, float length, int resX, int resZ)
      Generate plane mesh (with subdivisions)
    • genMeshPlane Link icon

      public static Mesh genMeshPlane(Arena arena, float width, float length, int resX, int resZ)
      Generate plane mesh (with subdivisions)
    • genMeshCube Link icon

      public static Mesh genMeshCube(float width, float height, float length)
      Generate cuboid mesh
    • genMeshCube Link icon

      public static Mesh genMeshCube(Arena arena, float width, float height, float length)
      Generate cuboid mesh
    • genMeshSphere Link icon

      public static Mesh genMeshSphere(float radius, int rings, int slices)
      Generate sphere mesh (standard sphere)
    • genMeshSphere Link icon

      public static Mesh genMeshSphere(Arena arena, float radius, int rings, int slices)
      Generate sphere mesh (standard sphere)
    • genMeshHemiSphere Link icon

      public static Mesh genMeshHemiSphere(float radius, int rings, int slices)
      Generate half-sphere mesh (no bottom cap)
    • genMeshHemiSphere Link icon

      public static Mesh genMeshHemiSphere(Arena arena, float radius, int rings, int slices)
      Generate half-sphere mesh (no bottom cap)
    • genMeshCylinder Link icon

      public static Mesh genMeshCylinder(float radius, float height, int slices)
      Generate cylinder mesh
    • genMeshCylinder Link icon

      public static Mesh genMeshCylinder(Arena arena, float radius, float height, int slices)
      Generate cylinder mesh
    • genMeshCone Link icon

      public static Mesh genMeshCone(float radius, float height, int slices)
      Generate cone/pyramid mesh
    • genMeshCone Link icon

      public static Mesh genMeshCone(Arena arena, float radius, float height, int slices)
      Generate cone/pyramid mesh
    • genMeshTorus Link icon

      public static Mesh genMeshTorus(float radius, float size, int radSeg, int sides)
      Generate torus mesh
    • genMeshTorus Link icon

      public static Mesh genMeshTorus(Arena arena, float radius, float size, int radSeg, int sides)
      Generate torus mesh
    • genMeshKnot Link icon

      public static Mesh genMeshKnot(float radius, float size, int radSeg, int sides)
      Generate trefoil knot mesh
    • genMeshKnot Link icon

      public static Mesh genMeshKnot(Arena arena, float radius, float size, int radSeg, int sides)
      Generate trefoil knot mesh
    • genMeshHeightmap Link icon

      public static Mesh genMeshHeightmap(Image heightmap, Vector3 size)
      Generate heightmap mesh from image data
    • genMeshHeightmap Link icon

      public static Mesh genMeshHeightmap(Arena arena, Image heightmap, Vector3 size)
      Generate heightmap mesh from image data
    • genMeshCubicmap Link icon

      public static Mesh genMeshCubicmap(Image cubicmap, Vector3 cubeSize)
      Generate cubes-based map mesh from image data
    • genMeshCubicmap Link icon

      public static Mesh genMeshCubicmap(Arena arena, Image cubicmap, Vector3 cubeSize)
      Generate cubes-based map mesh from image data
    • loadMaterials Link icon

      public static Material loadMaterials(String fileName, IntBuffer materialCount)
      Load materials from model file
    • loadMaterialDefault Link icon

      public static Material loadMaterialDefault()
      Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
    • loadMaterialDefault Link icon

      public static Material loadMaterialDefault(Arena arena)
      Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
    • isMaterialValid Link icon

      public static boolean isMaterialValid(Material material)
      Check if a material is valid (shader assigned, map textures loaded in GPU)
    • unloadMaterial Link icon

      public static void unloadMaterial(Material material)
      Unload material from GPU memory (VRAM)
    • setMaterialTexture Link icon

      public static void setMaterialTexture(Material material, int mapType, Texture texture)
      Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)
    • setModelMeshMaterial Link icon

      public static void setModelMeshMaterial(Model model, int meshId, int materialId)
      Set material for a mesh
    • loadModelAnimations Link icon

      public static ModelAnimation loadModelAnimations(String fileName, IntBuffer animCount)
      Load model animations from file
    • updateModelAnimation Link icon

      public static void updateModelAnimation(Model model, ModelAnimation anim, int frame)
      Update model animation pose (CPU)
    • updateModelAnimationBones Link icon

      public static void updateModelAnimationBones(Model model, ModelAnimation anim, int frame)
      Update model animation mesh bone matrices (GPU skinning)
    • unloadModelAnimation Link icon

      public static void unloadModelAnimation(ModelAnimation anim)
      Unload animation data
    • unloadModelAnimations Link icon

      public static void unloadModelAnimations(ModelAnimation animations, int animCount)
      Unload animation array data
    • isModelAnimationValid Link icon

      public static boolean isModelAnimationValid(Model model, ModelAnimation anim)
      Check model animation skeleton match
    • checkCollisionSpheres Link icon

      public static boolean checkCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2)
      Check collision between two spheres
    • checkCollisionBoxes Link icon

      public static boolean checkCollisionBoxes(BoundingBox box1, BoundingBox box2)
      Check collision between two bounding boxes
    • checkCollisionBoxSphere Link icon

      public static boolean checkCollisionBoxSphere(BoundingBox box, Vector3 center, float radius)
      Check collision between box and sphere
    • getRayCollisionSphere Link icon

      public static RayCollision getRayCollisionSphere(Ray ray, Vector3 center, float radius)
      Get collision info between ray and sphere
    • getRayCollisionSphere Link icon

      public static RayCollision getRayCollisionSphere(Arena arena, Ray ray, Vector3 center, float radius)
      Get collision info between ray and sphere
    • getRayCollisionBox Link icon

      public static RayCollision getRayCollisionBox(Ray ray, BoundingBox box)
      Get collision info between ray and box
    • getRayCollisionBox Link icon

      public static RayCollision getRayCollisionBox(Arena arena, Ray ray, BoundingBox box)
      Get collision info between ray and box
    • getRayCollisionMesh Link icon

      public static RayCollision getRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform)
      Get collision info between ray and mesh
    • getRayCollisionMesh Link icon

      public static RayCollision getRayCollisionMesh(Arena arena, Ray ray, Mesh mesh, Matrix transform)
      Get collision info between ray and mesh
    • getRayCollisionTriangle Link icon

      public static RayCollision getRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3)
      Get collision info between ray and triangle
    • getRayCollisionTriangle Link icon

      public static RayCollision getRayCollisionTriangle(Arena arena, Ray ray, Vector3 p1, Vector3 p2, Vector3 p3)
      Get collision info between ray and triangle
    • getRayCollisionQuad Link icon

      public static RayCollision getRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4)
      Get collision info between ray and quad
    • getRayCollisionQuad Link icon

      public static RayCollision getRayCollisionQuad(Arena arena, Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4)
      Get collision info between ray and quad
    • initAudioDevice Link icon

      public static void initAudioDevice()
      Initialize audio device and context
    • closeAudioDevice Link icon

      public static void closeAudioDevice()
      Close the audio device and context
    • isAudioDeviceReady Link icon

      public static boolean isAudioDeviceReady()
      Check if audio device has been initialized successfully
    • setMasterVolume Link icon

      public static void setMasterVolume(float volume)
      Set master volume (listener)
    • getMasterVolume Link icon

      public static float getMasterVolume()
      Get master volume (listener)
    • loadWave Link icon

      public static Wave loadWave(String fileName)
      Load wave data from file
    • loadWave Link icon

      public static Wave loadWave(Arena arena, String fileName)
      Load wave data from file
    • loadWaveFromMemory Link icon

      public static Wave loadWaveFromMemory(String fileType, ByteBuffer fileData, int dataSize)
      Load wave from memory buffer, fileType refers to extension: i.e. '.wav'
    • loadWaveFromMemory Link icon

      public static Wave loadWaveFromMemory(Arena arena, String fileType, ByteBuffer fileData, int dataSize)
      Load wave from memory buffer, fileType refers to extension: i.e. '.wav'
    • isWaveValid Link icon

      public static boolean isWaveValid(Wave wave)
      Checks if wave data is valid (data loaded and parameters)
    • loadSound Link icon

      public static Sound loadSound(String fileName)
      Load sound from file
    • loadSound Link icon

      public static Sound loadSound(Arena arena, String fileName)
      Load sound from file
    • loadSoundFromWave Link icon

      public static Sound loadSoundFromWave(Wave wave)
      Load sound from wave data
    • loadSoundFromWave Link icon

      public static Sound loadSoundFromWave(Arena arena, Wave wave)
      Load sound from wave data
    • loadSoundAlias Link icon

      public static Sound loadSoundAlias(Sound source)
      Create a new sound that shares the same sample data as the source sound, does not own the sound data
    • loadSoundAlias Link icon

      public static Sound loadSoundAlias(Arena arena, Sound source)
      Create a new sound that shares the same sample data as the source sound, does not own the sound data
    • isSoundValid Link icon

      public static boolean isSoundValid(Sound sound)
      Checks if a sound is valid (data loaded and buffers initialized)
    • updateSound Link icon

      public static void updateSound(Sound sound, MemorySegment data, int sampleCount)
      Update sound buffer with new data
    • unloadWave Link icon

      public static void unloadWave(Wave wave)
      Unload wave data
    • unloadSound Link icon

      public static void unloadSound(Sound sound)
      Unload sound
    • unloadSoundAlias Link icon

      public static void unloadSoundAlias(Sound alias)
      Unload a sound alias (does not deallocate sample data)
    • exportWave Link icon

      public static boolean exportWave(Wave wave, String fileName)
      Export wave data to file, returns true on success
    • exportWaveAsCode Link icon

      public static boolean exportWaveAsCode(Wave wave, String fileName)
      Export wave sample data to code (.h), returns true on success
    • playSound Link icon

      public static void playSound(Sound sound)
      Play a sound
    • stopSound Link icon

      public static void stopSound(Sound sound)
      Stop playing a sound
    • pauseSound Link icon

      public static void pauseSound(Sound sound)
      Pause a sound
    • resumeSound Link icon

      public static void resumeSound(Sound sound)
      Resume a paused sound
    • isSoundPlaying Link icon

      public static boolean isSoundPlaying(Sound sound)
      Check if a sound is currently playing
    • setSoundVolume Link icon

      public static void setSoundVolume(Sound sound, float volume)
      Set volume for a sound (1.0 is max level)
    • setSoundPitch Link icon

      public static void setSoundPitch(Sound sound, float pitch)
      Set pitch for a sound (1.0 is base level)
    • setSoundPan Link icon

      public static void setSoundPan(Sound sound, float pan)
      Set pan for a sound (0.5 is center)
    • waveCopy Link icon

      public static Wave waveCopy(Wave wave)
      Copy a wave to a new wave
    • waveCopy Link icon

      public static Wave waveCopy(Arena arena, Wave wave)
      Copy a wave to a new wave
    • waveCrop Link icon

      public static void waveCrop(Wave wave, int initFrame, int finalFrame)
      Crop a wave to defined frames range
    • waveFormat Link icon

      public static void waveFormat(Wave wave, int sampleRate, int sampleSize, int channels)
      Convert wave data to desired format
    • loadWaveSamples Link icon

      public static FloatBuffer loadWaveSamples(Wave wave)
      Load samples data from wave as a 32bit float data array
    • unloadWaveSamples Link icon

      public static void unloadWaveSamples(FloatBuffer samples)
      Unload samples data loaded with LoadWaveSamples()
    • loadMusicStream Link icon

      public static Music loadMusicStream(String fileName)
      Load music stream from file
    • loadMusicStream Link icon

      public static Music loadMusicStream(Arena arena, String fileName)
      Load music stream from file
    • loadMusicStreamFromMemory Link icon

      public static Music loadMusicStreamFromMemory(String fileType, ByteBuffer data, int dataSize)
      Load music stream from data
    • loadMusicStreamFromMemory Link icon

      public static Music loadMusicStreamFromMemory(Arena arena, String fileType, ByteBuffer data, int dataSize)
      Load music stream from data
    • isMusicValid Link icon

      public static boolean isMusicValid(Music music)
      Checks if a music stream is valid (context and buffers initialized)
    • unloadMusicStream Link icon

      public static void unloadMusicStream(Music music)
      Unload music stream
    • playMusicStream Link icon

      public static void playMusicStream(Music music)
      Start music playing
    • isMusicStreamPlaying Link icon

      public static boolean isMusicStreamPlaying(Music music)
      Check if music is playing
    • updateMusicStream Link icon

      public static void updateMusicStream(Music music)
      Updates buffers for music streaming
    • stopMusicStream Link icon

      public static void stopMusicStream(Music music)
      Stop music playing
    • pauseMusicStream Link icon

      public static void pauseMusicStream(Music music)
      Pause music playing
    • resumeMusicStream Link icon

      public static void resumeMusicStream(Music music)
      Resume playing paused music
    • seekMusicStream Link icon

      public static void seekMusicStream(Music music, float position)
      Seek music to a position (in seconds)
    • setMusicVolume Link icon

      public static void setMusicVolume(Music music, float volume)
      Set volume for music (1.0 is max level)
    • setMusicPitch Link icon

      public static void setMusicPitch(Music music, float pitch)
      Set pitch for a music (1.0 is base level)
    • setMusicPan Link icon

      public static void setMusicPan(Music music, float pan)
      Set pan for a music (0.5 is center)
    • getMusicTimeLength Link icon

      public static float getMusicTimeLength(Music music)
      Get music time length (in seconds)
    • getMusicTimePlayed Link icon

      public static float getMusicTimePlayed(Music music)
      Get current music time played (in seconds)
    • loadAudioStream Link icon

      public static AudioStream loadAudioStream(int sampleRate, int sampleSize, int channels)
      Load audio stream (to stream raw audio pcm data)
    • loadAudioStream Link icon

      public static AudioStream loadAudioStream(Arena arena, int sampleRate, int sampleSize, int channels)
      Load audio stream (to stream raw audio pcm data)
    • isAudioStreamValid Link icon

      public static boolean isAudioStreamValid(AudioStream stream)
      Checks if an audio stream is valid (buffers initialized)
    • unloadAudioStream Link icon

      public static void unloadAudioStream(AudioStream stream)
      Unload audio stream and free memory
    • updateAudioStream Link icon

      public static void updateAudioStream(AudioStream stream, MemorySegment data, int frameCount)
      Update audio stream buffers with data
    • isAudioStreamProcessed Link icon

      public static boolean isAudioStreamProcessed(AudioStream stream)
      Check if any audio stream buffers requires refill
    • playAudioStream Link icon

      public static void playAudioStream(AudioStream stream)
      Play audio stream
    • pauseAudioStream Link icon

      public static void pauseAudioStream(AudioStream stream)
      Pause audio stream
    • resumeAudioStream Link icon

      public static void resumeAudioStream(AudioStream stream)
      Resume audio stream
    • isAudioStreamPlaying Link icon

      public static boolean isAudioStreamPlaying(AudioStream stream)
      Check if audio stream is playing
    • stopAudioStream Link icon

      public static void stopAudioStream(AudioStream stream)
      Stop audio stream
    • setAudioStreamVolume Link icon

      public static void setAudioStreamVolume(AudioStream stream, float volume)
      Set volume for audio stream (1.0 is max level)
    • setAudioStreamPitch Link icon

      public static void setAudioStreamPitch(AudioStream stream, float pitch)
      Set pitch for audio stream (1.0 is base level)
    • setAudioStreamPan Link icon

      public static void setAudioStreamPan(AudioStream stream, float pan)
      Set pan for audio stream (0.5 is centered)
    • setAudioStreamBufferSizeDefault Link icon

      public static void setAudioStreamBufferSizeDefault(int size)
      Default size for new audio streams
    • setAudioStreamCallback Link icon

      public static void setAudioStreamCallback(AudioStream stream, MemorySegment callback)
      Audio thread callback to request new data
    • attachAudioStreamProcessor Link icon

      public static void attachAudioStreamProcessor(AudioStream stream, MemorySegment processor)
      Attach audio stream processor to stream, receives the samples as 'float'
    • detachAudioStreamProcessor Link icon

      public static void detachAudioStreamProcessor(AudioStream stream, MemorySegment processor)
      Detach audio stream processor from stream
    • attachAudioMixedProcessor Link icon

      public static void attachAudioMixedProcessor(MemorySegment processor)
      Attach audio stream processor to the entire audio pipeline, receives the samples as 'float'
    • detachAudioMixedProcessor Link icon

      public static void detachAudioMixedProcessor(MemorySegment processor)
      Detach audio stream processor from the entire audio pipeline
    • clamp Link icon

      public static float clamp(float value, float min, float max)
    • lerp Link icon

      public static float lerp(float start, float end, float amount)
    • normalize Link icon

      public static float normalize(float value, float start, float end)
    • remap Link icon

      public static float remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd)
    • wrap Link icon

      public static float wrap(float value, float min, float max)
    • floatEquals Link icon

      public static int floatEquals(float x, float y)
    • vector2Zero Link icon

      public static Vector2 vector2Zero()
    • vector2Zero Link icon

      public static Vector2 vector2Zero(Arena arena)
    • vector2One Link icon

      public static Vector2 vector2One()
    • vector2One Link icon

      public static Vector2 vector2One(Arena arena)
    • vector2Add Link icon

      public static Vector2 vector2Add(Vector2 v1, Vector2 v2)
    • vector2Add Link icon

      public static Vector2 vector2Add(Arena arena, Vector2 v1, Vector2 v2)
    • vector2AddValue Link icon

      public static Vector2 vector2AddValue(Vector2 v, float add)
    • vector2AddValue Link icon

      public static Vector2 vector2AddValue(Arena arena, Vector2 v, float add)
    • vector2Subtract Link icon

      public static Vector2 vector2Subtract(Vector2 v1, Vector2 v2)
    • vector2Subtract Link icon

      public static Vector2 vector2Subtract(Arena arena, Vector2 v1, Vector2 v2)
    • vector2SubtractValue Link icon

      public static Vector2 vector2SubtractValue(Vector2 v, float sub)
    • vector2SubtractValue Link icon

      public static Vector2 vector2SubtractValue(Arena arena, Vector2 v, float sub)
    • vector2Length Link icon

      public static float vector2Length(Vector2 v)
    • vector2LengthSqr Link icon

      public static float vector2LengthSqr(Vector2 v)
    • vector2DotProduct Link icon

      public static float vector2DotProduct(Vector2 v1, Vector2 v2)
    • vector2Distance Link icon

      public static float vector2Distance(Vector2 v1, Vector2 v2)
    • vector2DistanceSqr Link icon

      public static float vector2DistanceSqr(Vector2 v1, Vector2 v2)
    • vector2Angle Link icon

      public static float vector2Angle(Vector2 v1, Vector2 v2)
    • vector2LineAngle Link icon

      public static float vector2LineAngle(Vector2 start, Vector2 end)
    • vector2Scale Link icon

      public static Vector2 vector2Scale(Vector2 v, float scale)
    • vector2Scale Link icon

      public static Vector2 vector2Scale(Arena arena, Vector2 v, float scale)
    • vector2Multiply Link icon

      public static Vector2 vector2Multiply(Vector2 v1, Vector2 v2)
    • vector2Multiply Link icon

      public static Vector2 vector2Multiply(Arena arena, Vector2 v1, Vector2 v2)
    • vector2Negate Link icon

      public static Vector2 vector2Negate(Vector2 v)
    • vector2Negate Link icon

      public static Vector2 vector2Negate(Arena arena, Vector2 v)
    • vector2Divide Link icon

      public static Vector2 vector2Divide(Vector2 v1, Vector2 v2)
    • vector2Divide Link icon

      public static Vector2 vector2Divide(Arena arena, Vector2 v1, Vector2 v2)
    • vector2Normalize Link icon

      public static Vector2 vector2Normalize(Vector2 v)
    • vector2Normalize Link icon

      public static Vector2 vector2Normalize(Arena arena, Vector2 v)
    • vector2Transform Link icon

      public static Vector2 vector2Transform(Vector2 v, Matrix mat)
    • vector2Transform Link icon

      public static Vector2 vector2Transform(Arena arena, Vector2 v, Matrix mat)
    • vector2Lerp Link icon

      public static Vector2 vector2Lerp(Vector2 v1, Vector2 v2, float amount)
    • vector2Lerp Link icon

      public static Vector2 vector2Lerp(Arena arena, Vector2 v1, Vector2 v2, float amount)
    • vector2Reflect Link icon

      public static Vector2 vector2Reflect(Vector2 v, Vector2 normal)
    • vector2Reflect Link icon

      public static Vector2 vector2Reflect(Arena arena, Vector2 v, Vector2 normal)
    • vector2Min Link icon

      public static Vector2 vector2Min(Vector2 v1, Vector2 v2)
    • vector2Min Link icon

      public static Vector2 vector2Min(Arena arena, Vector2 v1, Vector2 v2)
    • vector2Max Link icon

      public static Vector2 vector2Max(Vector2 v1, Vector2 v2)
    • vector2Max Link icon

      public static Vector2 vector2Max(Arena arena, Vector2 v1, Vector2 v2)
    • vector2Rotate Link icon

      public static Vector2 vector2Rotate(Vector2 v, float angle)
    • vector2Rotate Link icon

      public static Vector2 vector2Rotate(Arena arena, Vector2 v, float angle)
    • vector2MoveTowards Link icon

      public static Vector2 vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance)
    • vector2MoveTowards Link icon

      public static Vector2 vector2MoveTowards(Arena arena, Vector2 v, Vector2 target, float maxDistance)
    • vector2Invert Link icon

      public static Vector2 vector2Invert(Vector2 v)
    • vector2Invert Link icon

      public static Vector2 vector2Invert(Arena arena, Vector2 v)
    • vector2Clamp Link icon

      public static Vector2 vector2Clamp(Vector2 v, Vector2 min, Vector2 max)
    • vector2Clamp Link icon

      public static Vector2 vector2Clamp(Arena arena, Vector2 v, Vector2 min, Vector2 max)
    • vector2ClampValue Link icon

      public static Vector2 vector2ClampValue(Vector2 v, float min, float max)
    • vector2ClampValue Link icon

      public static Vector2 vector2ClampValue(Arena arena, Vector2 v, float min, float max)
    • vector2Equals Link icon

      public static int vector2Equals(Vector2 p, Vector2 q)
    • vector2Refract Link icon

      public static Vector2 vector2Refract(Vector2 v, Vector2 n, float r)
    • vector2Refract Link icon

      public static Vector2 vector2Refract(Arena arena, Vector2 v, Vector2 n, float r)
    • vector3Zero Link icon

      public static Vector3 vector3Zero()
    • vector3Zero Link icon

      public static Vector3 vector3Zero(Arena arena)
    • vector3One Link icon

      public static Vector3 vector3One()
    • vector3One Link icon

      public static Vector3 vector3One(Arena arena)
    • vector3Add Link icon

      public static Vector3 vector3Add(Vector3 v1, Vector3 v2)
    • vector3Add Link icon

      public static Vector3 vector3Add(Arena arena, Vector3 v1, Vector3 v2)
    • vector3AddValue Link icon

      public static Vector3 vector3AddValue(Vector3 v, float add)
    • vector3AddValue Link icon

      public static Vector3 vector3AddValue(Arena arena, Vector3 v, float add)
    • vector3Subtract Link icon

      public static Vector3 vector3Subtract(Vector3 v1, Vector3 v2)
    • vector3Subtract Link icon

      public static Vector3 vector3Subtract(Arena arena, Vector3 v1, Vector3 v2)
    • vector3SubtractValue Link icon

      public static Vector3 vector3SubtractValue(Vector3 v, float sub)
    • vector3SubtractValue Link icon

      public static Vector3 vector3SubtractValue(Arena arena, Vector3 v, float sub)
    • vector3Scale Link icon

      public static Vector3 vector3Scale(Vector3 v, float scalar)
    • vector3Scale Link icon

      public static Vector3 vector3Scale(Arena arena, Vector3 v, float scalar)
    • vector3Multiply Link icon

      public static Vector3 vector3Multiply(Vector3 v1, Vector3 v2)
    • vector3Multiply Link icon

      public static Vector3 vector3Multiply(Arena arena, Vector3 v1, Vector3 v2)
    • vector3CrossProduct Link icon

      public static Vector3 vector3CrossProduct(Vector3 v1, Vector3 v2)
    • vector3CrossProduct Link icon

      public static Vector3 vector3CrossProduct(Arena arena, Vector3 v1, Vector3 v2)
    • vector3Perpendicular Link icon

      public static Vector3 vector3Perpendicular(Vector3 v)
    • vector3Perpendicular Link icon

      public static Vector3 vector3Perpendicular(Arena arena, Vector3 v)
    • vector3Length Link icon

      public static float vector3Length(MemorySegment v)
    • vector3LengthSqr Link icon

      public static float vector3LengthSqr(MemorySegment v)
    • vector3DotProduct Link icon

      public static float vector3DotProduct(Vector3 v1, Vector3 v2)
    • vector3Distance Link icon

      public static float vector3Distance(Vector3 v1, Vector3 v2)
    • vector3DistanceSqr Link icon

      public static float vector3DistanceSqr(Vector3 v1, Vector3 v2)
    • vector3Angle Link icon

      public static float vector3Angle(Vector3 v1, Vector3 v2)
    • vector3Negate Link icon

      public static Vector3 vector3Negate(Vector3 v)
    • vector3Negate Link icon

      public static Vector3 vector3Negate(Arena arena, Vector3 v)
    • vector3Divide Link icon

      public static Vector3 vector3Divide(Vector3 v1, Vector3 v2)
    • vector3Divide Link icon

      public static Vector3 vector3Divide(Arena arena, Vector3 v1, Vector3 v2)
    • vector3Normalize Link icon

      public static Vector3 vector3Normalize(Vector3 v)
    • vector3Normalize Link icon

      public static Vector3 vector3Normalize(Arena arena, Vector3 v)
    • vector3Project Link icon

      public static Vector3 vector3Project(Vector3 v1, Vector3 v2)
    • vector3Project Link icon

      public static Vector3 vector3Project(Arena arena, Vector3 v1, Vector3 v2)
    • vector3Reject Link icon

      public static Vector3 vector3Reject(Vector3 v1, Vector3 v2)
    • vector3Reject Link icon

      public static Vector3 vector3Reject(Arena arena, Vector3 v1, Vector3 v2)
    • vector3OrthoNormalize Link icon

      public static void vector3OrthoNormalize(Vector3 v1, Vector3 v2)
    • vector3Transform Link icon

      public static Vector3 vector3Transform(Vector3 v, Matrix mat)
    • vector3Transform Link icon

      public static Vector3 vector3Transform(Arena arena, Vector3 v, Matrix mat)
    • vector3RotateByQuaternion Link icon

      public static Vector3 vector3RotateByQuaternion(Vector3 v, Vector4 q)
    • vector3RotateByQuaternion Link icon

      public static Vector3 vector3RotateByQuaternion(Arena arena, Vector3 v, Vector4 q)
    • vector3RotateByAxisAngle Link icon

      public static Vector3 vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle)
    • vector3RotateByAxisAngle Link icon

      public static Vector3 vector3RotateByAxisAngle(Arena arena, Vector3 v, Vector3 axis, float angle)
    • vector3MoveTowards Link icon

      public static Vector3 vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance)
    • vector3MoveTowards Link icon

      public static Vector3 vector3MoveTowards(Arena arena, Vector3 v, Vector3 target, float maxDistance)
    • vector3Lerp Link icon

      public static Vector3 vector3Lerp(Vector3 v1, Vector3 v2, float amount)
    • vector3Lerp Link icon

      public static Vector3 vector3Lerp(Arena arena, Vector3 v1, Vector3 v2, float amount)
    • vector3CubicHermite Link icon

      public static Vector3 vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount)
    • vector3CubicHermite Link icon

      public static Vector3 vector3CubicHermite(Arena arena, Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount)
    • vector3Reflect Link icon

      public static Vector3 vector3Reflect(Vector3 v, Vector3 normal)
    • vector3Reflect Link icon

      public static Vector3 vector3Reflect(Arena arena, Vector3 v, Vector3 normal)
    • vector3Min Link icon

      public static Vector3 vector3Min(Vector3 v1, Vector3 v2)
    • vector3Min Link icon

      public static Vector3 vector3Min(Arena arena, Vector3 v1, Vector3 v2)
    • vector3Max Link icon

      public static Vector3 vector3Max(Vector3 v1, Vector3 v2)
    • vector3Max Link icon

      public static Vector3 vector3Max(Arena arena, Vector3 v1, Vector3 v2)
    • vector3Barycenter Link icon

      public static Vector3 vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c)
    • vector3Barycenter Link icon

      public static Vector3 vector3Barycenter(Arena arena, Vector3 p, Vector3 a, Vector3 b, Vector3 c)
    • vector3Unproject Link icon

      public static Vector3 vector3Unproject(Vector3 source, Matrix projection, Matrix view)
    • vector3Unproject Link icon

      public static Vector3 vector3Unproject(Arena arena, Vector3 source, Matrix projection, Matrix view)
    • vector3ToFloatV Link icon

      public static MemorySegment vector3ToFloatV(Vector3 v)
    • vector3ToFloatV Link icon

      public static MemorySegment vector3ToFloatV(Arena arena, Vector3 v)
    • vector3Invert Link icon

      public static Vector3 vector3Invert(Vector3 v)
    • vector3Invert Link icon

      public static Vector3 vector3Invert(Arena arena, Vector3 v)
    • vector3Clamp Link icon

      public static Vector3 vector3Clamp(Vector3 v, Vector3 min, Vector3 max)
    • vector3Clamp Link icon

      public static Vector3 vector3Clamp(Arena arena, Vector3 v, Vector3 min, Vector3 max)
    • vector3ClampValue Link icon

      public static Vector3 vector3ClampValue(Vector3 v, float min, float max)
    • vector3ClampValue Link icon

      public static Vector3 vector3ClampValue(Arena arena, Vector3 v, float min, float max)
    • vector3Equals Link icon

      public static int vector3Equals(Vector3 p, Vector3 q)
    • vector3Refract Link icon

      public static Vector3 vector3Refract(Vector3 v, Vector3 n, float r)
    • vector3Refract Link icon

      public static Vector3 vector3Refract(Arena arena, Vector3 v, Vector3 n, float r)
    • vector4Zero Link icon

      public static Vector4 vector4Zero()
    • vector4Zero Link icon

      public static Vector4 vector4Zero(Arena arena)
    • vector4One Link icon

      public static Vector4 vector4One()
    • vector4One Link icon

      public static Vector4 vector4One(Arena arena)
    • vector4Add Link icon

      public static Vector4 vector4Add(Vector4 v1, Vector4 v2)
    • vector4Add Link icon

      public static Vector4 vector4Add(Arena arena, Vector4 v1, Vector4 v2)
    • vector4AddValue Link icon

      public static Vector4 vector4AddValue(Vector4 v, float add)
    • vector4AddValue Link icon

      public static Vector4 vector4AddValue(Arena arena, Vector4 v, float add)
    • vector4Subtract Link icon

      public static Vector4 vector4Subtract(Vector4 v1, Vector4 v2)
    • vector4Subtract Link icon

      public static Vector4 vector4Subtract(Arena arena, Vector4 v1, Vector4 v2)
    • vector4SubtractValue Link icon

      public static Vector4 vector4SubtractValue(Vector4 v, float add)
    • vector4SubtractValue Link icon

      public static Vector4 vector4SubtractValue(Arena arena, Vector4 v, float add)
    • vector4Length Link icon

      public static float vector4Length(Vector4 v)
    • vector4LengthSqr Link icon

      public static float vector4LengthSqr(Vector4 v)
    • vector4DotProduct Link icon

      public static float vector4DotProduct(Vector4 v1, Vector4 v2)
    • vector4Distance Link icon

      public static float vector4Distance(Vector4 v1, Vector4 v2)
    • vector4DistanceSqr Link icon

      public static float vector4DistanceSqr(Vector4 v1, Vector4 v2)
    • vector4Scale Link icon

      public static Vector4 vector4Scale(Vector4 v, float scale)
    • vector4Scale Link icon

      public static Vector4 vector4Scale(Arena arena, Vector4 v, float scale)
    • vector4Multiply Link icon

      public static Vector4 vector4Multiply(Vector4 v1, Vector4 v2)
    • vector4Multiply Link icon

      public static Vector4 vector4Multiply(Arena arena, Vector4 v1, Vector4 v2)
    • vector4Negate Link icon

      public static Vector4 vector4Negate(Vector4 v)
    • vector4Negate Link icon

      public static Vector4 vector4Negate(Arena arena, Vector4 v)
    • vector4Divide Link icon

      public static Vector4 vector4Divide(Vector4 v1, Vector4 v2)
    • vector4Divide Link icon

      public static Vector4 vector4Divide(Arena arena, Vector4 v1, Vector4 v2)
    • vector4Normalize Link icon

      public static Vector4 vector4Normalize(Vector4 v)
    • vector4Normalize Link icon

      public static Vector4 vector4Normalize(Arena arena, Vector4 v)
    • vector4Min Link icon

      public static Vector4 vector4Min(Vector4 v1, Vector4 v2)
    • vector4Min Link icon

      public static Vector4 vector4Min(Arena arena, Vector4 v1, Vector4 v2)
    • vector4Max Link icon

      public static Vector4 vector4Max(Vector4 v1, Vector4 v2)
    • vector4Max Link icon

      public static Vector4 vector4Max(Arena arena, Vector4 v1, Vector4 v2)
    • vector4Lerp Link icon

      public static Vector4 vector4Lerp(Vector4 v1, Vector4 v2, float amount)
    • vector4Lerp Link icon

      public static Vector4 vector4Lerp(Arena arena, Vector4 v1, Vector4 v2, float amount)
    • vector4MoveTowards Link icon

      public static Vector4 vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance)
    • vector4MoveTowards Link icon

      public static Vector4 vector4MoveTowards(Arena arena, Vector4 v, Vector4 target, float maxDistance)
    • vector4Invert Link icon

      public static Vector4 vector4Invert(Vector4 v)
    • vector4Invert Link icon

      public static Vector4 vector4Invert(Arena arena, Vector4 v)
    • vector4Equals Link icon

      public static int vector4Equals(Vector4 p, Vector4 q)
    • matrixDeterminant Link icon

      public static float matrixDeterminant(Matrix mat)
    • matrixTrace Link icon

      public static float matrixTrace(Matrix mat)
    • matrixTranspose Link icon

      public static Matrix matrixTranspose(Matrix mat)
    • matrixTranspose Link icon

      public static Matrix matrixTranspose(Arena arena, Matrix mat)
    • matrixInvert Link icon

      public static Matrix matrixInvert(Matrix mat)
    • matrixInvert Link icon

      public static Matrix matrixInvert(Arena arena, Matrix mat)
    • matrixIdentity Link icon

      public static Matrix matrixIdentity()
    • matrixIdentity Link icon

      public static Matrix matrixIdentity(Arena arena)
    • matrixAdd Link icon

      public static Matrix matrixAdd(Matrix left, Matrix right)
    • matrixAdd Link icon

      public static Matrix matrixAdd(Arena arena, Matrix left, Matrix right)
    • matrixSubtract Link icon

      public static Matrix matrixSubtract(Matrix left, Matrix right)
    • matrixSubtract Link icon

      public static Matrix matrixSubtract(Arena arena, Matrix left, Matrix right)
    • matrixMultiply Link icon

      public static Matrix matrixMultiply(Matrix left, Matrix right)
    • matrixMultiply Link icon

      public static Matrix matrixMultiply(Arena arena, Matrix left, Matrix right)
    • matrixTranslate Link icon

      public static Matrix matrixTranslate(float x, float y, float z)
    • matrixTranslate Link icon

      public static Matrix matrixTranslate(Arena arena, float x, float y, float z)
    • matrixRotate Link icon

      public static Matrix matrixRotate(Vector3 axis, float angle)
    • matrixRotate Link icon

      public static Matrix matrixRotate(Arena arena, Vector3 axis, float angle)
    • matrixRotateX Link icon

      public static Matrix matrixRotateX(float angle)
    • matrixRotateX Link icon

      public static Matrix matrixRotateX(Arena arena, float angle)
    • matrixRotateY Link icon

      public static Matrix matrixRotateY(float angle)
    • matrixRotateY Link icon

      public static Matrix matrixRotateY(Arena arena, float angle)
    • matrixRotateZ Link icon

      public static Matrix matrixRotateZ(float angle)
    • matrixRotateZ Link icon

      public static Matrix matrixRotateZ(Arena arena, float angle)
    • matrixRotateXYZ Link icon

      public static Matrix matrixRotateXYZ(Vector3 angle)
    • matrixRotateXYZ Link icon

      public static Matrix matrixRotateXYZ(Arena arena, Vector3 angle)
    • matrixRotateZYX Link icon

      public static Matrix matrixRotateZYX(Vector3 angle)
    • matrixRotateZYX Link icon

      public static Matrix matrixRotateZYX(Arena arena, Vector3 angle)
    • matrixScale Link icon

      public static Matrix matrixScale(float x, float y, float z)
    • matrixScale Link icon

      public static Matrix matrixScale(Arena arena, float x, float y, float z)
    • matrixFrustum Link icon

      public static Matrix matrixFrustum(double left, double right, double bottom, double top, double nearPlane, double farPlane)
    • matrixFrustum Link icon

      public static Matrix matrixFrustum(Arena arena, double left, double right, double bottom, double top, double nearPlane, double farPlane)
    • matrixPerspective Link icon

      public static Matrix matrixPerspective(double fovY, double aspect, double nearPlane, double farPlane)
    • matrixPerspective Link icon

      public static Matrix matrixPerspective(Arena arena, double fovY, double aspect, double nearPlane, double farPlane)
    • matrixOrtho Link icon

      public static Matrix matrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane)
    • matrixOrtho Link icon

      public static Matrix matrixOrtho(Arena arena, double left, double right, double bottom, double top, double nearPlane, double farPlane)
    • matrixLookAt Link icon

      public static Matrix matrixLookAt(Vector3 eye, Vector3 target, Vector3 up)
    • matrixLookAt Link icon

      public static Matrix matrixLookAt(Arena arena, Vector3 eye, Vector3 target, Vector3 up)
    • matrixToFloatV Link icon

      public static MemorySegment matrixToFloatV(Matrix mat)
    • matrixToFloatV Link icon

      public static MemorySegment matrixToFloatV(Arena arena, Matrix mat)
    • quaternionAdd Link icon

      public static Vector4 quaternionAdd(Vector4 q1, Vector4 q2)
    • quaternionAdd Link icon

      public static Vector4 quaternionAdd(Arena arena, Vector4 q1, Vector4 q2)
    • quaternionAddValue Link icon

      public static Vector4 quaternionAddValue(Vector4 q, float add)
    • quaternionAddValue Link icon

      public static Vector4 quaternionAddValue(Arena arena, Vector4 q, float add)
    • quaternionSubtract Link icon

      public static Vector4 quaternionSubtract(Vector4 q1, Vector4 q2)
    • quaternionSubtract Link icon

      public static Vector4 quaternionSubtract(Arena arena, Vector4 q1, Vector4 q2)
    • quaternionSubtractValue Link icon

      public static Vector4 quaternionSubtractValue(Vector4 q, float sub)
    • quaternionSubtractValue Link icon

      public static Vector4 quaternionSubtractValue(Arena arena, Vector4 q, float sub)
    • quaternionIdentity Link icon

      public static Vector4 quaternionIdentity()
    • quaternionIdentity Link icon

      public static Vector4 quaternionIdentity(Arena arena)
    • quaternionLength Link icon

      public static float quaternionLength(Vector4 q)
    • quaternionNormalize Link icon

      public static Vector4 quaternionNormalize(Vector4 q)
    • quaternionNormalize Link icon

      public static Vector4 quaternionNormalize(Arena arena, Vector4 q)
    • quaternionInvert Link icon

      public static Vector4 quaternionInvert(Vector4 q)
    • quaternionInvert Link icon

      public static Vector4 quaternionInvert(Arena arena, Vector4 q)
    • quaternionMultiply Link icon

      public static Vector4 quaternionMultiply(Vector4 q1, Vector4 q2)
    • quaternionMultiply Link icon

      public static Vector4 quaternionMultiply(Arena arena, Vector4 q1, Vector4 q2)
    • quaternionScale Link icon

      public static Vector4 quaternionScale(Vector4 q, float mul)
    • quaternionScale Link icon

      public static Vector4 quaternionScale(Arena arena, Vector4 q, float mul)
    • quaternionDivide Link icon

      public static Vector4 quaternionDivide(Vector4 q1, Vector4 q2)
    • quaternionDivide Link icon

      public static Vector4 quaternionDivide(Arena arena, Vector4 q1, Vector4 q2)
    • quaternionLerp Link icon

      public static Vector4 quaternionLerp(Vector4 q1, Vector4 q2, float amount)
    • quaternionLerp Link icon

      public static Vector4 quaternionLerp(Arena arena, Vector4 q1, Vector4 q2, float amount)
    • quaternionNlerp Link icon

      public static Vector4 quaternionNlerp(Vector4 q1, Vector4 q2, float amount)
    • quaternionNlerp Link icon

      public static Vector4 quaternionNlerp(Arena arena, Vector4 q1, Vector4 q2, float amount)
    • quaternionSlerp Link icon

      public static Vector4 quaternionSlerp(Vector4 q1, Vector4 q2, float amount)
    • quaternionSlerp Link icon

      public static Vector4 quaternionSlerp(Arena arena, Vector4 q1, Vector4 q2, float amount)
    • quaternionCubicHermiteSpline Link icon

      public static Vector4 quaternionCubicHermiteSpline(Vector4 q1, Vector4 outTangent1, Vector4 q2, Vector4 inTangent2, float t)
    • quaternionCubicHermiteSpline Link icon

      public static Vector4 quaternionCubicHermiteSpline(Arena arena, Vector4 q1, Vector4 outTangent1, Vector4 q2, Vector4 inTangent2, float t)
    • quaternionFromVector3ToVector3 Link icon

      public static Vector4 quaternionFromVector3ToVector3(Vector3 from, Vector3 to)
    • quaternionFromVector3ToVector3 Link icon

      public static Vector4 quaternionFromVector3ToVector3(Arena arena, Vector3 from, Vector3 to)
    • quaternionFromMatrix Link icon

      public static Vector4 quaternionFromMatrix(Matrix mat)
    • quaternionFromMatrix Link icon

      public static Vector4 quaternionFromMatrix(Arena arena, Matrix mat)
    • quaternionToMatrix Link icon

      public static Matrix quaternionToMatrix(Vector4 q)
    • quaternionToMatrix Link icon

      public static Matrix quaternionToMatrix(Arena arena, Vector4 q)
    • quaternionFromAxisAngle Link icon

      public static Vector4 quaternionFromAxisAngle(Vector3 axis, float angle)
    • quaternionFromAxisAngle Link icon

      public static Vector4 quaternionFromAxisAngle(Arena arena, Vector3 axis, float angle)
    • quaternionToAxisAngle Link icon

      public static void quaternionToAxisAngle(Vector4 q, Vector3 outAxis, FloatBuffer outAngle)
    • quaternionFromEuler Link icon

      public static Vector4 quaternionFromEuler(float pitch, float yaw, float roll)
    • quaternionFromEuler Link icon

      public static Vector4 quaternionFromEuler(Arena arena, float pitch, float yaw, float roll)
    • quaternionToEuler Link icon

      public static Vector3 quaternionToEuler(Vector4 q)
    • quaternionToEuler Link icon

      public static Vector3 quaternionToEuler(Arena arena, Vector4 q)
    • quaternionTransform Link icon

      public static Vector4 quaternionTransform(Vector4 q, Matrix mat)
    • quaternionTransform Link icon

      public static Vector4 quaternionTransform(Arena arena, Vector4 q, Matrix mat)
    • quaternionEquals Link icon

      public static int quaternionEquals(Vector4 p, Vector4 q)
    • matrixDecompose Link icon

      public static void matrixDecompose(Matrix mat, Vector3 translation, Vector4 rotation, Vector3 scale)
    • rlMatrixMode Link icon

      public static void rlMatrixMode(int mode)
      Choose the current matrix to be transformed
    • rlPushMatrix Link icon

      public static void rlPushMatrix()
      Push the current matrix to stack
    • rlPopMatrix Link icon

      public static void rlPopMatrix()
      Pop latest inserted matrix from stack
    • rlLoadIdentity Link icon

      public static void rlLoadIdentity()
      Reset current matrix to identity matrix
    • rlTranslatef Link icon

      public static void rlTranslatef(float x, float y, float z)
      Multiply the current matrix by a translation matrix
    • rlRotatef Link icon

      public static void rlRotatef(float angle, float x, float y, float z)
      Multiply the current matrix by a rotation matrix
    • rlScalef Link icon

      public static void rlScalef(float x, float y, float z)
      Multiply the current matrix by a scaling matrix
    • rlMultMatrixf Link icon

      public static void rlMultMatrixf(MemorySegment matf)
      Multiply the current matrix by another matrix
    • rlFrustum Link icon

      public static void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar)
    • rlOrtho Link icon

      public static void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar)
    • rlViewport Link icon

      public static void rlViewport(int x, int y, int width, int height)
      Set the viewport area
    • rlSetClipPlanes Link icon

      public static void rlSetClipPlanes(double nearPlane, double farPlane)
      Set clip planes distances
    • rlGetCullDistanceNear Link icon

      public static double rlGetCullDistanceNear()
      Get cull plane distance near
    • rlGetCullDistanceFar Link icon

      public static double rlGetCullDistanceFar()
      Get cull plane distance far
    • rlBegin Link icon

      public static void rlBegin(int mode)
      Initialize drawing mode (how to organize vertex)
    • rlEnd Link icon

      public static void rlEnd()
      Finish vertex providing
    • rlVertex2i Link icon

      public static void rlVertex2i(int x, int y)
      Define one vertex (position) - 2 int
    • rlVertex2f Link icon

      public static void rlVertex2f(float x, float y)
      Define one vertex (position) - 2 float
    • rlVertex3f Link icon

      public static void rlVertex3f(float x, float y, float z)
      Define one vertex (position) - 3 float
    • rlTexCoord2f Link icon

      public static void rlTexCoord2f(float x, float y)
      Define one vertex (texture coordinate) - 2 float
    • rlNormal3f Link icon

      public static void rlNormal3f(float x, float y, float z)
      Define one vertex (normal) - 3 float
    • rlColor4ub Link icon

      public static void rlColor4ub(byte r, byte g, byte b, byte a)
      Define one vertex (color) - 4 byte
    • rlColor3f Link icon

      public static void rlColor3f(float x, float y, float z)
      Define one vertex (color) - 3 float
    • rlColor4f Link icon

      public static void rlColor4f(float x, float y, float z, float w)
      Define one vertex (color) - 4 float
    • rlEnableVertexArray Link icon

      public static boolean rlEnableVertexArray(int vaoId)
      Enable vertex array (VAO, if supported)
    • rlDisableVertexArray Link icon

      public static void rlDisableVertexArray()
      Disable vertex array (VAO, if supported)
    • rlEnableVertexBuffer Link icon

      public static void rlEnableVertexBuffer(int id)
      Enable vertex buffer (VBO)
    • rlDisableVertexBuffer Link icon

      public static void rlDisableVertexBuffer()
      Disable vertex buffer (VBO)
    • rlEnableVertexBufferElement Link icon

      public static void rlEnableVertexBufferElement(int id)
      Enable vertex buffer element (VBO element)
    • rlDisableVertexBufferElement Link icon

      public static void rlDisableVertexBufferElement()
      Disable vertex buffer element (VBO element)
    • rlEnableVertexAttribute Link icon

      public static void rlEnableVertexAttribute(int index)
      Enable vertex attribute index
    • rlDisableVertexAttribute Link icon

      public static void rlDisableVertexAttribute(int index)
      Disable vertex attribute index
    • rlActiveTextureSlot Link icon

      public static void rlActiveTextureSlot(int slot)
      Select and active a texture slot
    • rlEnableTexture Link icon

      public static void rlEnableTexture(int id)
      Enable texture
    • rlDisableTexture Link icon

      public static void rlDisableTexture()
      Disable texture
    • rlEnableTextureCubemap Link icon

      public static void rlEnableTextureCubemap(int id)
      Enable texture cubemap
    • rlDisableTextureCubemap Link icon

      public static void rlDisableTextureCubemap()
      Disable texture cubemap
    • rlTextureParameters Link icon

      public static void rlTextureParameters(int id, int param, int value)
      Set texture parameters (filter, wrap)
    • rlCubemapParameters Link icon

      public static void rlCubemapParameters(int id, int param, int value)
      Set cubemap parameters (filter, wrap)
    • rlEnableShader Link icon

      public static void rlEnableShader(int id)
      Enable shader program
    • rlDisableShader Link icon

      public static void rlDisableShader()
      Disable shader program
    • rlEnableFramebuffer Link icon

      public static void rlEnableFramebuffer(int id)
      Enable render texture (fbo)
    • rlDisableFramebuffer Link icon

      public static void rlDisableFramebuffer()
      Disable render texture (fbo), return to default framebuffer
    • rlGetActiveFramebuffer Link icon

      public static int rlGetActiveFramebuffer()
      Get the currently active render texture (fbo), 0 for default framebuffer
    • rlActiveDrawBuffers Link icon

      public static void rlActiveDrawBuffers(int count)
      Activate multiple draw color buffers
    • rlBlitFramebuffer Link icon

      public static void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask)
      Blit active framebuffer to main framebuffer
    • rlBindFramebuffer Link icon

      public static void rlBindFramebuffer(int target, int framebuffer)
      Bind framebuffer (FBO)
    • rlEnableColorBlend Link icon

      public static void rlEnableColorBlend()
      Enable color blending
    • rlDisableColorBlend Link icon

      public static void rlDisableColorBlend()
      Disable color blending
    • rlEnableDepthTest Link icon

      public static void rlEnableDepthTest()
      Enable depth test
    • rlDisableDepthTest Link icon

      public static void rlDisableDepthTest()
      Disable depth test
    • rlEnableDepthMask Link icon

      public static void rlEnableDepthMask()
      Enable depth write
    • rlDisableDepthMask Link icon

      public static void rlDisableDepthMask()
      Disable depth write
    • rlEnableBackfaceCulling Link icon

      public static void rlEnableBackfaceCulling()
      Enable backface culling
    • rlDisableBackfaceCulling Link icon

      public static void rlDisableBackfaceCulling()
      Disable backface culling
    • rlColorMask Link icon

      public static void rlColorMask(boolean r, boolean g, boolean b, boolean a)
      Color mask control
    • rlSetCullFace Link icon

      public static void rlSetCullFace(int mode)
      Set face culling mode
    • rlEnableScissorTest Link icon

      public static void rlEnableScissorTest()
      Enable scissor test
    • rlDisableScissorTest Link icon

      public static void rlDisableScissorTest()
      Disable scissor test
    • rlScissor Link icon

      public static void rlScissor(int x, int y, int width, int height)
      Scissor test
    • rlEnableWireMode Link icon

      public static void rlEnableWireMode()
      Enable wire mode
    • rlEnablePointMode Link icon

      public static void rlEnablePointMode()
      Enable point mode
    • rlDisableWireMode Link icon

      public static void rlDisableWireMode()
      Disable wire (and point) mode
    • rlSetLineWidth Link icon

      public static void rlSetLineWidth(float width)
      Set the line drawing width
    • rlGetLineWidth Link icon

      public static float rlGetLineWidth()
      Get the line drawing width
    • rlEnableSmoothLines Link icon

      public static void rlEnableSmoothLines()
      Enable line aliasing
    • rlDisableSmoothLines Link icon

      public static void rlDisableSmoothLines()
      Disable line aliasing
    • rlEnableStereoRender Link icon

      public static void rlEnableStereoRender()
      Enable stereo rendering
    • rlDisableStereoRender Link icon

      public static void rlDisableStereoRender()
      Disable stereo rendering
    • rlIsStereoRenderEnabled Link icon

      public static boolean rlIsStereoRenderEnabled()
      Check if stereo render is enabled
    • rlClearColor Link icon

      public static void rlClearColor(byte r, byte g, byte b, byte a)
      Clear color buffer with color
    • rlClearScreenBuffers Link icon

      public static void rlClearScreenBuffers()
      Clear used screen buffers (color and depth)
    • rlCheckErrors Link icon

      public static void rlCheckErrors()
      Check and log OpenGL error codes
    • rlSetBlendMode Link icon

      public static void rlSetBlendMode(int mode)
      Set blending mode
    • rlSetBlendFactors Link icon

      public static void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation)
      Set blending mode factor and equation (using OpenGL factors)
    • rlSetBlendFactorsSeparate Link icon

      public static void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha)
      Set blending mode factors and equations separately (using OpenGL factors)
    • rlglInit Link icon

      public static void rlglInit(int width, int height)
      Initialize rlgl (buffers, shaders, textures, states)
    • rlglClose Link icon

      public static void rlglClose()
      De-initialize rlgl (buffers, shaders, textures)
    • rlLoadExtensions Link icon

      public static void rlLoadExtensions(MemorySegment loader)
      Load OpenGL extensions (loader function required)
    • rlGetVersion Link icon

      public static int rlGetVersion()
      Get current OpenGL version
    • rlSetFramebufferWidth Link icon

      public static void rlSetFramebufferWidth(int width)
      Set current framebuffer width
    • rlGetFramebufferWidth Link icon

      public static int rlGetFramebufferWidth()
      Get default framebuffer width
    • rlSetFramebufferHeight Link icon

      public static void rlSetFramebufferHeight(int height)
      Set current framebuffer height
    • rlGetFramebufferHeight Link icon

      public static int rlGetFramebufferHeight()
      Get default framebuffer height
    • rlGetTextureIdDefault Link icon

      public static int rlGetTextureIdDefault()
      Get default texture id
    • rlGetShaderIdDefault Link icon

      public static int rlGetShaderIdDefault()
      Get default shader id
    • rlGetShaderLocsDefault Link icon

      public static IntBuffer rlGetShaderLocsDefault()
      Get default shader locations
    • rlLoadRenderBatch Link icon

      public static rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements)
      Load a render batch system
    • rlLoadRenderBatch Link icon

      public static rlRenderBatch rlLoadRenderBatch(Arena arena, int numBuffers, int bufferElements)
      Load a render batch system
    • rlUnloadRenderBatch Link icon

      public static void rlUnloadRenderBatch(rlRenderBatch batch)
      Unload render batch system
    • rlDrawRenderBatch Link icon

      public static void rlDrawRenderBatch(rlRenderBatch batch)
      Draw render batch data (Update->Draw->Reset)
    • rlSetRenderBatchActive Link icon

      public static void rlSetRenderBatchActive(rlRenderBatch batch)
      Set the active render batch for rlgl (NULL for default internal)
    • rlDrawRenderBatchActive Link icon

      public static void rlDrawRenderBatchActive()
      Update and draw internal render batch
    • rlCheckRenderBatchLimit Link icon

      public static boolean rlCheckRenderBatchLimit(int vCount)
      Check internal buffer overflow for a given number of vertex
    • rlSetTexture Link icon

      public static void rlSetTexture(int id)
      Set current texture for render batch and check buffers limits
    • rlLoadVertexArray Link icon

      public static int rlLoadVertexArray()
      Load vertex array (vao) if supported
    • rlLoadVertexBuffer Link icon

      public static int rlLoadVertexBuffer(MemorySegment buffer, int size, boolean dynamic)
      Load a vertex buffer object
    • rlLoadVertexBufferElement Link icon

      public static int rlLoadVertexBufferElement(MemorySegment buffer, int size, boolean dynamic)
      Load vertex buffer elements object
    • rlUpdateVertexBuffer Link icon

      public static void rlUpdateVertexBuffer(int bufferId, MemorySegment data, int dataSize, int offset)
      Update vertex buffer object data on GPU buffer
    • rlUpdateVertexBufferElements Link icon

      public static void rlUpdateVertexBufferElements(int id, MemorySegment data, int dataSize, int offset)
      Update vertex buffer elements data on GPU buffer
    • rlUnloadVertexArray Link icon

      public static void rlUnloadVertexArray(int vaoId)
      Unload vertex array (vao)
    • rlUnloadVertexBuffer Link icon

      public static void rlUnloadVertexBuffer(int vboId)
      Unload vertex buffer object
    • rlSetVertexAttribute Link icon

      public static void rlSetVertexAttribute(int index, int compSize, int type, boolean normalized, int stride, int offset)
      Set vertex attribute data configuration
    • rlSetVertexAttributeDivisor Link icon

      public static void rlSetVertexAttributeDivisor(int index, int divisor)
      Set vertex attribute data divisor
    • rlSetVertexAttributeDefault Link icon

      public static void rlSetVertexAttributeDefault(int locIndex, MemorySegment value, int attribType, int count)
      Set vertex attribute default value, when attribute to provided
    • rlDrawVertexArray Link icon

      public static void rlDrawVertexArray(int offset, int count)
      Draw vertex array (currently active vao)
    • rlDrawVertexArrayElements Link icon

      public static void rlDrawVertexArrayElements(int offset, int count, MemorySegment buffer)
      Draw vertex array elements
    • rlDrawVertexArrayInstanced Link icon

      public static void rlDrawVertexArrayInstanced(int offset, int count, int instances)
      Draw vertex array (currently active vao) with instancing
    • rlDrawVertexArrayElementsInstanced Link icon

      public static void rlDrawVertexArrayElementsInstanced(int offset, int count, MemorySegment buffer, int instances)
      Draw vertex array elements with instancing
    • rlLoadTexture Link icon

      public static int rlLoadTexture(MemorySegment data, int width, int height, int format, int mipmapCount)
      Load texture data
    • rlLoadTextureDepth Link icon

      public static int rlLoadTextureDepth(int width, int height, boolean useRenderBuffer)
      Load depth texture/renderbuffer (to be attached to fbo)
    • rlLoadTextureCubemap Link icon

      public static int rlLoadTextureCubemap(MemorySegment data, int size, int format, int mipmapCount)
      Load texture cubemap data
    • rlUpdateTexture Link icon

      public static void rlUpdateTexture(int id, int offsetX, int offsetY, int width, int height, int format, MemorySegment data)
      Update texture with new data on GPU
    • rlGetGlTextureFormats Link icon

      public static void rlGetGlTextureFormats(int format, MemorySegment glInternalFormat, MemorySegment glFormat, MemorySegment glType)
      Get OpenGL internal formats
    • rlGetPixelFormatName Link icon

      public static String rlGetPixelFormatName(int format)
      Get name string for pixel format
    • rlUnloadTexture Link icon

      public static void rlUnloadTexture(int id)
      Unload texture from GPU memory
    • rlGenTextureMipmaps Link icon

      public static void rlGenTextureMipmaps(int id, int width, int height, int format, IntBuffer mipmaps)
      Generate mipmap data for selected texture
    • rlReadTexturePixels Link icon

      public static MemorySegment rlReadTexturePixels(int id, int width, int height, int format)
      Read texture pixel data
    • rlReadScreenPixels Link icon

      public static ByteBuffer rlReadScreenPixels(int width, int height)
      Read screen pixel data (color buffer)
    • rlLoadFramebuffer Link icon

      public static int rlLoadFramebuffer()
      Load an empty framebuffer
    • rlFramebufferAttach Link icon

      public static void rlFramebufferAttach(int fboId, int texId, int attachType, int texType, int mipLevel)
      Attach texture/renderbuffer to a framebuffer
    • rlFramebufferComplete Link icon

      public static boolean rlFramebufferComplete(int id)
      Verify framebuffer is complete
    • rlUnloadFramebuffer Link icon

      public static void rlUnloadFramebuffer(int id)
      Delete framebuffer from GPU
    • rlLoadShaderCode Link icon

      public static int rlLoadShaderCode(String vsCode, String fsCode)
      Load shader from code strings
    • rlCompileShader Link icon

      public static int rlCompileShader(String shaderCode, int type)
      Compile custom shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER)
    • rlLoadShaderProgram Link icon

      public static int rlLoadShaderProgram(int vShaderId, int fShaderId)
      Load custom shader program
    • rlUnloadShaderProgram Link icon

      public static void rlUnloadShaderProgram(int id)
      Unload shader program
    • rlGetLocationUniform Link icon

      public static int rlGetLocationUniform(int shaderId, String uniformName)
      Get shader location uniform
    • rlGetLocationAttrib Link icon

      public static int rlGetLocationAttrib(int shaderId, String attribName)
      Get shader location attribute
    • rlSetUniform Link icon

      public static void rlSetUniform(int locIndex, MemorySegment value, int uniformType, int count)
      Set shader value uniform
    • rlSetUniformMatrix Link icon

      public static void rlSetUniformMatrix(int locIndex, Matrix mat)
      Set shader value matrix
    • rlSetUniformMatrices Link icon

      public static void rlSetUniformMatrices(int locIndex, MemorySegment mat, int count)
      Set shader value matrices
    • rlSetUniformSampler Link icon

      public static void rlSetUniformSampler(int locIndex, int textureId)
      Set shader value sampler
    • rlSetShader Link icon

      public static void rlSetShader(int id, IntBuffer locs)
      Set shader currently active (id and locations)
    • rlLoadComputeShaderProgram Link icon

      public static int rlLoadComputeShaderProgram(int shaderId)
      Load compute shader program
    • rlComputeShaderDispatch Link icon

      public static void rlComputeShaderDispatch(int groupX, int groupY, int groupZ)
      Dispatch compute shader (equivalent to *draw* for graphics pipeline)
    • rlLoadShaderBuffer Link icon

      public static int rlLoadShaderBuffer(int size, MemorySegment data, int usageHint)
      Load shader storage buffer object (SSBO)
    • rlUnloadShaderBuffer Link icon

      public static void rlUnloadShaderBuffer(int ssboId)
      Unload shader storage buffer object (SSBO)
    • rlUpdateShaderBuffer Link icon

      public static void rlUpdateShaderBuffer(int id, MemorySegment data, int dataSize, int offset)
      Update SSBO buffer data
    • rlBindShaderBuffer Link icon

      public static void rlBindShaderBuffer(int id, int index)
      Bind SSBO buffer
    • rlReadShaderBuffer Link icon

      public static void rlReadShaderBuffer(int id, MemorySegment dest, int count, int offset)
      Read SSBO buffer data (GPU->CPU)
    • rlCopyShaderBuffer Link icon

      public static void rlCopyShaderBuffer(int destId, int srcId, int destOffset, int srcOffset, int count)
      Copy SSBO data between buffers
    • rlGetShaderBufferSize Link icon

      public static int rlGetShaderBufferSize(int id)
      Get SSBO buffer size
    • rlBindImageTexture Link icon

      public static void rlBindImageTexture(int id, int index, int format, boolean readonly)
      Bind image texture
    • rlGetMatrixModelview Link icon

      public static Matrix rlGetMatrixModelview()
      Get internal modelview matrix
    • rlGetMatrixModelview Link icon

      public static Matrix rlGetMatrixModelview(Arena arena)
      Get internal modelview matrix
    • rlGetMatrixProjection Link icon

      public static Matrix rlGetMatrixProjection()
      Get internal projection matrix
    • rlGetMatrixProjection Link icon

      public static Matrix rlGetMatrixProjection(Arena arena)
      Get internal projection matrix
    • rlGetMatrixTransform Link icon

      public static Matrix rlGetMatrixTransform()
      Get internal accumulated transform matrix
    • rlGetMatrixTransform Link icon

      public static Matrix rlGetMatrixTransform(Arena arena)
      Get internal accumulated transform matrix
    • rlGetMatrixProjectionStereo Link icon

      public static Matrix rlGetMatrixProjectionStereo(int eye)
      Get internal projection matrix for stereo render (selected eye)
    • rlGetMatrixProjectionStereo Link icon

      public static Matrix rlGetMatrixProjectionStereo(Arena arena, int eye)
      Get internal projection matrix for stereo render (selected eye)
    • rlGetMatrixViewOffsetStereo Link icon

      public static Matrix rlGetMatrixViewOffsetStereo(int eye)
      Get internal view offset matrix for stereo render (selected eye)
    • rlGetMatrixViewOffsetStereo Link icon

      public static Matrix rlGetMatrixViewOffsetStereo(Arena arena, int eye)
      Get internal view offset matrix for stereo render (selected eye)
    • rlSetMatrixProjection Link icon

      public static void rlSetMatrixProjection(Matrix proj)
      Set a custom projection matrix (replaces internal projection matrix)
    • rlSetMatrixModelview Link icon

      public static void rlSetMatrixModelview(Matrix view)
      Set a custom modelview matrix (replaces internal modelview matrix)
    • rlSetMatrixProjectionStereo Link icon

      public static void rlSetMatrixProjectionStereo(Matrix right, Matrix left)
      Set eyes projection matrices for stereo rendering
    • rlSetMatrixViewOffsetStereo Link icon

      public static void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left)
      Set eyes view offsets matrices for stereo rendering
    • rlLoadDrawCube Link icon

      public static void rlLoadDrawCube()
      Load and draw a cube
    • rlLoadDrawQuad Link icon

      public static void rlLoadDrawQuad()
      Load and draw a quad