On this page:
2.1 Functions
Init  Window
Window  Should  Close
Close  Window
Is  Window  Ready
Is  Window  Fullscreen
Is  Window  Hidden
Is  Window  Minimized
Is  Window  Maximized
Is  Window  Focused
Is  Window  Resized
Is  Window  State
Set  Window  State
Clear  Window  State
Toggle  Fullscreen
Maximize  Window
Minimize  Window
Restore  Window
Set  Window  Icon
Set  Window  Title
Set  Window  Position
Set  Window  Monitor
Set  Window  Min  Size
Set  Window  Size
Get  Window  Handle
Get  Screen  Width
Get  Screen  Height
Get  Monitor  Count
Get  Current  Monitor
Get  Monitor  Position
Get  Monitor  Width
Get  Monitor  Height
Get  Monitor  Physical  Width
Get  Monitor  Physical  Height
Get  Monitor  Refresh  Rate
Get  Window  Position
Get  Window  Scale  DPI
Get  Monitor  Name
Set  Clipboard  Text
Get  Clipboard  Text
Swap  Screen  Buffer
Poll  Input  Events
Wait  Time
Show  Cursor
Hide  Cursor
Is  Cursor  Hidden
Enable  Cursor
Disable  Cursor
Is  Cursor  On  Screen
Clear  Background
Begin  Drawing
End  Drawing
Begin  Mode2D
End  Mode2D
Begin  Mode3D
End  Mode3D
Begin  Texture  Mode
End  Texture  Mode
Begin  Shader  Mode
End  Shader  Mode
Begin  Blend  Mode
End  Blend  Mode
Begin  Scissor  Mode
End  Scissor  Mode
Begin  Vr  Stereo  Mode
End  Vr  Stereo  Mode
Load  Vr  Stereo  Config
Unload  Vr  Stereo  Config
Load  Shader
Load  Shader  From  Memory
Get  Shader  Location
Get  Shader  Location  Attrib
Set  Shader  Value
Set  Shader  Value  V
Set  Shader  Value  Matrix
Set  Shader  Value  Texture
Unload  Shader
Get  Mouse  Ray
Get  Camera  Matrix
Get  Camera  Matrix2D
Get  World  To  Screen
Get  World  To  Screen  Ex
Get  World  To  Screen2D
Get  Screen  To  World2D
Set  Target  FPS
Get  FPS
Get  Frame  Time
Get  Time
Get  Random  Value
Set  Random  Seed
Take  Screenshot
Set  Config  Flags
Trace  Log
Set  Trace  Log  Level
Mem  Alloc
Mem  Realloc
Mem  Free
Set  Trace  Log  Callback
Set  Load  File  Data  Callback
Set  Save  File  Data  Callback
Set  Load  File  Text  Callback
Set  Save  File  Text  Callback
Load  File  Data
Unload  File  Data
Save  File  Data
Load  File  Text
Unload  File  Text
Save  File  Text
File  Exists
Directory  Exists
Is  File  Extension
Get  File  Extension
Get  File  Name
Get  File  Name  Without  Ext
Get  Directory  Path
Get  Prev  Directory  Path
Get  Working  Directory
Get  Directory  Files
Clear  Directory  Files
Change  Directory
Is  File  Dropped
Get  Dropped  Files
Clear  Dropped  Files
Get  File  Mod  Time
Compress  Data
Decompress  Data
Encode  Data  Base64
Decode  Data  Base64
Save  Storage  Value
Load  Storage  Value
Open  URL
Is  Key  Pressed
Is  Key  Down
Is  Key  Released
Is  Key  Up
Set  Exit  Key
Get  Key  Pressed
Get  Char  Pressed
Is  Gamepad  Available
Get  Gamepad  Name
Is  Gamepad  Button  Pressed
Is  Gamepad  Button  Down
Is  Gamepad  Button  Released
Is  Gamepad  Button  Up
Get  Gamepad  Button  Pressed
Get  Gamepad  Axis  Count
Get  Gamepad  Axis  Movement
Set  Gamepad  Mappings
Is  Mouse  Button  Pressed
Is  Mouse  Button  Down
Is  Mouse  Button  Released
Is  Mouse  Button  Up
Get  Mouse  X
Get  Mouse  Y
Get  Mouse  Position
Get  Mouse  Delta
Set  Mouse  Position
Set  Mouse  Offset
Set  Mouse  Scale
Get  Mouse  Wheel  Move
Set  Mouse  Cursor
Get  Touch  X
Get  Touch  Y
Get  Touch  Position
Get  Touch  Point  Id
Get  Touch  Point  Count
Set  Gestures  Enabled
Is  Gesture  Detected
Get  Gesture  Detected
Get  Gesture  Hold  Duration
Get  Gesture  Drag  Vector
Get  Gesture  Drag  Angle
Get  Gesture  Pinch  Vector
Get  Gesture  Pinch  Angle
Set  Camera  Mode
Update  Camera
Set  Camera  Pan  Control
Set  Camera  Alt  Control
Set  Camera  Smooth  Zoom  Control
Set  Camera  Move  Controls
Set  Shapes  Texture
Draw  Pixel
Draw  Pixel  V
Draw  Line
Draw  Line  V
Draw  Line  Ex
Draw  Line  Bezier
Draw  Line  Bezier  Quad
Draw  Line  Bezier  Cubic
Draw  Line  Strip
Draw  Circle
Draw  Circle  Sector
Draw  Circle  Sector  Lines
Draw  Circle  Gradient
Draw  Circle  V
Draw  Circle  Lines
Draw  Ellipse
Draw  Ellipse  Lines
Draw  Ring
Draw  Ring  Lines
Draw  Rectangle
Draw  Rectangle  V
Draw  Rectangle  Rec
Draw  Rectangle  Pro
Draw  Rectangle  Gradient  V
Draw  Rectangle  Gradient  H
Draw  Rectangle  Gradient  Ex
Draw  Rectangle  Lines
Draw  Rectangle  Lines  Ex
Draw  Rectangle  Rounded
Draw  Rectangle  Rounded  Lines
Draw  Triangle
Draw  Triangle  Lines
Draw  Triangle  Fan
Draw  Triangle  Strip
Draw  Poly
Draw  Poly  Lines
Draw  Poly  Lines  Ex
Check  Collision  Recs
Check  Collision  Circles
Check  Collision  Circle  Rec
Check  Collision  Point  Rec
Check  Collision  Point  Circle
Check  Collision  Point  Triangle
Check  Collision  Lines
Check  Collision  Point  Line
Get  Collision  Rec
Load  Image
Load  Image  Raw
Load  Image  Anim
Load  Image  From  Memory
Load  Image  From  Texture
Load  Image  From  Screen
Unload  Image
Export  Image
Export  Image  As  Code
Gen  Image  Color
Gen  Image  Gradient  V
Gen  Image  Gradient  H
Gen  Image  Gradient  Radial
Gen  Image  Checked
Gen  Image  White  Noise
Gen  Image  Cellular
Image  Copy
Image  From  Image
Image  Text
Image  Text  Ex
Image  Format
Image  To  POT
Image  Crop
Image  Alpha  Crop
Image  Alpha  Clear
Image  Alpha  Mask
Image  Alpha  Premultiply
Image  Resize
Image  Resize  NN
Image  Resize  Canvas
Image  Mipmaps
Image  Dither
Image  Flip  Vertical
Image  Flip  Horizontal
Image  Rotate  CW
Image  Rotate  CCW
Image  Color  Tint
Image  Color  Invert
Image  Color  Grayscale
Image  Color  Contrast
Image  Color  Brightness
Image  Color  Replace
Load  Image  Colors
Load  Image  Palette
Unload  Image  Colors
Unload  Image  Palette
Get  Image  Alpha  Border
Get  Image  Color
Image  Clear  Background
Image  Draw  Pixel
Image  Draw  Pixel  V
Image  Draw  Line
Image  Draw  Line  V
Image  Draw  Circle
Image  Draw  Circle  V
Image  Draw  Rectangle
Image  Draw  Rectangle  V
Image  Draw  Rectangle  Rec
Image  Draw  Rectangle  Lines
Image  Draw
Image  Draw  Text
Image  Draw  Text  Ex
Load  Texture
Load  Texture  From  Image
Load  Texture  Cubemap
Load  Render  Texture
Unload  Texture
Unload  Render  Texture
Update  Texture
Update  Texture  Rec
Gen  Texture  Mipmaps
Set  Texture  Filter
Set  Texture  Wrap
Draw  Texture
Draw  Texture  V
Draw  Texture  Ex
Draw  Texture  Rec
Draw  Texture  Quad
Draw  Texture  Tiled
Draw  Texture  Pro
Draw  Texture  NPatch
Draw  Texture  Poly
Fade
Color  To  Int
Color  Normalize
Color  From  Normalized
Color  To  HSV
Color  From  HSV
Color  Alpha
Color  Alpha  Blend
Get  Color
Get  Pixel  Color
Set  Pixel  Color
Get  Pixel  Data  Size
Get  Font  Default
Load  Font
Load  Font  Ex
Load  Font  From  Image
Load  Font  From  Memory
Load  Font  Data
Gen  Image  Font  Atlas
Unload  Font  Data
Unload  Font
Draw  FPS
Draw  Text
Draw  Text  Ex
Draw  Text  Pro
Draw  Text  Codepoint
Measure  Text
Measure  Text  Ex
Get  Glyph  Index
Get  Glyph  Info
Get  Glyph  Atlas  Rec
Load  Codepoints
Unload  Codepoints
Get  Codepoint  Count
Get  Codepoint
Codepoint  To  UTF8
Text  Codepoints  To  UTF8
Text  Copy
Text  Is  Equal
Text  Length
Text  Format
Text  Subtext
Text  Replace
Text  Insert
Text  Join
Text  Split
Text  Append
Text  Find  Index
Text  To  Upper
Text  To  Lower
Text  To  Pascal
Text  To  Integer
Draw  Line3D
Draw  Point3D
Draw  Circle3D
Draw  Triangle3D
Draw  Triangle  Strip3D
Draw  Cube
Draw  Cube  V
Draw  Cube  Wires
Draw  Cube  Wires  V
Draw  Cube  Texture
Draw  Cube  Texture  Rec
Draw  Sphere
Draw  Sphere  Ex
Draw  Sphere  Wires
Draw  Cylinder
Draw  Cylinder  Ex
Draw  Cylinder  Wires
Draw  Cylinder  Wires  Ex
Draw  Plane
Draw  Ray
Draw  Grid
Load  Model
Load  Model  From  Mesh
Unload  Model
Unload  Model  Keep  Meshes
Get  Model  Bounding  Box
Draw  Model
Draw  Model  Ex
Draw  Model  Wires
Draw  Model  Wires  Ex
Draw  Bounding  Box
Draw  Billboard
Draw  Billboard  Rec
Draw  Billboard  Pro
Upload  Mesh
Update  Mesh  Buffer
Unload  Mesh
Draw  Mesh
Draw  Mesh  Instanced
Export  Mesh
Get  Mesh  Bounding  Box
Gen  Mesh  Tangents
Gen  Mesh  Binormals
Gen  Mesh  Poly
Gen  Mesh  Plane
Gen  Mesh  Cube
Gen  Mesh  Sphere
Gen  Mesh  Hemi  Sphere
Gen  Mesh  Cylinder
Gen  Mesh  Cone
Gen  Mesh  Torus
Gen  Mesh  Knot
Gen  Mesh  Heightmap
Gen  Mesh  Cubicmap
Load  Materials
Load  Material  Default
Unload  Material
Set  Material  Texture
Set  Model  Mesh  Material
Load  Model  Animations
Update  Model  Animation
Unload  Model  Animation
Unload  Model  Animations
Is  Model  Animation  Valid
Check  Collision  Spheres
Check  Collision  Boxes
Check  Collision  Box  Sphere
Get  Ray  Collision  Sphere
Get  Ray  Collision  Box
Get  Ray  Collision  Model
Get  Ray  Collision  Mesh
Get  Ray  Collision  Triangle
Get  Ray  Collision  Quad
Init  Audio  Device
Close  Audio  Device
Is  Audio  Device  Ready
Set  Master  Volume
Load  Wave
Load  Wave  From  Memory
Load  Sound
Load  Sound  From  Wave
Update  Sound
Unload  Wave
Unload  Sound
Export  Wave
Export  Wave  As  Code
Play  Sound
Stop  Sound
Pause  Sound
Resume  Sound
Play  Sound  Multi
Stop  Sound  Multi
Get  Sounds  Playing
Is  Sound  Playing
Set  Sound  Volume
Set  Sound  Pitch
Wave  Format
Wave  Copy
Wave  Crop
Load  Wave  Samples
Unload  Wave  Samples
Load  Music  Stream
Load  Music  Stream  From  Memory
Unload  Music  Stream
Play  Music  Stream
Is  Music  Stream  Playing
Update  Music  Stream
Stop  Music  Stream
Pause  Music  Stream
Resume  Music  Stream
Seek  Music  Stream
Set  Music  Volume
Set  Music  Pitch
Get  Music  Time  Length
Get  Music  Time  Played
Load  Audio  Stream
Unload  Audio  Stream
Update  Audio  Stream
Is  Audio  Stream  Processed
Play  Audio  Stream
Pause  Audio  Stream
Resume  Audio  Stream
Is  Audio  Stream  Playing
Stop  Audio  Stream
Set  Audio  Stream  Volume
Set  Audio  Stream  Pitch
Set  Audio  Stream  Buffer  Size  Default
2.2 Structs
2.2.1 Struct types
_  Vector2
Vector2
_  Vector3
Vector3
_  Vector4
Vector4
_  Matrix
Matrix
_  Color
Color
_  Rectangle
Rectangle
_  Image
Image
_  Texture
Texture
_  Render  Texture
Render  Texture
_  NPatch  Info
NPatch  Info
_  Glyph  Info
Glyph  Info
_  Font
Font
_  Camera3D
Camera3D
_  Camera2D
Camera2D
_  Mesh
Mesh
_  Shader
Shader
_  Material  Map
Material  Map
_  Material
Material
_  Transform
Transform
_  Bone  Info
Bone  Info
_  Model
Model
_  Model  Animation
Model  Animation
_  Ray
Ray
_  Ray  Collision
Ray  Collision
_  Bounding  Box
Bounding  Box
_  Wave
Wave
_  Audio  Stream
Audio  Stream
_  Sound
Sound
_  Music
Music
_  Vr  Device  Info
Vr  Device  Info
_  Vr  Stereo  Config
Vr  Stereo  Config
2.2.2 Type aliases
_  Quaternion
_  Texture2D
_  Texture  Cubemap
_  Render  Texture2D
_  Camera
2.2.3 Callback function types
_  Trace  Log  Callback
_  Load  File  Data  Callback
_  Save  File  Data  Callback
_  Load  File  Text  Callback
_  Save  File  Text  Callback
2.3 Enums
2.3.1 System/  Window config flags
_  Config  Flags
FLAG_  VSYNC_  HINT
FLAG_  FULLSCREEN_  MODE
FLAG_  WINDOW_  RESIZABLE
FLAG_  WINDOW_  UNDECORATED
FLAG_  WINDOW_  HIDDEN
FLAG_  WINDOW_  MINIMIZED
FLAG_  WINDOW_  MAXIMIZED
FLAG_  WINDOW_  UNFOCUSED
FLAG_  WINDOW_  TOPMOST
FLAG_  WINDOW_  ALWAYS_  RUN
FLAG_  WINDOW_  TRANSPARENT
FLAG_  WINDOW_  HIGHDPI
FLAG_  MSAA_  4X_  HINT
FLAG_  INTERLACED_  HINT
2.3.2 Trace log level
_  Trace  Log  Level
LOG_  ALL
LOG_  TRACE
LOG_  DEBUG
LOG_  INFO
LOG_  WARNING
LOG_  ERROR
LOG_  FATAL
LOG_  NONE
2.3.3 Keyboard keys (US keyboard layout)
_  Keyboard  Key
KEY_  NULL
KEY_  APOSTROPHE
KEY_  COMMA
KEY_  MINUS
KEY_  PERIOD
KEY_  SLASH
KEY_  ZERO
KEY_  ONE
KEY_  TWO
KEY_  THREE
KEY_  FOUR
KEY_  FIVE
KEY_  SIX
KEY_  SEVEN
KEY_  EIGHT
KEY_  NINE
KEY_  SEMICOLON
KEY_  EQUAL
KEY_  A
KEY_  B
KEY_  C
KEY_  D
KEY_  E
KEY_  F
KEY_  G
KEY_  H
KEY_  I
KEY_  J
KEY_  K
KEY_  L
KEY_  M
KEY_  N
KEY_  O
KEY_  P
KEY_  Q
KEY_  R
KEY_  S
KEY_  T
KEY_  U
KEY_  V
KEY_  W
KEY_  X
KEY_  Y
KEY_  Z
KEY_  LEFT_  BRACKET
KEY_  BACKSLASH
KEY_  RIGHT_  BRACKET
KEY_  GRAVE
KEY_  SPACE
KEY_  ESCAPE
KEY_  ENTER
KEY_  TAB
KEY_  BACKSPACE
KEY_  INSERT
KEY_  DELETE
KEY_  RIGHT
KEY_  LEFT
KEY_  DOWN
KEY_  UP
KEY_  PAGE_  UP
KEY_  PAGE_  DOWN
KEY_  HOME
KEY_  END
KEY_  CAPS_  LOCK
KEY_  SCROLL_  LOCK
KEY_  NUM_  LOCK
KEY_  PRINT_  SCREEN
KEY_  PAUSE
KEY_  F1
KEY_  F2
KEY_  F3
KEY_  F4
KEY_  F5
KEY_  F6
KEY_  F7
KEY_  F8
KEY_  F9
KEY_  F10
KEY_  F11
KEY_  F12
KEY_  LEFT_  SHIFT
KEY_  LEFT_  CONTROL
KEY_  LEFT_  ALT
KEY_  LEFT_  SUPER
KEY_  RIGHT_  SHIFT
KEY_  RIGHT_  CONTROL
KEY_  RIGHT_  ALT
KEY_  RIGHT_  SUPER
KEY_  KB_  MENU
KEY_  KP_  0
KEY_  KP_  1
KEY_  KP_  2
KEY_  KP_  3
KEY_  KP_  4
KEY_  KP_  5
KEY_  KP_  6
KEY_  KP_  7
KEY_  KP_  8
KEY_  KP_  9
KEY_  KP_  DECIMAL
KEY_  KP_  DIVIDE
KEY_  KP_  MULTIPLY
KEY_  KP_  SUBTRACT
KEY_  KP_  ADD
KEY_  KP_  ENTER
KEY_  KP_  EQUAL
KEY_  BACK
KEY_  MENU
KEY_  VOLUME_  UP
KEY_  VOLUME_  DOWN
2.3.4 Mouse buttons
_  Mouse  Button
MOUSE_  BUTTON_  LEFT
MOUSE_  BUTTON_  RIGHT
MOUSE_  BUTTON_  MIDDLE
MOUSE_  BUTTON_  SIDE
MOUSE_  BUTTON_  EXTRA
MOUSE_  BUTTON_  FORWARD
MOUSE_  BUTTON_  BACK
2.3.5 Mouse cursor
_  Mouse  Cursor
MOUSE_  CURSOR_  DEFAULT
MOUSE_  CURSOR_  ARROW
MOUSE_  CURSOR_  IBEAM
MOUSE_  CURSOR_  CROSSHAIR
MOUSE_  CURSOR_  POINTING_  HAND
MOUSE_  CURSOR_  RESIZE_  EW
MOUSE_  CURSOR_  RESIZE_  NS
MOUSE_  CURSOR_  RESIZE_  NWSE
MOUSE_  CURSOR_  RESIZE_  NESW
MOUSE_  CURSOR_  RESIZE_  ALL
MOUSE_  CURSOR_  NOT_  ALLOWED
2.3.6 Gamepad buttons
_  Gamepad  Button
GAMEPAD_  BUTTON_  UNKNOWN
GAMEPAD_  BUTTON_  LEFT_  FACE_  UP
GAMEPAD_  BUTTON_  LEFT_  FACE_  RIGHT
GAMEPAD_  BUTTON_  LEFT_  FACE_  DOWN
GAMEPAD_  BUTTON_  LEFT_  FACE_  LEFT
GAMEPAD_  BUTTON_  RIGHT_  FACE_  UP
GAMEPAD_  BUTTON_  RIGHT_  FACE_  RIGHT
GAMEPAD_  BUTTON_  RIGHT_  FACE_  DOWN
GAMEPAD_  BUTTON_  RIGHT_  FACE_  LEFT
GAMEPAD_  BUTTON_  LEFT_  TRIGGER_  1
GAMEPAD_  BUTTON_  LEFT_  TRIGGER_  2
GAMEPAD_  BUTTON_  RIGHT_  TRIGGER_  1
GAMEPAD_  BUTTON_  RIGHT_  TRIGGER_  2
GAMEPAD_  BUTTON_  MIDDLE_  LEFT
GAMEPAD_  BUTTON_  MIDDLE
GAMEPAD_  BUTTON_  MIDDLE_  RIGHT
GAMEPAD_  BUTTON_  LEFT_  THUMB
GAMEPAD_  BUTTON_  RIGHT_  THUMB
2.3.7 Gamepad axis
_  Gamepad  Axis
GAMEPAD_  AXIS_  LEFT_  X
GAMEPAD_  AXIS_  LEFT_  Y
GAMEPAD_  AXIS_  RIGHT_  X
GAMEPAD_  AXIS_  RIGHT_  Y
GAMEPAD_  AXIS_  LEFT_  TRIGGER
GAMEPAD_  AXIS_  RIGHT_  TRIGGER
2.3.8 Material map index
_  Material  Map  Index
MATERIAL_  MAP_  ALBEDO
MATERIAL_  MAP_  METALNESS
MATERIAL_  MAP_  NORMAL
MATERIAL_  MAP_  ROUGHNESS
MATERIAL_  MAP_  OCCLUSION
MATERIAL_  MAP_  EMISSION
MATERIAL_  MAP_  HEIGHT
MATERIAL_  MAP_  CUBEMAP
MATERIAL_  MAP_  IRRADIANCE
MATERIAL_  MAP_  PREFILTER
MATERIAL_  MAP_  BRDF
2.3.9 Shader location index
_  Shader  Location  Index
SHADER_  LOC_  VERTEX_  POSITION
SHADER_  LOC_  VERTEX_  TEXCOORD01
SHADER_  LOC_  VERTEX_  TEXCOORD02
SHADER_  LOC_  VERTEX_  NORMAL
SHADER_  LOC_  VERTEX_  TANGENT
SHADER_  LOC_  VERTEX_  COLOR
SHADER_  LOC_  MATRIX_  MVP
SHADER_  LOC_  MATRIX_  VIEW
SHADER_  LOC_  MATRIX_  PROJECTION
SHADER_  LOC_  MATRIX_  MODEL
SHADER_  LOC_  MATRIX_  NORMAL
SHADER_  LOC_  VECTOR_  VIEW
SHADER_  LOC_  COLOR_  DIFFUSE
SHADER_  LOC_  COLOR_  SPECULAR
SHADER_  LOC_  COLOR_  AMBIENT
SHADER_  LOC_  MAP_  ALBEDO
SHADER_  LOC_  MAP_  METALNESS
SHADER_  LOC_  MAP_  NORMAL
SHADER_  LOC_  MAP_  ROUGHNESS
SHADER_  LOC_  MAP_  OCCLUSION
SHADER_  LOC_  MAP_  EMISSION
SHADER_  LOC_  MAP_  HEIGHT
SHADER_  LOC_  MAP_  CUBEMAP
SHADER_  LOC_  MAP_  IRRADIANCE
SHADER_  LOC_  MAP_  PREFILTER
SHADER_  LOC_  MAP_  BRDF
2.3.10 Shader uniform data type
_  Shader  Uniform  Data  Type
SHADER_  UNIFORM_  FLOAT
SHADER_  UNIFORM_  VEC2
SHADER_  UNIFORM_  VEC3
SHADER_  UNIFORM_  VEC4
SHADER_  UNIFORM_  INT
SHADER_  UNIFORM_  IVEC2
SHADER_  UNIFORM_  IVEC3
SHADER_  UNIFORM_  IVEC4
SHADER_  UNIFORM_  SAMPLER2D
2.3.11 Shader attribute data types
_  Shader  Attribute  Data  Type
SHADER_  ATTRIB_  FLOAT
SHADER_  ATTRIB_  VEC2
SHADER_  ATTRIB_  VEC3
SHADER_  ATTRIB_  VEC4
2.3.12 Pixel formats
_  Pixel  Format
PIXELFORMAT_  UNCOMPRESSED_  GRAYSCALE
PIXELFORMAT_  UNCOMPRESSED_  GRAY_  ALPHA
PIXELFORMAT_  UNCOMPRESSED_  R5G6B5
PIXELFORMAT_  UNCOMPRESSED_  R8G8B8
PIXELFORMAT_  UNCOMPRESSED_  R5G5B5A1
PIXELFORMAT_  UNCOMPRESSED_  R4G4B4A4
PIXELFORMAT_  UNCOMPRESSED_  R8G8B8A8
PIXELFORMAT_  UNCOMPRESSED_  R32
PIXELFORMAT_  UNCOMPRESSED_  R32G32B32
PIXELFORMAT_  UNCOMPRESSED_  R32G32B32A32
PIXELFORMAT_  COMPRESSED_  DXT1_  RGB
PIXELFORMAT_  COMPRESSED_  DXT1_  RGBA
PIXELFORMAT_  COMPRESSED_  DXT3_  RGBA
PIXELFORMAT_  COMPRESSED_  DXT5_  RGBA
PIXELFORMAT_  COMPRESSED_  ETC1_  RGB
PIXELFORMAT_  COMPRESSED_  ETC2_  RGB
PIXELFORMAT_  COMPRESSED_  ETC2_  EAC_  RGBA
PIXELFORMAT_  COMPRESSED_  PVRT_  RGB
PIXELFORMAT_  COMPRESSED_  PVRT_  RGBA
PIXELFORMAT_  COMPRESSED_  ASTC_  4x4_  RGBA
PIXELFORMAT_  COMPRESSED_  ASTC_  8x8_  RGBA
2.3.13 Texture parameters:   filter mode
_  Texture  Filter
TEXTURE_  FILTER_  POINT
TEXTURE_  FILTER_  BILINEAR
TEXTURE_  FILTER_  TRILINEAR
TEXTURE_  FILTER_  ANISOTROPIC_  4X
TEXTURE_  FILTER_  ANISOTROPIC_  8X
TEXTURE_  FILTER_  ANISOTROPIC_  16X
2.3.14 Texture parameters:   wrap mode
_  Texture  Wrap
TEXTURE_  WRAP_  REPEAT
TEXTURE_  WRAP_  CLAMP
TEXTURE_  WRAP_  MIRROR_  REPEAT
TEXTURE_  WRAP_  MIRROR_  CLAMP
2.3.15 Cubemap layouts
_  Cubemap  Layout
CUBEMAP_  LAYOUT_  AUTO_  DETECT
CUBEMAP_  LAYOUT_  LINE_  VERTICAL
CUBEMAP_  LAYOUT_  LINE_  HORIZONTAL
CUBEMAP_  LAYOUT_  CROSS_  THREE_  BY_  FOUR
CUBEMAP_  LAYOUT_  CROSS_  FOUR_  BY_  THREE
CUBEMAP_  LAYOUT_  PANORAMA
2.3.16 Font type, defines generation method
_  Font  Type
FONT_  DEFAULT
FONT_  BITMAP
FONT_  SDF
2.3.17 Color blending modes (pre-defined)
_  Blend  Mode
BLEND_  ALPHA
BLEND_  ADDITIVE
BLEND_  MULTIPLIED
BLEND_  ADD_  COLORS
BLEND_  SUBTRACT_  COLORS
BLEND_  CUSTOM
2.3.18 Gesture
_  Gesture
GESTURE_  NONE
GESTURE_  TAP
GESTURE_  DOUBLETAP
GESTURE_  HOLD
GESTURE_  DRAG
GESTURE_  SWIPE_  RIGHT
GESTURE_  SWIPE_  LEFT
GESTURE_  SWIPE_  UP
GESTURE_  SWIPE_  DOWN
GESTURE_  PINCH_  IN
GESTURE_  PINCH_  OUT
2.3.19 Camera system modes
_  Camera  Mode
CAMERA_  CUSTOM
CAMERA_  FREE
CAMERA_  ORBITAL
CAMERA_  FIRST_  PERSON
CAMERA_  THIRD_  PERSON
2.3.20 Camera projection
_  Camera  Projection
CAMERA_  PERSPECTIVE
CAMERA_  ORTHOGRAPHIC
2.3.21 N-patch layout
_  NPatch  Layout
NPATCH_  NINE_  PATCH
NPATCH_  THREE_  PATCH_  VERTICAL
NPATCH_  THREE_  PATCH_  HORIZONTAL
2.4 Constants
RAYLIB_  VERSION
LIGHTGRAY
GRAY
DARKGRAY
YELLOW
GOLD
ORANGE
PINK
RED
MAROON
GREEN
LIME
DARKGREEN
SKYBLUE
BLUE
DARKBLUE
PURPLE
VIOLET
DARKPURPLE
BEIGE
BROWN
DARKBROWN
WHITE
BLACK
BLANK
MAGENTA
RAYWHITE
8.12

2 Generated Raylib Bindings🔗ℹ

Unsafe, automatically generated bindings for Raylib 4.0.

This module re-exports all of raylib/generated/unsafe/functions, raylib/generated/structs, raylib/generated/enums and raylib/generated/constants.

    2.1 Functions

    2.2 Structs

      2.2.1 Struct types

      2.2.2 Type aliases

      2.2.3 Callback function types

    2.3 Enums

      2.3.1 System/Window config flags

      2.3.2 Trace log level

      2.3.3 Keyboard keys (US keyboard layout)

      2.3.4 Mouse buttons

      2.3.5 Mouse cursor

      2.3.6 Gamepad buttons

      2.3.7 Gamepad axis

      2.3.8 Material map index

      2.3.9 Shader location index

      2.3.10 Shader uniform data type

      2.3.11 Shader attribute data types

      2.3.12 Pixel formats

      2.3.13 Texture parameters: filter mode

      2.3.14 Texture parameters: wrap mode

      2.3.15 Cubemap layouts

      2.3.16 Font type, defines generation method

      2.3.17 Color blending modes (pre-defined)

      2.3.18 Gesture

      2.3.19 Camera system modes

      2.3.20 Camera projection

      2.3.21 N-patch layout

    2.4 Constants

2.1 Functions🔗ℹ

 (require raylib/generated/unsafe/functions)
  package: raylib

procedure

(InitWindow width height title)  _void

  width : _int
  height : _int
  title : _string
Initialize window and OpenGL context

procedure

(WindowShouldClose)  _stdbool

Check if KEY_ESCAPE pressed or Close icon pressed

procedure

(CloseWindow)  _void

Close window and unload OpenGL context

procedure

(IsWindowReady)  _stdbool

Check if window has been initialized successfully

procedure

(IsWindowFullscreen)  _stdbool

Check if window is currently fullscreen

procedure

(IsWindowHidden)  _stdbool

Check if window is currently hidden (only PLATFORM_DESKTOP)

procedure

(IsWindowMinimized)  _stdbool

Check if window is currently minimized (only PLATFORM_DESKTOP)

procedure

(IsWindowMaximized)  _stdbool

Check if window is currently maximized (only PLATFORM_DESKTOP)

procedure

(IsWindowFocused)  _stdbool

Check if window is currently focused (only PLATFORM_DESKTOP)

procedure

(IsWindowResized)  _stdbool

Check if window has been resized last frame

procedure

(IsWindowState flag)  _stdbool

  flag : _uint
Check if one specific window flag is enabled

procedure

(SetWindowState flags)  _void

  flags : _uint
Set window configuration state using flags

procedure

(ClearWindowState flags)  _void

  flags : _uint
Clear window configuration state flags

procedure

(ToggleFullscreen)  _void

Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)

procedure

(MaximizeWindow)  _void

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

procedure

(MinimizeWindow)  _void

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

procedure

(RestoreWindow)  _void

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

procedure

(SetWindowIcon image)  _void

  image : _Image
Set icon for window (only PLATFORM_DESKTOP)

procedure

(SetWindowTitle title)  _void

  title : _string
Set title for window (only PLATFORM_DESKTOP)

procedure

(SetWindowPosition x y)  _void

  x : _int
  y : _int
Set window position on screen (only PLATFORM_DESKTOP)

procedure

(SetWindowMonitor monitor)  _void

  monitor : _int
Set monitor for the current window (fullscreen mode)

procedure

(SetWindowMinSize width height)  _void

  width : _int
  height : _int
Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)

procedure

(SetWindowSize width height)  _void

  width : _int
  height : _int
Set window dimensions

procedure

(GetWindowHandle)  (_pointer-to _void)

Get native window handle

procedure

(GetScreenWidth)  _int

Get current screen width

procedure

(GetScreenHeight)  _int

Get current screen height

procedure

(GetMonitorCount)  _int

Get number of connected monitors

procedure

(GetCurrentMonitor)  _int

Get current connected monitor

procedure

(GetMonitorPosition monitor)  _Vector2

  monitor : _int
Get specified monitor position

procedure

(GetMonitorWidth monitor)  _int

  monitor : _int
Get specified monitor width (max available by monitor)

procedure

(GetMonitorHeight monitor)  _int

  monitor : _int
Get specified monitor height (max available by monitor)

procedure

(GetMonitorPhysicalWidth monitor)  _int

  monitor : _int
Get specified monitor physical width in millimetres

procedure

(GetMonitorPhysicalHeight monitor)  _int

  monitor : _int
Get specified monitor physical height in millimetres

procedure

(GetMonitorRefreshRate monitor)  _int

  monitor : _int
Get specified monitor refresh rate

procedure

(GetWindowPosition)  _Vector2

Get window position XY on monitor

procedure

(GetWindowScaleDPI)  _Vector2

Get window scale DPI factor

procedure

(GetMonitorName monitor)  _string

  monitor : _int
Get the human-readable, UTF-8 encoded name of the primary monitor

procedure

(SetClipboardText text)  _void

  text : _string
Set clipboard text content

procedure

(GetClipboardText)  _string

Get clipboard text content

procedure

(SwapScreenBuffer)  _void

Swap back buffer with front buffer (screen drawing)

procedure

(PollInputEvents)  _void

Register all input events

procedure

(WaitTime ms)  _void

  ms : _float
Wait for some milliseconds (halt program execution)

procedure

(ShowCursor)  _void

Shows cursor

procedure

(HideCursor)  _void

Hides cursor

procedure

(IsCursorHidden)  _stdbool

Check if cursor is not visible

procedure

(EnableCursor)  _void

Enables cursor (unlock cursor)

procedure

(DisableCursor)  _void

Disables cursor (lock cursor)

procedure

(IsCursorOnScreen)  _stdbool

Check if cursor is on the screen

procedure

(ClearBackground color)  _void

  color : _Color
Set background color (framebuffer clear color)

procedure

(BeginDrawing)  _void

Setup canvas (framebuffer) to start drawing

procedure

(EndDrawing)  _void

End canvas drawing and swap buffers (double buffering)

procedure

(BeginMode2D camera)  _void

  camera : _Camera2D
Begin 2D mode with custom camera (2D)

procedure

(EndMode2D)  _void

Ends 2D mode with custom camera

procedure

(BeginMode3D camera)  _void

  camera : _Camera3D
Begin 3D mode with custom camera (3D)

procedure

(EndMode3D)  _void

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

procedure

(BeginTextureMode target)  _void

  target : _RenderTexture2D
Begin drawing to render texture

procedure

(EndTextureMode)  _void

Ends drawing to render texture

procedure

(BeginShaderMode shader)  _void

  shader : _Shader
Begin custom shader drawing

procedure

(EndShaderMode)  _void

End custom shader drawing (use default shader)

procedure

(BeginBlendMode mode)  _void

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

procedure

(EndBlendMode)  _void

End blending mode (reset to default: alpha blending)

procedure

(BeginScissorMode x y width height)  _void

  x : _int
  y : _int
  width : _int
  height : _int
Begin scissor mode (define screen area for following drawing)

procedure

(EndScissorMode)  _void

End scissor mode

procedure

(BeginVrStereoMode config)  _void

  config : _VrStereoConfig
Begin stereo rendering (requires VR simulator)

procedure

(EndVrStereoMode)  _void

End stereo rendering (requires VR simulator)

procedure

(LoadVrStereoConfig device)  _VrStereoConfig

  device : _VrDeviceInfo
Load VR stereo config for VR simulator device parameters

procedure

(UnloadVrStereoConfig config)  _void

  config : _VrStereoConfig
Unload VR stereo config

procedure

(LoadShader vsFileName fsFileName)  _Shader

  vsFileName : _string
  fsFileName : _string
Load shader from files and bind default locations

procedure

(LoadShaderFromMemory vsCode fsCode)  _Shader

  vsCode : _string
  fsCode : _string
Load shader from code strings and bind default locations

procedure

(GetShaderLocation shader uniformName)  _int

  shader : _Shader
  uniformName : _string
Get shader uniform location

procedure

(GetShaderLocationAttrib shader attribName)  _int

  shader : _Shader
  attribName : _string
Get shader attribute location

procedure

(SetShaderValue shader    
  locIndex    
  value    
  uniformType)  _void
  shader : _Shader
  locIndex : _int
  value : (_pointer-to _void)
  uniformType : _int
Set shader uniform value

procedure

(SetShaderValueV shader    
  locIndex    
  value    
  uniformType    
  count)  _void
  shader : _Shader
  locIndex : _int
  value : (_pointer-to _void)
  uniformType : _int
  count : _int
Set shader uniform value vector

procedure

(SetShaderValueMatrix shader locIndex mat)  _void

  shader : _Shader
  locIndex : _int
  mat : _Matrix
Set shader uniform value (matrix 4x4)

procedure

(SetShaderValueTexture shader    
  locIndex    
  texture)  _void
  shader : _Shader
  locIndex : _int
  texture : _Texture2D
Set shader uniform value for texture (sampler2d)

procedure

(UnloadShader shader)  _void

  shader : _Shader
Unload shader from GPU memory (VRAM)

procedure

(GetMouseRay mousePosition camera)  _Ray

  mousePosition : _Vector2
  camera : _Camera
Get a ray trace from mouse position

procedure

(GetCameraMatrix camera)  _Matrix

  camera : _Camera
Get camera transform matrix (view matrix)

procedure

(GetCameraMatrix2D camera)  _Matrix

  camera : _Camera2D
Get camera 2d transform matrix

procedure

(GetWorldToScreen position camera)  _Vector2

  position : _Vector3
  camera : _Camera
Get the screen space position for a 3d world space position

procedure

(GetWorldToScreenEx position    
  camera    
  width    
  height)  _Vector2
  position : _Vector3
  camera : _Camera
  width : _int
  height : _int
Get size position for a 3d world space position

procedure

(GetWorldToScreen2D position camera)  _Vector2

  position : _Vector2
  camera : _Camera2D
Get the screen space position for a 2d camera world space position

procedure

(GetScreenToWorld2D position camera)  _Vector2

  position : _Vector2
  camera : _Camera2D
Get the world space position for a 2d camera screen space position

procedure

(SetTargetFPS fps)  _void

  fps : _int
Set target FPS (maximum)

procedure

(GetFPS)  _int

Get current FPS

procedure

(GetFrameTime)  _float

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

procedure

(GetTime)  _double

Get elapsed time in seconds since InitWindow()

procedure

(GetRandomValue min max)  _int

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

procedure

(SetRandomSeed seed)  _void

  seed : _uint
Set the seed for the random number generator

procedure

(TakeScreenshot fileName)  _void

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

procedure

(SetConfigFlags flags)  _void

  flags : _uint
Setup init configuration flags (view FLAGS)

procedure

(TraceLog logLevel text)  _void

  logLevel : _int
  text : _string
Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)

procedure

(SetTraceLogLevel logLevel)  _void

  logLevel : _int
Set the current threshold (minimum) log level

procedure

(MemAlloc size)  (_pointer-to _void)

  size : _int
Internal memory allocator

procedure

(MemRealloc ptr size)  (_pointer-to _void)

  ptr : (_pointer-to _void)
  size : _int
Internal memory reallocator

procedure

(MemFree ptr)  _void

  ptr : (_pointer-to _void)
Internal memory free

procedure

(SetTraceLogCallback callback)  _void

  callback : _TraceLogCallback
Set custom trace log

procedure

(SetLoadFileDataCallback callback)  _void

  callback : _LoadFileDataCallback
Set custom file binary data loader

procedure

(SetSaveFileDataCallback callback)  _void

  callback : _SaveFileDataCallback
Set custom file binary data saver

procedure

(SetLoadFileTextCallback callback)  _void

  callback : _LoadFileTextCallback
Set custom file text data loader

procedure

(SetSaveFileTextCallback callback)  _void

  callback : _SaveFileTextCallback
Set custom file text data saver

procedure

(LoadFileData fileName bytesRead)  (_pointer-to _ubyte)

  fileName : _string
  bytesRead : (_pointer-to _uint)
Load file data as byte array (read)

procedure

(UnloadFileData data)  _void

  data : (_pointer-to _ubyte)
Unload file data allocated by LoadFileData()

procedure

(SaveFileData fileName data bytesToWrite)  _stdbool

  fileName : _string
  data : (_pointer-to _void)
  bytesToWrite : _uint
Save data to file from byte array (write), returns true on success

procedure

(LoadFileText fileName)  (_pointer-to _byte)

  fileName : _string
Load text data from file (read), returns a ’\0’ terminated string

procedure

(UnloadFileText text)  _void

  text : (_pointer-to _byte)
Unload file text data allocated by LoadFileText()

procedure

(SaveFileText fileName text)  _stdbool

  fileName : _string
  text : (_pointer-to _byte)
Save text data to file (write), string must be ’\0’ terminated, returns true on success

procedure

(FileExists fileName)  _stdbool

  fileName : _string
Check if file exists

procedure

(DirectoryExists dirPath)  _stdbool

  dirPath : _string
Check if a directory path exists

procedure

(IsFileExtension fileName ext)  _stdbool

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

procedure

(GetFileExtension fileName)  _string

  fileName : _string
Get pointer to extension for a filename string (includes dot: ’.png’)

procedure

(GetFileName filePath)  _string

  filePath : _string
Get pointer to filename for a path string

procedure

(GetFileNameWithoutExt filePath)  _string

  filePath : _string
Get filename string without extension (uses static string)

procedure

(GetDirectoryPath filePath)  _string

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

procedure

(GetPrevDirectoryPath dirPath)  _string

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

procedure

(GetWorkingDirectory)  _string

Get current working directory (uses static string)

procedure

(GetDirectoryFiles dirPath count)

  (_pointer-to (_pointer-to _byte))
  dirPath : _string
  count : (_pointer-to _int)
Get filenames in a directory path (memory should be freed)

procedure

(ClearDirectoryFiles)  _void

Clear directory files paths buffers (free memory)

procedure

(ChangeDirectory dir)  _stdbool

  dir : _string
Change working directory, return true on success

procedure

(IsFileDropped)  _stdbool

Check if a file has been dropped into window

procedure

(GetDroppedFiles count)  (_pointer-to (_pointer-to _byte))

  count : (_pointer-to _int)
Get dropped files names (memory should be freed)

procedure

(ClearDroppedFiles)  _void

Clear dropped files paths buffer (free memory)

procedure

(GetFileModTime fileName)  _long

  fileName : _string
Get file modification time (last write time)

procedure

(CompressData data    
  dataLength    
  compDataLength)  (_pointer-to _ubyte)
  data : (_pointer-to _ubyte)
  dataLength : _int
  compDataLength : (_pointer-to _int)
Compress data (DEFLATE algorithm)

procedure

(DecompressData compData    
  compDataLength    
  dataLength)  (_pointer-to _ubyte)
  compData : (_pointer-to _ubyte)
  compDataLength : _int
  dataLength : (_pointer-to _int)
Decompress data (DEFLATE algorithm)

procedure

(EncodeDataBase64 data    
  dataLength    
  outputLength)  (_pointer-to _byte)
  data : (_pointer-to _ubyte)
  dataLength : _int
  outputLength : (_pointer-to _int)
Encode data to Base64 string

procedure

(DecodeDataBase64 data outputLength)  (_pointer-to _ubyte)

  data : (_pointer-to _ubyte)
  outputLength : (_pointer-to _int)
Decode Base64 string data

procedure

(SaveStorageValue position value)  _stdbool

  position : _uint
  value : _int
Save integer value to storage file (to defined position), returns true on success

procedure

(LoadStorageValue position)  _int

  position : _uint
Load integer value from storage file (from defined position)

procedure

(OpenURL url)  _void

  url : _string
Open URL with default system browser (if available)

procedure

(IsKeyPressed key)  _stdbool

  key : _int
Check if a key has been pressed once

procedure

(IsKeyDown key)  _stdbool

  key : _int
Check if a key is being pressed

procedure

(IsKeyReleased key)  _stdbool

  key : _int
Check if a key has been released once

procedure

(IsKeyUp key)  _stdbool

  key : _int
Check if a key is NOT being pressed

procedure

(SetExitKey key)  _void

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

procedure

(GetKeyPressed)  _int

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

procedure

(GetCharPressed)  _int

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

procedure

(IsGamepadAvailable gamepad)  _stdbool

  gamepad : _int
Check if a gamepad is available

procedure

(GetGamepadName gamepad)  _string

  gamepad : _int
Get gamepad internal name id

procedure

(IsGamepadButtonPressed gamepad button)  _stdbool

  gamepad : _int
  button : _int
Check if a gamepad button has been pressed once

procedure

(IsGamepadButtonDown gamepad button)  _stdbool

  gamepad : _int
  button : _int
Check if a gamepad button is being pressed

procedure

(IsGamepadButtonReleased gamepad button)  _stdbool

  gamepad : _int
  button : _int
Check if a gamepad button has been released once

procedure

(IsGamepadButtonUp gamepad button)  _stdbool

  gamepad : _int
  button : _int
Check if a gamepad button is NOT being pressed

procedure

(GetGamepadButtonPressed)  _int

Get the last gamepad button pressed

procedure

(GetGamepadAxisCount gamepad)  _int

  gamepad : _int
Get gamepad axis count for a gamepad

procedure

(GetGamepadAxisMovement gamepad axis)  _float

  gamepad : _int
  axis : _int
Get axis movement value for a gamepad axis

procedure

(SetGamepadMappings mappings)  _int

  mappings : _string
Set internal gamepad mappings (SDL_GameControllerDB)

procedure

(IsMouseButtonPressed button)  _stdbool

  button : _int
Check if a mouse button has been pressed once

procedure

(IsMouseButtonDown button)  _stdbool

  button : _int
Check if a mouse button is being pressed

procedure

(IsMouseButtonReleased button)  _stdbool

  button : _int
Check if a mouse button has been released once

procedure

(IsMouseButtonUp button)  _stdbool

  button : _int
Check if a mouse button is NOT being pressed

procedure

(GetMouseX)  _int

Get mouse position X

procedure

(GetMouseY)  _int

Get mouse position Y

procedure

(GetMousePosition)  _Vector2

Get mouse position XY

procedure

(GetMouseDelta)  _Vector2

Get mouse delta between frames

procedure

(SetMousePosition x y)  _void

  x : _int
  y : _int
Set mouse position XY

procedure

(SetMouseOffset offsetX offsetY)  _void

  offsetX : _int
  offsetY : _int
Set mouse offset

procedure

(SetMouseScale scaleX scaleY)  _void

  scaleX : _float
  scaleY : _float
Set mouse scaling

procedure

(GetMouseWheelMove)  _float

Get mouse wheel movement Y

procedure

(SetMouseCursor cursor)  _void

  cursor : _int
Set mouse cursor

procedure

(GetTouchX)  _int

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

procedure

(GetTouchY)  _int

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

procedure

(GetTouchPosition index)  _Vector2

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

procedure

(GetTouchPointId index)  _int

  index : _int
Get touch point identifier for given index

procedure

(GetTouchPointCount)  _int

Get number of touch points

procedure

(SetGesturesEnabled flags)  _void

  flags : _uint
Enable a set of gestures using flags

procedure

(IsGestureDetected gesture)  _stdbool

  gesture : _int
Check if a gesture have been detected

procedure

(GetGestureDetected)  _int

Get latest detected gesture

Get gesture hold time in milliseconds

Get gesture drag vector

procedure

(GetGestureDragAngle)  _float

Get gesture drag angle

Get gesture pinch delta

procedure

(GetGesturePinchAngle)  _float

Get gesture pinch angle

procedure

(SetCameraMode camera mode)  _void

  camera : _Camera
  mode : _int
Set camera mode (multiple camera modes available)

procedure

(UpdateCamera camera)  _void

  camera : (_pointer-to _Camera)
Update camera position for selected mode

procedure

(SetCameraPanControl keyPan)  _void

  keyPan : _int
Set camera pan key to combine with mouse movement (free camera)

procedure

(SetCameraAltControl keyAlt)  _void

  keyAlt : _int
Set camera alt key to combine with mouse movement (free camera)

procedure

(SetCameraSmoothZoomControl keySmoothZoom)  _void

  keySmoothZoom : _int
Set camera smooth zoom key to combine with mouse (free camera)

procedure

(SetCameraMoveControls keyFront    
  keyBack    
  keyRight    
  keyLeft    
  keyUp    
  keyDown)  _void
  keyFront : _int
  keyBack : _int
  keyRight : _int
  keyLeft : _int
  keyUp : _int
  keyDown : _int
Set camera move controls (1st person and 3rd person cameras)

procedure

(SetShapesTexture texture source)  _void

  texture : _Texture2D
  source : _Rectangle
Set texture and rectangle to be used on shapes drawing

procedure

(DrawPixel posX posY color)  _void

  posX : _int
  posY : _int
  color : _Color
Draw a pixel

procedure

(DrawPixelV position color)  _void

  position : _Vector2
  color : _Color
Draw a pixel (Vector version)

procedure

(DrawLine startPosX    
  startPosY    
  endPosX    
  endPosY    
  color)  _void
  startPosX : _int
  startPosY : _int
  endPosX : _int
  endPosY : _int
  color : _Color
Draw a line

procedure

(DrawLineV startPos endPos color)  _void

  startPos : _Vector2
  endPos : _Vector2
  color : _Color
Draw a line (Vector version)

procedure

(DrawLineEx startPos endPos thick color)  _void

  startPos : _Vector2
  endPos : _Vector2
  thick : _float
  color : _Color
Draw a line defining thickness

procedure

(DrawLineBezier startPos endPos thick color)  _void

  startPos : _Vector2
  endPos : _Vector2
  thick : _float
  color : _Color
Draw a line using cubic-bezier curves in-out

procedure

(DrawLineBezierQuad startPos    
  endPos    
  controlPos    
  thick    
  color)  _void
  startPos : _Vector2
  endPos : _Vector2
  controlPos : _Vector2
  thick : _float
  color : _Color
Draw line using quadratic bezier curves with a control point

procedure

(DrawLineBezierCubic startPos    
  endPos    
  startControlPos    
  endControlPos    
  thick    
  color)  _void
  startPos : _Vector2
  endPos : _Vector2
  startControlPos : _Vector2
  endControlPos : _Vector2
  thick : _float
  color : _Color
Draw line using cubic bezier curves with 2 control points

procedure

(DrawLineStrip points pointCount color)  _void

  points : (_pointer-to _Vector2)
  pointCount : _int
  color : _Color
Draw lines sequence

procedure

(DrawCircle centerX centerY radius color)  _void

  centerX : _int
  centerY : _int
  radius : _float
  color : _Color
Draw a color-filled circle

procedure

(DrawCircleSector center    
  radius    
  startAngle    
  endAngle    
  segments    
  color)  _void
  center : _Vector2
  radius : _float
  startAngle : _float
  endAngle : _float
  segments : _int
  color : _Color
Draw a piece of a circle

procedure

(DrawCircleSectorLines center    
  radius    
  startAngle    
  endAngle    
  segments    
  color)  _void
  center : _Vector2
  radius : _float
  startAngle : _float
  endAngle : _float
  segments : _int
  color : _Color
Draw circle sector outline

procedure

(DrawCircleGradient centerX    
  centerY    
  radius    
  color1    
  color2)  _void
  centerX : _int
  centerY : _int
  radius : _float
  color1 : _Color
  color2 : _Color
Draw a gradient-filled circle

procedure

(DrawCircleV center radius color)  _void

  center : _Vector2
  radius : _float
  color : _Color
Draw a color-filled circle (Vector version)

procedure

(DrawCircleLines centerX    
  centerY    
  radius    
  color)  _void
  centerX : _int
  centerY : _int
  radius : _float
  color : _Color
Draw circle outline

procedure

(DrawEllipse centerX    
  centerY    
  radiusH    
  radiusV    
  color)  _void
  centerX : _int
  centerY : _int
  radiusH : _float
  radiusV : _float
  color : _Color
Draw ellipse

procedure

(DrawEllipseLines centerX    
  centerY    
  radiusH    
  radiusV    
  color)  _void
  centerX : _int
  centerY : _int
  radiusH : _float
  radiusV : _float
  color : _Color
Draw ellipse outline

procedure

(DrawRing center    
  innerRadius    
  outerRadius    
  startAngle    
  endAngle    
  segments    
  color)  _void
  center : _Vector2
  innerRadius : _float
  outerRadius : _float
  startAngle : _float
  endAngle : _float
  segments : _int
  color : _Color
Draw ring

procedure

(DrawRingLines center    
  innerRadius    
  outerRadius    
  startAngle    
  endAngle    
  segments    
  color)  _void
  center : _Vector2
  innerRadius : _float
  outerRadius : _float
  startAngle : _float
  endAngle : _float
  segments : _int
  color : _Color
Draw ring outline

procedure

(DrawRectangle posX posY width height color)  _void

  posX : _int
  posY : _int
  width : _int
  height : _int
  color : _Color
Draw a color-filled rectangle

procedure

(DrawRectangleV position size color)  _void

  position : _Vector2
  size : _Vector2
  color : _Color
Draw a color-filled rectangle (Vector version)

procedure

(DrawRectangleRec rec color)  _void

  rec : _Rectangle
  color : _Color
Draw a color-filled rectangle

procedure

(DrawRectanglePro rec origin rotation color)  _void

  rec : _Rectangle
  origin : _Vector2
  rotation : _float
  color : _Color
Draw a color-filled rectangle with pro parameters

procedure

(DrawRectangleGradientV posX    
  posY    
  width    
  height    
  color1    
  color2)  _void
  posX : _int
  posY : _int
  width : _int
  height : _int
  color1 : _Color
  color2 : _Color
Draw a vertical-gradient-filled rectangle

procedure

(DrawRectangleGradientH posX    
  posY    
  width    
  height    
  color1    
  color2)  _void
  posX : _int
  posY : _int
  width : _int
  height : _int
  color1 : _Color
  color2 : _Color
Draw a horizontal-gradient-filled rectangle

procedure

(DrawRectangleGradientEx rec    
  col1    
  col2    
  col3    
  col4)  _void
  rec : _Rectangle
  col1 : _Color
  col2 : _Color
  col3 : _Color
  col4 : _Color
Draw a gradient-filled rectangle with custom vertex colors

procedure

(DrawRectangleLines posX    
  posY    
  width    
  height    
  color)  _void
  posX : _int
  posY : _int
  width : _int
  height : _int
  color : _Color
Draw rectangle outline

procedure

(DrawRectangleLinesEx rec lineThick color)  _void

  rec : _Rectangle
  lineThick : _float
  color : _Color
Draw rectangle outline with extended parameters

procedure

(DrawRectangleRounded rec    
  roundness    
  segments    
  color)  _void
  rec : _Rectangle
  roundness : _float
  segments : _int
  color : _Color
Draw rectangle with rounded edges

procedure

(DrawRectangleRoundedLines rec    
  roundness    
  segments    
  lineThick    
  color)  _void
  rec : _Rectangle
  roundness : _float
  segments : _int
  lineThick : _float
  color : _Color
Draw rectangle with rounded edges outline

procedure

(DrawTriangle v1 v2 v3 color)  _void

  v1 : _Vector2
  v2 : _Vector2
  v3 : _Vector2
  color : _Color
Draw a color-filled triangle (vertex in counter-clockwise order!)

procedure

(DrawTriangleLines v1 v2 v3 color)  _void

  v1 : _Vector2
  v2 : _Vector2
  v3 : _Vector2
  color : _Color
Draw triangle outline (vertex in counter-clockwise order!)

procedure

(DrawTriangleFan points pointCount color)  _void

  points : (_pointer-to _Vector2)
  pointCount : _int
  color : _Color
Draw a triangle fan defined by points (first vertex is the center)

procedure

(DrawTriangleStrip points pointCount color)  _void

  points : (_pointer-to _Vector2)
  pointCount : _int
  color : _Color
Draw a triangle strip defined by points

procedure

(DrawPoly center sides radius rotation color)  _void

  center : _Vector2
  sides : _int
  radius : _float
  rotation : _float
  color : _Color
Draw a regular polygon (Vector version)

procedure

(DrawPolyLines center    
  sides    
  radius    
  rotation    
  color)  _void
  center : _Vector2
  sides : _int
  radius : _float
  rotation : _float
  color : _Color
Draw a polygon outline of n sides

procedure

(DrawPolyLinesEx center    
  sides    
  radius    
  rotation    
  lineThick    
  color)  _void
  center : _Vector2
  sides : _int
  radius : _float
  rotation : _float
  lineThick : _float
  color : _Color
Draw a polygon outline of n sides with extended parameters

procedure

(CheckCollisionRecs rec1 rec2)  _stdbool

  rec1 : _Rectangle
  rec2 : _Rectangle
Check collision between two rectangles

procedure

(CheckCollisionCircles center1    
  radius1    
  center2    
  radius2)  _stdbool
  center1 : _Vector2
  radius1 : _float
  center2 : _Vector2
  radius2 : _float
Check collision between two circles

procedure

(CheckCollisionCircleRec center radius rec)  _stdbool

  center : _Vector2
  radius : _float
  rec : _Rectangle
Check collision between circle and rectangle

procedure

(CheckCollisionPointRec point rec)  _stdbool

  point : _Vector2
  rec : _Rectangle
Check if point is inside rectangle

procedure

(CheckCollisionPointCircle point    
  center    
  radius)  _stdbool
  point : _Vector2
  center : _Vector2
  radius : _float
Check if point is inside circle

procedure

(CheckCollisionPointTriangle point p1 p2 p3)  _stdbool

  point : _Vector2
  p1 : _Vector2
  p2 : _Vector2
  p3 : _Vector2
Check if point is inside a triangle

procedure

(CheckCollisionLines startPos1    
  endPos1    
  startPos2    
  endPos2    
  collisionPoint)  _stdbool
  startPos1 : _Vector2
  endPos1 : _Vector2
  startPos2 : _Vector2
  endPos2 : _Vector2
  collisionPoint : (_pointer-to _Vector2)
Check the collision between two lines defined by two points each, returns collision point by reference

procedure

(CheckCollisionPointLine point    
  p1    
  p2    
  threshold)  _stdbool
  point : _Vector2
  p1 : _Vector2
  p2 : _Vector2
  threshold : _int
Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]

procedure

(GetCollisionRec rec1 rec2)  _Rectangle

  rec1 : _Rectangle
  rec2 : _Rectangle
Get collision rectangle for two rectangles collision

procedure

(LoadImage fileName)  _Image

  fileName : _string
Load image from file into CPU memory (RAM)

procedure

(LoadImageRaw fileName    
  width    
  height    
  format    
  headerSize)  _Image
  fileName : _string
  width : _int
  height : _int
  format : _int
  headerSize : _int
Load image from RAW file data

procedure

(LoadImageAnim fileName frames)  _Image

  fileName : _string
  frames : (_pointer-to _int)
Load image sequence from file (frames appended to image.data)

procedure

(LoadImageFromMemory fileType    
  fileData    
  dataSize)  _Image
  fileType : _string
  fileData : (_pointer-to _ubyte)
  dataSize : _int
Load image from memory buffer, fileType refers to extension: i.e. ’.png’

procedure

(LoadImageFromTexture texture)  _Image

  texture : _Texture2D
Load image from GPU texture data

procedure

(LoadImageFromScreen)  _Image

Load image from screen buffer and (screenshot)

procedure

(UnloadImage image)  _void

  image : _Image
Unload image from CPU memory (RAM)

procedure

(ExportImage image fileName)  _stdbool

  image : _Image
  fileName : _string
Export image data to file, returns true on success

procedure

(ExportImageAsCode image fileName)  _stdbool

  image : _Image
  fileName : _string
Export image as code file defining an array of bytes, returns true on success

procedure

(GenImageColor width height color)  _Image

  width : _int
  height : _int
  color : _Color
Generate image: plain color

procedure

(GenImageGradientV width height top bottom)  _Image

  width : _int
  height : _int
  top : _Color
  bottom : _Color
Generate image: vertical gradient

procedure

(GenImageGradientH width height left right)  _Image

  width : _int
  height : _int
  left : _Color
  right : _Color
Generate image: horizontal gradient

procedure

(GenImageGradientRadial width    
  height    
  density    
  inner    
  outer)  _Image
  width : _int
  height : _int
  density : _float
  inner : _Color
  outer : _Color
Generate image: radial gradient

procedure

(GenImageChecked width    
  height    
  checksX    
  checksY    
  col1    
  col2)  _Image
  width : _int
  height : _int
  checksX : _int
  checksY : _int
  col1 : _Color
  col2 : _Color
Generate image: checked

procedure

(GenImageWhiteNoise width height factor)  _Image

  width : _int
  height : _int
  factor : _float
Generate image: white noise

procedure

(GenImageCellular width height tileSize)  _Image

  width : _int
  height : _int
  tileSize : _int
Generate image: cellular algorithm, bigger tileSize means bigger cells

procedure

(ImageCopy image)  _Image

  image : _Image
Create an image duplicate (useful for transformations)

procedure

(ImageFromImage image rec)  _Image

  image : _Image
  rec : _Rectangle
Create an image from another image piece

procedure

(ImageText text fontSize color)  _Image

  text : _string
  fontSize : _int
  color : _Color
Create an image from text (default font)

procedure

(ImageTextEx font text fontSize spacing tint)  _Image

  font : _Font
  text : _string
  fontSize : _float
  spacing : _float
  tint : _Color
Create an image from text (custom sprite font)

procedure

(ImageFormat image newFormat)  _void

  image : (_pointer-to _Image)
  newFormat : _int
Convert image data to desired format

procedure

(ImageToPOT image fill)  _void

  image : (_pointer-to _Image)
  fill : _Color
Convert image to POT (power-of-two)

procedure

(ImageCrop image crop)  _void

  image : (_pointer-to _Image)
  crop : _Rectangle
Crop an image to a defined rectangle

procedure

(ImageAlphaCrop image threshold)  _void

  image : (_pointer-to _Image)
  threshold : _float
Crop image depending on alpha value

procedure

(ImageAlphaClear image color threshold)  _void

  image : (_pointer-to _Image)
  color : _Color
  threshold : _float
Clear alpha channel to desired color

procedure

(ImageAlphaMask image alphaMask)  _void

  image : (_pointer-to _Image)
  alphaMask : _Image
Apply alpha mask to image

procedure

(ImageAlphaPremultiply image)  _void

  image : (_pointer-to _Image)
Premultiply alpha channel

procedure

(ImageResize image newWidth newHeight)  _void

  image : (_pointer-to _Image)
  newWidth : _int
  newHeight : _int
Resize image (Bicubic scaling algorithm)

procedure

(ImageResizeNN image newWidth newHeight)  _void

  image : (_pointer-to _Image)
  newWidth : _int
  newHeight : _int
Resize image (Nearest-Neighbor scaling algorithm)

procedure

(ImageResizeCanvas image    
  newWidth    
  newHeight    
  offsetX    
  offsetY    
  fill)  _void
  image : (_pointer-to _Image)
  newWidth : _int
  newHeight : _int
  offsetX : _int
  offsetY : _int
  fill : _Color
Resize canvas and fill with color

procedure

(ImageMipmaps image)  _void

  image : (_pointer-to _Image)
Compute all mipmap levels for a provided image

procedure

(ImageDither image rBpp gBpp bBpp aBpp)  _void

  image : (_pointer-to _Image)
  rBpp : _int
  gBpp : _int
  bBpp : _int
  aBpp : _int
Dither image data to 16bpp or lower (Floyd-Steinberg dithering)

procedure

(ImageFlipVertical image)  _void

  image : (_pointer-to _Image)
Flip image vertically

procedure

(ImageFlipHorizontal image)  _void

  image : (_pointer-to _Image)
Flip image horizontally

procedure

(ImageRotateCW image)  _void

  image : (_pointer-to _Image)
Rotate image clockwise 90deg

procedure

(ImageRotateCCW image)  _void

  image : (_pointer-to _Image)
Rotate image counter-clockwise 90deg

procedure

(ImageColorTint image color)  _void

  image : (_pointer-to _Image)
  color : _Color
Modify image color: tint

procedure

(ImageColorInvert image)  _void

  image : (_pointer-to _Image)
Modify image color: invert

procedure

(ImageColorGrayscale image)  _void

  image : (_pointer-to _Image)
Modify image color: grayscale

procedure

(ImageColorContrast image contrast)  _void

  image : (_pointer-to _Image)
  contrast : _float
Modify image color: contrast (-100 to 100)

procedure

(ImageColorBrightness image brightness)  _void

  image : (_pointer-to _Image)
  brightness : _int
Modify image color: brightness (-255 to 255)

procedure

(ImageColorReplace image color replace)  _void

  image : (_pointer-to _Image)
  color : _Color
  replace : _Color
Modify image color: replace color

procedure

(LoadImageColors image)  (_pointer-to _Color)

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

procedure

(LoadImagePalette image    
  maxPaletteSize    
  colorCount)  (_pointer-to _Color)
  image : _Image
  maxPaletteSize : _int
  colorCount : (_pointer-to _int)
Load colors palette from image as a Color array (RGBA - 32bit)

procedure

(UnloadImageColors colors)  _void

  colors : (_pointer-to _Color)
Unload color data loaded with LoadImageColors()

procedure

(UnloadImagePalette colors)  _void

  colors : (_pointer-to _Color)
Unload colors palette loaded with LoadImagePalette()

procedure

(GetImageAlphaBorder image threshold)  _Rectangle

  image : _Image
  threshold : _float
Get image alpha border rectangle

procedure

(GetImageColor image x y)  _Color

  image : _Image
  x : _int
  y : _int
Get image pixel color at (x, y) position

procedure

(ImageClearBackground dst color)  _void

  dst : (_pointer-to _Image)
  color : _Color
Clear image background with given color

procedure

(ImageDrawPixel dst posX posY color)  _void

  dst : (_pointer-to _Image)
  posX : _int
  posY : _int
  color : _Color
Draw pixel within an image

procedure

(ImageDrawPixelV dst position color)  _void

  dst : (_pointer-to _Image)
  position : _Vector2
  color : _Color
Draw pixel within an image (Vector version)

procedure

(ImageDrawLine dst    
  startPosX    
  startPosY    
  endPosX    
  endPosY    
  color)  _void
  dst : (_pointer-to _Image)
  startPosX : _int
  startPosY : _int
  endPosX : _int
  endPosY : _int
  color : _Color
Draw line within an image

procedure

(ImageDrawLineV dst start end color)  _void

  dst : (_pointer-to _Image)
  start : _Vector2
  end : _Vector2
  color : _Color
Draw line within an image (Vector version)

procedure

(ImageDrawCircle dst    
  centerX    
  centerY    
  radius    
  color)  _void
  dst : (_pointer-to _Image)
  centerX : _int
  centerY : _int
  radius : _int
  color : _Color
Draw circle within an image

procedure

(ImageDrawCircleV dst center radius color)  _void

  dst : (_pointer-to _Image)
  center : _Vector2
  radius : _int
  color : _Color
Draw circle within an image (Vector version)

procedure

(ImageDrawRectangle dst    
  posX    
  posY    
  width    
  height    
  color)  _void
  dst : (_pointer-to _Image)
  posX : _int
  posY : _int
  width : _int
  height : _int
  color : _Color
Draw rectangle within an image

procedure

(ImageDrawRectangleV dst position size color)  _void

  dst : (_pointer-to _Image)
  position : _Vector2
  size : _Vector2
  color : _Color
Draw rectangle within an image (Vector version)

procedure

(ImageDrawRectangleRec dst rec color)  _void

  dst : (_pointer-to _Image)
  rec : _Rectangle
  color : _Color
Draw rectangle within an image

procedure

(ImageDrawRectangleLines dst rec thick color)  _void

  dst : (_pointer-to _Image)
  rec : _Rectangle
  thick : _int
  color : _Color
Draw rectangle lines within an image

procedure

(ImageDraw dst src srcRec dstRec tint)  _void

  dst : (_pointer-to _Image)
  src : _Image
  srcRec : _Rectangle
  dstRec : _Rectangle
  tint : _Color
Draw a source image within a destination image (tint applied to source)

procedure

(ImageDrawText dst    
  text    
  posX    
  posY    
  fontSize    
  color)  _void
  dst : (_pointer-to _Image)
  text : _string
  posX : _int
  posY : _int
  fontSize : _int
  color : _Color
Draw text (using default font) within an image (destination)

procedure

(ImageDrawTextEx dst    
  font    
  text    
  position    
  fontSize    
  spacing    
  tint)  _void
  dst : (_pointer-to _Image)
  font : _Font
  text : _string
  position : _Vector2
  fontSize : _float
  spacing : _float
  tint : _Color
Draw text (custom sprite font) within an image (destination)

procedure

(LoadTexture fileName)  _Texture2D

  fileName : _string
Load texture from file into GPU memory (VRAM)

procedure

(LoadTextureFromImage image)  _Texture2D

  image : _Image
Load texture from image data

procedure

(LoadTextureCubemap image layout)  _TextureCubemap

  image : _Image
  layout : _int
Load cubemap from image, multiple image cubemap layouts supported

procedure

(LoadRenderTexture width height)  _RenderTexture2D

  width : _int
  height : _int
Load texture for rendering (framebuffer)

procedure

(UnloadTexture texture)  _void

  texture : _Texture2D
Unload texture from GPU memory (VRAM)

procedure

(UnloadRenderTexture target)  _void

  target : _RenderTexture2D
Unload render texture from GPU memory (VRAM)

procedure

(UpdateTexture texture pixels)  _void

  texture : _Texture2D
  pixels : (_pointer-to _void)
Update GPU texture with new data

procedure

(UpdateTextureRec texture rec pixels)  _void

  texture : _Texture2D
  rec : _Rectangle
  pixels : (_pointer-to _void)
Update GPU texture rectangle with new data

procedure

(GenTextureMipmaps texture)  _void

  texture : (_pointer-to _Texture2D)
Generate GPU mipmaps for a texture

procedure

(SetTextureFilter texture filter)  _void

  texture : _Texture2D
  filter : _int
Set texture scaling filter mode

procedure

(SetTextureWrap texture wrap)  _void

  texture : _Texture2D
  wrap : _int
Set texture wrapping mode

procedure

(DrawTexture texture posX posY tint)  _void

  texture : _Texture2D
  posX : _int
  posY : _int
  tint : _Color
Draw a Texture2D

procedure

(DrawTextureV texture position tint)  _void

  texture : _Texture2D
  position : _Vector2
  tint : _Color
Draw a Texture2D with position defined as Vector2

procedure

(DrawTextureEx texture    
  position    
  rotation    
  scale    
  tint)  _void
  texture : _Texture2D
  position : _Vector2
  rotation : _float
  scale : _float
  tint : _Color
Draw a Texture2D with extended parameters

procedure

(DrawTextureRec texture source position tint)  _void

  texture : _Texture2D
  source : _Rectangle
  position : _Vector2
  tint : _Color
Draw a part of a texture defined by a rectangle

procedure

(DrawTextureQuad texture    
  tiling    
  offset    
  quad    
  tint)  _void
  texture : _Texture2D
  tiling : _Vector2
  offset : _Vector2
  quad : _Rectangle
  tint : _Color
Draw texture quad with tiling and offset parameters

procedure

(DrawTextureTiled texture    
  source    
  dest    
  origin    
  rotation    
  scale    
  tint)  _void
  texture : _Texture2D
  source : _Rectangle
  dest : _Rectangle
  origin : _Vector2
  rotation : _float
  scale : _float
  tint : _Color
Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.

procedure

(DrawTexturePro texture    
  source    
  dest    
  origin    
  rotation    
  tint)  _void
  texture : _Texture2D
  source : _Rectangle
  dest : _Rectangle
  origin : _Vector2
  rotation : _float
  tint : _Color
Draw a part of a texture defined by a rectangle with ’pro’ parameters

procedure

(DrawTextureNPatch texture    
  nPatchInfo    
  dest    
  origin    
  rotation    
  tint)  _void
  texture : _Texture2D
  nPatchInfo : _NPatchInfo
  dest : _Rectangle
  origin : _Vector2
  rotation : _float
  tint : _Color
Draws a texture (or part of it) that stretches or shrinks nicely

procedure

(DrawTexturePoly texture    
  center    
  points    
  texcoords    
  pointCount    
  tint)  _void
  texture : _Texture2D
  center : _Vector2
  points : (_pointer-to _Vector2)
  texcoords : (_pointer-to _Vector2)
  pointCount : _int
  tint : _Color
Draw a textured polygon

procedure

(Fade color alpha)  _Color

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

procedure

(ColorToInt color)  _int

  color : _Color
Get hexadecimal value for a Color

procedure

(ColorNormalize color)  _Vector4

  color : _Color
Get Color normalized as float [0..1]

procedure

(ColorFromNormalized normalized)  _Color

  normalized : _Vector4
Get Color from normalized values [0..1]

procedure

(ColorToHSV color)  _Vector3

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

procedure

(ColorFromHSV hue saturation value)  _Color

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

procedure

(ColorAlpha color alpha)  _Color

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

procedure

(ColorAlphaBlend dst src tint)  _Color

  dst : _Color
  src : _Color
  tint : _Color
Get src alpha-blended into dst color with tint

procedure

(GetColor hexValue)  _Color

  hexValue : _uint
Get Color structure from hexadecimal value

procedure

(GetPixelColor srcPtr format)  _Color

  srcPtr : (_pointer-to _void)
  format : _int
Get Color from a source pixel pointer of certain format

procedure

(SetPixelColor dstPtr color format)  _void

  dstPtr : (_pointer-to _void)
  color : _Color
  format : _int
Set color formatted into destination pixel pointer

procedure

(GetPixelDataSize width height format)  _int

  width : _int
  height : _int
  format : _int
Get pixel data size in bytes for certain format

procedure

(GetFontDefault)  _Font

Get the default Font

procedure

(LoadFont fileName)  _Font

  fileName : _string
Load font from file into GPU memory (VRAM)

procedure

(LoadFontEx fileName    
  fontSize    
  fontChars    
  glyphCount)  _Font
  fileName : _string
  fontSize : _int
  fontChars : (_pointer-to _int)
  glyphCount : _int
Load font from file with extended parameters

procedure

(LoadFontFromImage image key firstChar)  _Font

  image : _Image
  key : _Color
  firstChar : _int
Load font from Image (XNA style)

procedure

(LoadFontFromMemory fileType    
  fileData    
  dataSize    
  fontSize    
  fontChars    
  glyphCount)  _Font
  fileType : _string
  fileData : (_pointer-to _ubyte)
  dataSize : _int
  fontSize : _int
  fontChars : (_pointer-to _int)
  glyphCount : _int
Load font from memory buffer, fileType refers to extension: i.e. ’.ttf’

procedure

(LoadFontData fileData    
  dataSize    
  fontSize    
  fontChars    
  glyphCount    
  type)  (_pointer-to _GlyphInfo)
  fileData : (_pointer-to _ubyte)
  dataSize : _int
  fontSize : _int
  fontChars : (_pointer-to _int)
  glyphCount : _int
  type : _int
Load font data for further use

procedure

(GenImageFontAtlas chars    
  recs    
  glyphCount    
  fontSize    
  padding    
  packMethod)  _Image
  chars : (_pointer-to _GlyphInfo)
  recs : (_pointer-to (_pointer-to _Rectangle))
  glyphCount : _int
  fontSize : _int
  padding : _int
  packMethod : _int
Generate image font atlas using chars info

procedure

(UnloadFontData chars glyphCount)  _void

  chars : (_pointer-to _GlyphInfo)
  glyphCount : _int
Unload font chars info data (RAM)

procedure

(UnloadFont font)  _void

  font : _Font
Unload Font from GPU memory (VRAM)

procedure

(DrawFPS posX posY)  _void

  posX : _int
  posY : _int
Draw current FPS

procedure

(DrawText text posX posY fontSize color)  _void

  text : _string
  posX : _int
  posY : _int
  fontSize : _int
  color : _Color
Draw text (using default font)

procedure

(DrawTextEx font    
  text    
  position    
  fontSize    
  spacing    
  tint)  _void
  font : _Font
  text : _string
  position : _Vector2
  fontSize : _float
  spacing : _float
  tint : _Color
Draw text using font and additional parameters

procedure

(DrawTextPro font    
  text    
  position    
  origin    
  rotation    
  fontSize    
  spacing    
  tint)  _void
  font : _Font
  text : _string
  position : _Vector2
  origin : _Vector2
  rotation : _float
  fontSize : _float
  spacing : _float
  tint : _Color
Draw text using Font and pro parameters (rotation)

procedure

(DrawTextCodepoint font    
  codepoint    
  position    
  fontSize    
  tint)  _void
  font : _Font
  codepoint : _int
  position : _Vector2
  fontSize : _float
  tint : _Color
Draw one character (codepoint)

procedure

(MeasureText text fontSize)  _int

  text : _string
  fontSize : _int
Measure string width for default font

procedure

(MeasureTextEx font text fontSize spacing)  _Vector2

  font : _Font
  text : _string
  fontSize : _float
  spacing : _float
Measure string size for Font

procedure

(GetGlyphIndex font codepoint)  _int

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

procedure

(GetGlyphInfo font codepoint)  _GlyphInfo

  font : _Font
  codepoint : _int
Get glyph font info data for a codepoint (unicode character), fallback to ’?’ if not found

procedure

(GetGlyphAtlasRec font codepoint)  _Rectangle

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

procedure

(LoadCodepoints text count)  (_pointer-to _int)

  text : _string
  count : (_pointer-to _int)
Load all codepoints from a UTF-8 text string, codepoints count returned by parameter

procedure

(UnloadCodepoints codepoints)  _void

  codepoints : (_pointer-to _int)
Unload codepoints data from memory

procedure

(GetCodepointCount text)  _int

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

procedure

(GetCodepoint text bytesProcessed)  _int

  text : _string
  bytesProcessed : (_pointer-to _int)
Get next codepoint in a UTF-8 encoded string, 0x3f(’?’) is returned on failure

procedure

(CodepointToUTF8 codepoint byteSize)  _string

  codepoint : _int
  byteSize : (_pointer-to _int)
Encode one codepoint into UTF-8 byte array (array length returned as parameter)

procedure

(TextCodepointsToUTF8 codepoints length)  (_pointer-to _byte)

  codepoints : (_pointer-to _int)
  length : _int
Encode text as codepoints array into UTF-8 text string (WARNING: memory must be freed!)

procedure

(TextCopy dst src)  _int

  dst : (_pointer-to _byte)
  src : _string
Copy one string to another, returns bytes copied

procedure

(TextIsEqual text1 text2)  _stdbool

  text1 : _string
  text2 : _string
Check if two text string are equal

procedure

(TextLength text)  _uint

  text : _string
Get text length, checks for ’\0’ ending

procedure

(TextFormat text)  _string

  text : _string
Text formatting with variables (sprintf() style)

procedure

(TextSubtext text position length)  _string

  text : _string
  position : _int
  length : _int
Get a piece of a text string

procedure

(TextReplace text replace by)  (_pointer-to _byte)

  text : (_pointer-to _byte)
  replace : _string
  by : _string
Replace text string (WARNING: memory must be freed!)

procedure

(TextInsert text insert position)  (_pointer-to _byte)

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

procedure

(TextJoin textList count delimiter)  _string

  textList : (_pointer-to (_pointer-to _byte))
  count : _int
  delimiter : _string
Join text strings with delimiter

procedure

(TextSplit text delimiter count)

  (_pointer-to (_pointer-to _byte))
  text : _string
  delimiter : _byte
  count : (_pointer-to _int)
Split text into multiple strings

procedure

(TextAppend text append position)  _void

  text : (_pointer-to _byte)
  append : _string
  position : (_pointer-to _int)
Append text at specific position and move cursor!

procedure

(TextFindIndex text find)  _int

  text : _string
  find : _string
Find first text occurrence within a string

procedure

(TextToUpper text)  _string

  text : _string
Get upper case version of provided string

procedure

(TextToLower text)  _string

  text : _string
Get lower case version of provided string

procedure

(TextToPascal text)  _string

  text : _string
Get Pascal case notation version of provided string

procedure

(TextToInteger text)  _int

  text : _string
Get integer value from text (negative values not supported)

procedure

(DrawLine3D startPos endPos color)  _void

  startPos : _Vector3
  endPos : _Vector3
  color : _Color
Draw a line in 3D world space

procedure

(DrawPoint3D position color)  _void

  position : _Vector3
  color : _Color
Draw a point in 3D space, actually a small line

procedure

(DrawCircle3D center    
  radius    
  rotationAxis    
  rotationAngle    
  color)  _void
  center : _Vector3
  radius : _float
  rotationAxis : _Vector3
  rotationAngle : _float
  color : _Color
Draw a circle in 3D world space

procedure

(DrawTriangle3D v1 v2 v3 color)  _void

  v1 : _Vector3
  v2 : _Vector3
  v3 : _Vector3
  color : _Color
Draw a color-filled triangle (vertex in counter-clockwise order!)

procedure

(DrawTriangleStrip3D points    
  pointCount    
  color)  _void
  points : (_pointer-to _Vector3)
  pointCount : _int
  color : _Color
Draw a triangle strip defined by points

procedure

(DrawCube position width height length color)  _void

  position : _Vector3
  width : _float
  height : _float
  length : _float
  color : _Color
Draw cube

procedure

(DrawCubeV position size color)  _void

  position : _Vector3
  size : _Vector3
  color : _Color
Draw cube (Vector version)

procedure

(DrawCubeWires position    
  width    
  height    
  length    
  color)  _void
  position : _Vector3
  width : _float
  height : _float
  length : _float
  color : _Color
Draw cube wires

procedure

(DrawCubeWiresV position size color)  _void

  position : _Vector3
  size : _Vector3
  color : _Color
Draw cube wires (Vector version)

procedure

(DrawCubeTexture texture    
  position    
  width    
  height    
  length    
  color)  _void
  texture : _Texture2D
  position : _Vector3
  width : _float
  height : _float
  length : _float
  color : _Color
Draw cube textured

procedure

(DrawCubeTextureRec texture    
  source    
  position    
  width    
  height    
  length    
  color)  _void
  texture : _Texture2D
  source : _Rectangle
  position : _Vector3
  width : _float
  height : _float
  length : _float
  color : _Color
Draw cube with a region of a texture

procedure

(DrawSphere centerPos radius color)  _void

  centerPos : _Vector3
  radius : _float
  color : _Color
Draw sphere

procedure

(DrawSphereEx centerPos    
  radius    
  rings    
  slices    
  color)  _void
  centerPos : _Vector3
  radius : _float
  rings : _int
  slices : _int
  color : _Color
Draw sphere with extended parameters

procedure

(DrawSphereWires centerPos    
  radius    
  rings    
  slices    
  color)  _void
  centerPos : _Vector3
  radius : _float
  rings : _int
  slices : _int
  color : _Color
Draw sphere wires

procedure

(DrawCylinder position    
  radiusTop    
  radiusBottom    
  height    
  slices    
  color)  _void
  position : _Vector3
  radiusTop : _float
  radiusBottom : _float
  height : _float
  slices : _int
  color : _Color
Draw a cylinder/cone

procedure

(DrawCylinderEx startPos    
  endPos    
  startRadius    
  endRadius    
  sides    
  color)  _void
  startPos : _Vector3
  endPos : _Vector3
  startRadius : _float
  endRadius : _float
  sides : _int
  color : _Color
Draw a cylinder with base at startPos and top at endPos

procedure

(DrawCylinderWires position    
  radiusTop    
  radiusBottom    
  height    
  slices    
  color)  _void
  position : _Vector3
  radiusTop : _float
  radiusBottom : _float
  height : _float
  slices : _int
  color : _Color
Draw a cylinder/cone wires

procedure

(DrawCylinderWiresEx startPos    
  endPos    
  startRadius    
  endRadius    
  sides    
  color)  _void
  startPos : _Vector3
  endPos : _Vector3
  startRadius : _float
  endRadius : _float
  sides : _int
  color : _Color
Draw a cylinder wires with base at startPos and top at endPos

procedure

(DrawPlane centerPos size color)  _void

  centerPos : _Vector3
  size : _Vector2
  color : _Color
Draw a plane XZ

procedure

(DrawRay ray color)  _void

  ray : _Ray
  color : _Color
Draw a ray line

procedure

(DrawGrid slices spacing)  _void

  slices : _int
  spacing : _float
Draw a grid (centered at (0, 0, 0))

procedure

(LoadModel fileName)  _Model

  fileName : _string
Load model from files (meshes and materials)

procedure

(LoadModelFromMesh mesh)  _Model

  mesh : _Mesh
Load model from generated mesh (default material)

procedure

(UnloadModel model)  _void

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

procedure

(UnloadModelKeepMeshes model)  _void

  model : _Model
Unload model (but not meshes) from memory (RAM and/or VRAM)

procedure

(GetModelBoundingBox model)  _BoundingBox

  model : _Model
Compute model bounding box limits (considers all meshes)

procedure

(DrawModel model position scale tint)  _void

  model : _Model
  position : _Vector3
  scale : _float
  tint : _Color
Draw a model (with texture if set)

procedure

(DrawModelEx model    
  position    
  rotationAxis    
  rotationAngle    
  scale    
  tint)  _void
  model : _Model
  position : _Vector3
  rotationAxis : _Vector3
  rotationAngle : _float
  scale : _Vector3
  tint : _Color
Draw a model with extended parameters

procedure

(DrawModelWires model position scale tint)  _void

  model : _Model
  position : _Vector3
  scale : _float
  tint : _Color
Draw a model wires (with texture if set)

procedure

(DrawModelWiresEx model    
  position    
  rotationAxis    
  rotationAngle    
  scale    
  tint)  _void
  model : _Model
  position : _Vector3
  rotationAxis : _Vector3
  rotationAngle : _float
  scale : _Vector3
  tint : _Color
Draw a model wires (with texture if set) with extended parameters

procedure

(DrawBoundingBox box color)  _void

  box : _BoundingBox
  color : _Color
Draw bounding box (wires)

procedure

(DrawBillboard camera    
  texture    
  position    
  size    
  tint)  _void
  camera : _Camera
  texture : _Texture2D
  position : _Vector3
  size : _float
  tint : _Color
Draw a billboard texture

procedure

(DrawBillboardRec camera    
  texture    
  source    
  position    
  size    
  tint)  _void
  camera : _Camera
  texture : _Texture2D
  source : _Rectangle
  position : _Vector3
  size : _Vector2
  tint : _Color
Draw a billboard texture defined by source

procedure

(DrawBillboardPro camera    
  texture    
  source    
  position    
  up    
  size    
  origin    
  rotation    
  tint)  _void
  camera : _Camera
  texture : _Texture2D
  source : _Rectangle
  position : _Vector3
  up : _Vector3
  size : _Vector2
  origin : _Vector2
  rotation : _float
  tint : _Color
Draw a billboard texture defined by source and rotation

procedure

(UploadMesh mesh dynamic)  _void

  mesh : (_pointer-to _Mesh)
  dynamic : _stdbool
Upload mesh vertex data in GPU and provide VAO/VBO ids

procedure

(UpdateMeshBuffer mesh    
  index    
  data    
  dataSize    
  offset)  _void
  mesh : _Mesh
  index : _int
  data : (_pointer-to _void)
  dataSize : _int
  offset : _int
Update mesh vertex data in GPU for a specific buffer index

procedure

(UnloadMesh mesh)  _void

  mesh : _Mesh
Unload mesh data from CPU and GPU

procedure

(DrawMesh mesh material transform)  _void

  mesh : _Mesh
  material : _Material
  transform : _Matrix
Draw a 3d mesh with material and transform

procedure

(DrawMeshInstanced mesh    
  material    
  transforms    
  instances)  _void
  mesh : _Mesh
  material : _Material
  transforms : (_pointer-to _Matrix)
  instances : _int
Draw multiple mesh instances with material and different transforms

procedure

(ExportMesh mesh fileName)  _stdbool

  mesh : _Mesh
  fileName : _string
Export mesh data to file, returns true on success

procedure

(GetMeshBoundingBox mesh)  _BoundingBox

  mesh : _Mesh
Compute mesh bounding box limits

procedure

(GenMeshTangents mesh)  _void

  mesh : (_pointer-to _Mesh)
Compute mesh tangents

procedure

(GenMeshBinormals mesh)  _void

  mesh : (_pointer-to _Mesh)
Compute mesh binormals

procedure

(GenMeshPoly sides radius)  _Mesh

  sides : _int
  radius : _float
Generate polygonal mesh

procedure

(GenMeshPlane width length resX resZ)  _Mesh

  width : _float
  length : _float
  resX : _int
  resZ : _int
Generate plane mesh (with subdivisions)

procedure

(GenMeshCube width height length)  _Mesh

  width : _float
  height : _float
  length : _float
Generate cuboid mesh

procedure

(GenMeshSphere radius rings slices)  _Mesh

  radius : _float
  rings : _int
  slices : _int
Generate sphere mesh (standard sphere)

procedure

(GenMeshHemiSphere radius rings slices)  _Mesh

  radius : _float
  rings : _int
  slices : _int
Generate half-sphere mesh (no bottom cap)

procedure

(GenMeshCylinder radius height slices)  _Mesh

  radius : _float
  height : _float
  slices : _int
Generate cylinder mesh

procedure

(GenMeshCone radius height slices)  _Mesh

  radius : _float
  height : _float
  slices : _int
Generate cone/pyramid mesh

procedure

(GenMeshTorus radius size radSeg sides)  _Mesh

  radius : _float
  size : _float
  radSeg : _int
  sides : _int
Generate torus mesh

procedure

(GenMeshKnot radius size radSeg sides)  _Mesh

  radius : _float
  size : _float
  radSeg : _int
  sides : _int
Generate trefoil knot mesh

procedure

(GenMeshHeightmap heightmap size)  _Mesh

  heightmap : _Image
  size : _Vector3
Generate heightmap mesh from image data

procedure

(GenMeshCubicmap cubicmap cubeSize)  _Mesh

  cubicmap : _Image
  cubeSize : _Vector3
Generate cubes-based map mesh from image data

procedure

(LoadMaterials fileName materialCount)  (_pointer-to _Material)

  fileName : _string
  materialCount : (_pointer-to _int)
Load materials from model file

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

procedure

(UnloadMaterial material)  _void

  material : _Material
Unload material from GPU memory (VRAM)

procedure

(SetMaterialTexture material    
  mapType    
  texture)  _void
  material : (_pointer-to _Material)
  mapType : _int
  texture : _Texture2D
Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)

procedure

(SetModelMeshMaterial model    
  meshId    
  materialId)  _void
  model : (_pointer-to _Model)
  meshId : _int
  materialId : _int
Set material for a mesh

procedure

(LoadModelAnimations fileName animCount)

  (_pointer-to _ModelAnimation)
  fileName : _string
  animCount : (_pointer-to _uint)
Load model animations from file

procedure

(UpdateModelAnimation model anim frame)  _void

  model : _Model
  anim : _ModelAnimation
  frame : _int
Update model animation pose

procedure

(UnloadModelAnimation anim)  _void

  anim : _ModelAnimation
Unload animation data

procedure

(UnloadModelAnimations animations count)  _void

  animations : (_pointer-to _ModelAnimation)
  count : _uint
Unload animation array data

procedure

(IsModelAnimationValid model anim)  _stdbool

  model : _Model
  anim : _ModelAnimation
Check model animation skeleton match

procedure

(CheckCollisionSpheres center1    
  radius1    
  center2    
  radius2)  _stdbool
  center1 : _Vector3
  radius1 : _float
  center2 : _Vector3
  radius2 : _float
Check collision between two spheres

procedure

(CheckCollisionBoxes box1 box2)  _stdbool

  box1 : _BoundingBox
  box2 : _BoundingBox
Check collision between two bounding boxes

procedure

(CheckCollisionBoxSphere box center radius)  _stdbool

  box : _BoundingBox
  center : _Vector3
  radius : _float
Check collision between box and sphere

procedure

(GetRayCollisionSphere ray center radius)  _RayCollision

  ray : _Ray
  center : _Vector3
  radius : _float
Get collision info between ray and sphere

procedure

(GetRayCollisionBox ray box)  _RayCollision

  ray : _Ray
  box : _BoundingBox
Get collision info between ray and box

procedure

(GetRayCollisionModel ray model)  _RayCollision

  ray : _Ray
  model : _Model
Get collision info between ray and model

procedure

(GetRayCollisionMesh ray mesh transform)  _RayCollision

  ray : _Ray
  mesh : _Mesh
  transform : _Matrix
Get collision info between ray and mesh

procedure

(GetRayCollisionTriangle ray p1 p2 p3)  _RayCollision

  ray : _Ray
  p1 : _Vector3
  p2 : _Vector3
  p3 : _Vector3
Get collision info between ray and triangle

procedure

(GetRayCollisionQuad ray p1 p2 p3 p4)  _RayCollision

  ray : _Ray
  p1 : _Vector3
  p2 : _Vector3
  p3 : _Vector3
  p4 : _Vector3
Get collision info between ray and quad

procedure

(InitAudioDevice)  _void

Initialize audio device and context

procedure

(CloseAudioDevice)  _void

Close the audio device and context

procedure

(IsAudioDeviceReady)  _stdbool

Check if audio device has been initialized successfully

procedure

(SetMasterVolume volume)  _void

  volume : _float
Set master volume (listener)

procedure

(LoadWave fileName)  _Wave

  fileName : _string
Load wave data from file

procedure

(LoadWaveFromMemory fileType    
  fileData    
  dataSize)  _Wave
  fileType : _string
  fileData : (_pointer-to _ubyte)
  dataSize : _int
Load wave from memory buffer, fileType refers to extension: i.e. ’.wav’

procedure

(LoadSound fileName)  _Sound

  fileName : _string
Load sound from file

procedure

(LoadSoundFromWave wave)  _Sound

  wave : _Wave
Load sound from wave data

procedure

(UpdateSound sound data sampleCount)  _void

  sound : _Sound
  data : (_pointer-to _void)
  sampleCount : _int
Update sound buffer with new data

procedure

(UnloadWave wave)  _void

  wave : _Wave
Unload wave data

procedure

(UnloadSound sound)  _void

  sound : _Sound
Unload sound

procedure

(ExportWave wave fileName)  _stdbool

  wave : _Wave
  fileName : _string
Export wave data to file, returns true on success

procedure

(ExportWaveAsCode wave fileName)  _stdbool

  wave : _Wave
  fileName : _string
Export wave sample data to code (.h), returns true on success

procedure

(PlaySound sound)  _void

  sound : _Sound
Play a sound

procedure

(StopSound sound)  _void

  sound : _Sound
Stop playing a sound

procedure

(PauseSound sound)  _void

  sound : _Sound
Pause a sound

procedure

(ResumeSound sound)  _void

  sound : _Sound
Resume a paused sound

procedure

(PlaySoundMulti sound)  _void

  sound : _Sound
Play a sound (using multichannel buffer pool)

procedure

(StopSoundMulti)  _void

Stop any sound playing (using multichannel buffer pool)

procedure

(GetSoundsPlaying)  _int

Get number of sounds playing in the multichannel

procedure

(IsSoundPlaying sound)  _stdbool

  sound : _Sound
Check if a sound is currently playing

procedure

(SetSoundVolume sound volume)  _void

  sound : _Sound
  volume : _float
Set volume for a sound (1.0 is max level)

procedure

(SetSoundPitch sound pitch)  _void

  sound : _Sound
  pitch : _float
Set pitch for a sound (1.0 is base level)

procedure

(WaveFormat wave    
  sampleRate    
  sampleSize    
  channels)  _void
  wave : (_pointer-to _Wave)
  sampleRate : _int
  sampleSize : _int
  channels : _int
Convert wave data to desired format

procedure

(WaveCopy wave)  _Wave

  wave : _Wave
Copy a wave to a new wave

procedure

(WaveCrop wave initSample finalSample)  _void

  wave : (_pointer-to _Wave)
  initSample : _int
  finalSample : _int
Crop a wave to defined samples range

procedure

(LoadWaveSamples wave)  (_pointer-to _float)

  wave : _Wave
Load samples data from wave as a floats array

procedure

(UnloadWaveSamples samples)  _void

  samples : (_pointer-to _float)
Unload samples data loaded with LoadWaveSamples()

procedure

(LoadMusicStream fileName)  _Music

  fileName : _string
Load music stream from file

procedure

(LoadMusicStreamFromMemory fileType    
  data    
  dataSize)  _Music
  fileType : _string
  data : (_pointer-to _ubyte)
  dataSize : _int
Load music stream from data

procedure

(UnloadMusicStream music)  _void

  music : _Music
Unload music stream

procedure

(PlayMusicStream music)  _void

  music : _Music
Start music playing

procedure

(IsMusicStreamPlaying music)  _stdbool

  music : _Music
Check if music is playing

procedure

(UpdateMusicStream music)  _void

  music : _Music
Updates buffers for music streaming

procedure

(StopMusicStream music)  _void

  music : _Music
Stop music playing

procedure

(PauseMusicStream music)  _void

  music : _Music
Pause music playing

procedure

(ResumeMusicStream music)  _void

  music : _Music
Resume playing paused music

procedure

(SeekMusicStream music position)  _void

  music : _Music
  position : _float
Seek music to a position (in seconds)

procedure

(SetMusicVolume music volume)  _void

  music : _Music
  volume : _float
Set volume for music (1.0 is max level)

procedure

(SetMusicPitch music pitch)  _void

  music : _Music
  pitch : _float
Set pitch for a music (1.0 is base level)

procedure

(GetMusicTimeLength music)  _float

  music : _Music
Get music time length (in seconds)

procedure

(GetMusicTimePlayed music)  _float

  music : _Music
Get current music time played (in seconds)

procedure

(LoadAudioStream sampleRate    
  sampleSize    
  channels)  _AudioStream
  sampleRate : _uint
  sampleSize : _uint
  channels : _uint
Load audio stream (to stream raw audio pcm data)

procedure

(UnloadAudioStream stream)  _void

  stream : _AudioStream
Unload audio stream and free memory

procedure

(UpdateAudioStream stream data frameCount)  _void

  stream : _AudioStream
  data : (_pointer-to _void)
  frameCount : _int
Update audio stream buffers with data

procedure

(IsAudioStreamProcessed stream)  _stdbool

  stream : _AudioStream
Check if any audio stream buffers requires refill

procedure

(PlayAudioStream stream)  _void

  stream : _AudioStream
Play audio stream

procedure

(PauseAudioStream stream)  _void

  stream : _AudioStream
Pause audio stream

procedure

(ResumeAudioStream stream)  _void

  stream : _AudioStream
Resume audio stream

procedure

(IsAudioStreamPlaying stream)  _stdbool

  stream : _AudioStream
Check if audio stream is playing

procedure

(StopAudioStream stream)  _void

  stream : _AudioStream
Stop audio stream

procedure

(SetAudioStreamVolume stream volume)  _void

  stream : _AudioStream
  volume : _float
Set volume for audio stream (1.0 is max level)

procedure

(SetAudioStreamPitch stream pitch)  _void

  stream : _AudioStream
  pitch : _float
Set pitch for audio stream (1.0 is base level)

procedure

(SetAudioStreamBufferSizeDefault size)  _void

  size : _int
Default size for new audio streams

2.2 Structs🔗ℹ

    2.2.1 Struct types

    2.2.2 Type aliases

    2.2.3 Callback function types

 (require raylib/generated/structs) package: raylib

2.2.1 Struct types🔗ℹ

value

_Vector2 : ctype?

struct

(struct Vector2 (x y)
    #:constructor-name make-Vector2)
  x : _float
  y : _float
Vector2, 2 components

value

_Vector3 : ctype?

struct

(struct Vector3 (x y z)
    #:constructor-name make-Vector3)
  x : _float
  y : _float
  z : _float
Vector3, 3 components

value

_Vector4 : ctype?

struct

(struct Vector4 (x y z w)
    #:constructor-name make-Vector4)
  x : _float
  y : _float
  z : _float
  w : _float
Vector4, 4 components

value

_Matrix : ctype?

struct

(struct Matrix (m0
    m4
    m8
    m12
    m1
    m5
    m9
    m13
    m2
    m6
    m10
    m14
    m3
    m7
    m11
    m15)
    #:constructor-name make-Matrix)
  m0 : _float
  m4 : _float
  m8 : _float
  m12 : _float
  m1 : _float
  m5 : _float
  m9 : _float
  m13 : _float
  m2 : _float
  m6 : _float
  m10 : _float
  m14 : _float
  m3 : _float
  m7 : _float
  m11 : _float
  m15 : _float
Matrix, 4x4 components, column major, OpenGL style, right handed

value

_Color : ctype?

struct

(struct Color (r g b a)
    #:constructor-name make-Color)
  r : _ubyte
  g : _ubyte
  b : _ubyte
  a : _ubyte
Color, 4 components, R8G8B8A8 (32bit)

value

_Rectangle : ctype?

struct

(struct Rectangle (x y width height)
    #:constructor-name make-Rectangle)
  x : _float
  y : _float
  width : _float
  height : _float
Rectangle, 4 components

value

_Image : ctype?

struct

(struct Image (data width height mipmaps format)
    #:constructor-name make-Image)
  data : (_pointer-to _void)
  width : _int
  height : _int
  mipmaps : _int
  format : _int
Image, pixel data stored in CPU memory (RAM)

value

_Texture : ctype?

struct

(struct Texture (id width height mipmaps format)
    #:constructor-name make-Texture)
  id : _uint
  width : _int
  height : _int
  mipmaps : _int
  format : _int
Texture, tex data stored in GPU memory (VRAM)

value

_RenderTexture : ctype?

struct

(struct RenderTexture (id texture depth)
    #:constructor-name make-RenderTexture)
  id : _uint
  texture : _Texture
  depth : _Texture
RenderTexture, fbo for texture rendering

value

_NPatchInfo : ctype?

struct

(struct NPatchInfo (source left top right bottom layout)
    #:constructor-name make-NPatchInfo)
  source : _Rectangle
  left : _int
  top : _int
  right : _int
  bottom : _int
  layout : _int
NPatchInfo, n-patch layout info

value

_GlyphInfo : ctype?

struct

(struct GlyphInfo (value offsetX offsetY advanceX image)
    #:constructor-name make-GlyphInfo)
  value : _int
  offsetX : _int
  offsetY : _int
  advanceX : _int
  image : _Image
GlyphInfo, font characters glyphs info

value

_Font : ctype?

struct

(struct Font (baseSize
    glyphCount
    glyphPadding
    texture
    recs
    glyphs)
    #:constructor-name make-Font)
  baseSize : _int
  glyphCount : _int
  glyphPadding : _int
  texture : _Texture2D
  recs : (_pointer-to _Rectangle)
  glyphs : (_pointer-to _GlyphInfo)
Font, font texture and GlyphInfo array data

value

_Camera3D : ctype?

struct

(struct Camera3D (position target up fovy projection)
    #:constructor-name make-Camera3D)
  position : _Vector3
  target : _Vector3
  up : _Vector3
  fovy : _float
  projection : _int
Camera, defines position/orientation in 3d space

value

_Camera2D : ctype?

struct

(struct Camera2D (offset target rotation zoom)
    #:constructor-name make-Camera2D)
  offset : _Vector2
  target : _Vector2
  rotation : _float
  zoom : _float
Camera2D, defines position/orientation in 2d space

value

_Mesh : ctype?

struct

(struct Mesh (vertexCount
    triangleCount
    vertices
    texcoords
    texcoords2
    normals
    tangents
    colors
    indices
    animVertices
    animNormals
    boneIds
    boneWeights
    vaoId
    vboId)
    #:constructor-name make-Mesh)
  vertexCount : _int
  triangleCount : _int
  vertices : (_pointer-to _float)
  texcoords : (_pointer-to _float)
  texcoords2 : (_pointer-to _float)
  normals : (_pointer-to _float)
  tangents : (_pointer-to _float)
  colors : (_pointer-to _ubyte)
  indices : (_pointer-to _ushort)
  animVertices : (_pointer-to _float)
  animNormals : (_pointer-to _float)
  boneIds : (_pointer-to _ubyte)
  boneWeights : (_pointer-to _float)
  vaoId : _uint
  vboId : (_pointer-to _uint)
Mesh, vertex data and vao/vbo

value

_Shader : ctype?

struct

(struct Shader (id locs)
    #:constructor-name make-Shader)
  id : _uint
  locs : (_pointer-to _int)
Shader

value

_MaterialMap : ctype?

struct

(struct MaterialMap (texture color value)
    #:constructor-name make-MaterialMap)
  texture : _Texture2D
  color : _Color
  value : _float
MaterialMap

value

_Material : ctype?

struct

(struct Material (shader maps params)
    #:constructor-name make-Material)
  shader : _Shader
  maps : (_pointer-to _MaterialMap)
  params : (_array _float 4)
Material, includes shader and maps

value

_Transform : ctype?

struct

(struct Transform (translation rotation scale)
    #:constructor-name make-Transform)
  translation : _Vector3
  rotation : _Quaternion
  scale : _Vector3
Transform, vectex transformation data

value

_BoneInfo : ctype?

struct

(struct BoneInfo (name parent)
    #:constructor-name make-BoneInfo)
  name : (_array _byte 32)
  parent : _int
Bone, skeletal animation bone

value

_Model : ctype?

struct

(struct Model (transform
    meshCount
    materialCount
    meshes
    materials
    meshMaterial
    boneCount
    bones
    bindPose)
    #:constructor-name make-Model)
  transform : _Matrix
  meshCount : _int
  materialCount : _int
  meshes : (_pointer-to _Mesh)
  materials : (_pointer-to _Material)
  meshMaterial : (_pointer-to _int)
  boneCount : _int
  bones : (_pointer-to _BoneInfo)
  bindPose : (_pointer-to _Transform)
Model, meshes, materials and animation data

value

_ModelAnimation : ctype?

struct

(struct ModelAnimation (boneCount frameCount bones framePoses)
    #:constructor-name make-ModelAnimation)
  boneCount : _int
  frameCount : _int
  bones : (_pointer-to _BoneInfo)
  framePoses : (_pointer-to (_pointer-to _Transform))
ModelAnimation

value

_Ray : ctype?

struct

(struct Ray (position direction)
    #:constructor-name make-Ray)
  position : _Vector3
  direction : _Vector3
Ray, ray for raycasting

value

_RayCollision : ctype?

struct

(struct RayCollision (hit distance point normal)
    #:constructor-name make-RayCollision)
  hit : _stdbool
  distance : _float
  point : _Vector3
  normal : _Vector3
RayCollision, ray hit information

value

_BoundingBox : ctype?

struct

(struct BoundingBox (min max)
    #:constructor-name make-BoundingBox)
  min : _Vector3
  max : _Vector3
BoundingBox

value

_Wave : ctype?

struct

(struct Wave (frameCount sampleRate sampleSize channels data)
    #:constructor-name make-Wave)
  frameCount : _uint
  sampleRate : _uint
  sampleSize : _uint
  channels : _uint
  data : (_pointer-to _void)
Wave, audio wave data

value

_AudioStream : ctype?

struct

(struct AudioStream (buffer sampleRate sampleSize channels)
    #:constructor-name make-AudioStream)
  buffer : (_pointer-to rAudioBuffer)
  sampleRate : _uint
  sampleSize : _uint
  channels : _uint
AudioStream, custom audio stream

value

_Sound : ctype?

struct

(struct Sound (stream frameCount)
    #:constructor-name make-Sound)
  stream : _AudioStream
  frameCount : _uint
Sound

value

_Music : ctype?

struct

(struct Music (stream frameCount looping ctxType ctxData)
    #:constructor-name make-Music)
  stream : _AudioStream
  frameCount : _uint
  looping : _stdbool
  ctxType : _int
  ctxData : (_pointer-to _void)
Music, audio stream, anything longer than ~10 seconds should be streamed

value

_VrDeviceInfo : ctype?

struct

(struct VrDeviceInfo (hResolution
    vResolution
    hScreenSize
    vScreenSize
    vScreenCenter
    eyeToScreenDistance
    lensSeparationDistance
    interpupillaryDistance
    lensDistortionValues
    chromaAbCorrection)
    #:constructor-name make-VrDeviceInfo)
  hResolution : _int
  vResolution : _int
  hScreenSize : _float
  vScreenSize : _float
  vScreenCenter : _float
  eyeToScreenDistance : _float
  lensSeparationDistance : _float
  interpupillaryDistance : _float
  lensDistortionValues : (_array _float 4)
  chromaAbCorrection : (_array _float 4)
VrDeviceInfo, Head-Mounted-Display device parameters

value

_VrStereoConfig : ctype?

struct

(struct VrStereoConfig (projection
    viewOffset
    leftLensCenter
    rightLensCenter
    leftScreenCenter
    rightScreenCenter
    scale
    scaleIn)
    #:constructor-name make-VrStereoConfig)
  projection : (_array _Matrix 2)
  viewOffset : (_array _Matrix 2)
  leftLensCenter : (_array _float 2)
  rightLensCenter : (_array _float 2)
  leftScreenCenter : (_array _float 2)
  rightScreenCenter : (_array _float 2)
  scale : (_array _float 2)
  scaleIn : (_array _float 2)
VrStereoConfig, VR stereo rendering configuration for simulator

2.2.2 Type aliases🔗ℹ

Aliases for some struct types.

2.2.3 Callback function types🔗ℹ

value

_TraceLogCallback : ctype?

 = 
(_fun
 [logLevel : _int]
 [text : _string]
 [args : _byte]
 -> _void)

value

_LoadFileDataCallback : ctype?

 = 
(_fun
 [fileName : _string]
 [bytesRead : (_pointer-to _uint)]
 -> (_pointer-to _ubyte))

value

_SaveFileDataCallback : ctype?

 = 
(_fun
 [fileName : _string]
 [data : (_pointer-to _void)]
 [bytesToWrite : _uint]
 -> _stdbool)

value

_LoadFileTextCallback : ctype?

 = 
(_fun
 [fileName : _string]
 -> (_pointer-to _byte))

value

_SaveFileTextCallback : ctype?

 = 
(_fun
 [fileName : _string]
 [text : (_pointer-to _byte)]
 -> _stdbool)
Types for certain callback functions.

2.3 Enums🔗ℹ

    2.3.1 System/Window config flags

    2.3.2 Trace log level

    2.3.3 Keyboard keys (US keyboard layout)

    2.3.4 Mouse buttons

    2.3.5 Mouse cursor

    2.3.6 Gamepad buttons

    2.3.7 Gamepad axis

    2.3.8 Material map index

    2.3.9 Shader location index

    2.3.10 Shader uniform data type

    2.3.11 Shader attribute data types

    2.3.12 Pixel formats

    2.3.13 Texture parameters: filter mode

    2.3.14 Texture parameters: wrap mode

    2.3.15 Cubemap layouts

    2.3.16 Font type, defines generation method

    2.3.17 Color blending modes (pre-defined)

    2.3.18 Gesture

    2.3.19 Camera system modes

    2.3.20 Camera projection

    2.3.21 N-patch layout

 (require raylib/generated/enums) package: raylib

2.3.1 System/Window config flags🔗ℹ

System/Window config flags
Set to try enabling V-Sync on GPU
Set to run program in fullscreen
Set to allow resizable window
Set to disable window decoration (frame and buttons)
Set to hide window
Set to minimize window (iconify)
Set to maximize window (expanded to monitor)
Set to window non focused
Set to window always on top
Set to allow windows running while minimized
Set to allow transparent framebuffer
Set to support HighDPI
Set to try enabling MSAA 4X
Set to try enabling interlaced video format (for V3D)

2.3.2 Trace log level🔗ℹ

Trace log level

value

LOG_ALL : exact-integer? = 0

Display all logs

value

LOG_TRACE : exact-integer? = 1

Trace logging, intended for internal use only

value

LOG_DEBUG : exact-integer? = 2

Debug logging, used for internal debugging, it should be disabled on release builds

value

LOG_INFO : exact-integer? = 3

Info logging, used for program execution info
Warning logging, used on recoverable failures

value

LOG_ERROR : exact-integer? = 5

Error logging, used on unrecoverable failures

value

LOG_FATAL : exact-integer? = 6

Fatal logging, used to abort program: exit(EXIT_FAILURE)

value

LOG_NONE : exact-integer? = 7

Disable logging

2.3.3 Keyboard keys (US keyboard layout)🔗ℹ

Keyboard keys (US keyboard layout)

value

KEY_NULL : exact-integer? = 0

Key: NULL, used for no key pressed
Key: ’

value

KEY_COMMA : exact-integer? = 44

Key: ,

value

KEY_MINUS : exact-integer? = 45

Key: -

value

KEY_PERIOD : exact-integer? = 46

Key: .

value

KEY_SLASH : exact-integer? = 47

Key: /

value

KEY_ZERO : exact-integer? = 48

Key: 0

value

KEY_ONE : exact-integer? = 49

Key: 1

value

KEY_TWO : exact-integer? = 50

Key: 2

value

KEY_THREE : exact-integer? = 51

Key: 3

value

KEY_FOUR : exact-integer? = 52

Key: 4

value

KEY_FIVE : exact-integer? = 53

Key: 5

value

KEY_SIX : exact-integer? = 54

Key: 6

value

KEY_SEVEN : exact-integer? = 55

Key: 7

value

KEY_EIGHT : exact-integer? = 56

Key: 8

value

KEY_NINE : exact-integer? = 57

Key: 9
Key: ;

value

KEY_EQUAL : exact-integer? = 61

Key: =

value

KEY_A : exact-integer? = 65

Key: A | a

value

KEY_B : exact-integer? = 66

Key: B | b

value

KEY_C : exact-integer? = 67

Key: C | c

value

KEY_D : exact-integer? = 68

Key: D | d

value

KEY_E : exact-integer? = 69

Key: E | e

value

KEY_F : exact-integer? = 70

Key: F | f

value

KEY_G : exact-integer? = 71

Key: G | g

value

KEY_H : exact-integer? = 72

Key: H | h

value

KEY_I : exact-integer? = 73

Key: I | i

value

KEY_J : exact-integer? = 74

Key: J | j

value

KEY_K : exact-integer? = 75

Key: K | k

value

KEY_L : exact-integer? = 76

Key: L | l

value

KEY_M : exact-integer? = 77

Key: M | m

value

KEY_N : exact-integer? = 78

Key: N | n

value

KEY_O : exact-integer? = 79

Key: O | o

value

KEY_P : exact-integer? = 80

Key: P | p

value

KEY_Q : exact-integer? = 81

Key: Q | q

value

KEY_R : exact-integer? = 82

Key: R | r

value

KEY_S : exact-integer? = 83

Key: S | s

value

KEY_T : exact-integer? = 84

Key: T | t

value

KEY_U : exact-integer? = 85

Key: U | u

value

KEY_V : exact-integer? = 86

Key: V | v

value

KEY_W : exact-integer? = 87

Key: W | w

value

KEY_X : exact-integer? = 88

Key: X | x

value

KEY_Y : exact-integer? = 89

Key: Y | y

value

KEY_Z : exact-integer? = 90

Key: Z | z
Key: [
Key: ’\’
Key: ]

value

KEY_GRAVE : exact-integer? = 96

Key: ‘

value

KEY_SPACE : exact-integer? = 32

Key: Space

value

KEY_ESCAPE : exact-integer? = 256

Key: Esc

value

KEY_ENTER : exact-integer? = 257

Key: Enter

value

KEY_TAB : exact-integer? = 258

Key: Tab

value

KEY_BACKSPACE : exact-integer? = 259

Key: Backspace

value

KEY_INSERT : exact-integer? = 260

Key: Ins

value

KEY_DELETE : exact-integer? = 261

Key: Del

value

KEY_RIGHT : exact-integer? = 262

Key: Cursor right

value

KEY_LEFT : exact-integer? = 263

Key: Cursor left

value

KEY_DOWN : exact-integer? = 264

Key: Cursor down

value

KEY_UP : exact-integer? = 265

Key: Cursor up

value

KEY_PAGE_UP : exact-integer? = 266

Key: Page up

value

KEY_PAGE_DOWN : exact-integer? = 267

Key: Page down

value

KEY_HOME : exact-integer? = 268

Key: Home

value

KEY_END : exact-integer? = 269

Key: End

value

KEY_CAPS_LOCK : exact-integer? = 280

Key: Caps lock
Key: Scroll down

value

KEY_NUM_LOCK : exact-integer? = 282

Key: Num lock
Key: Print screen

value

KEY_PAUSE : exact-integer? = 284

Key: Pause

value

KEY_F1 : exact-integer? = 290

Key: F1

value

KEY_F2 : exact-integer? = 291

Key: F2

value

KEY_F3 : exact-integer? = 292

Key: F3

value

KEY_F4 : exact-integer? = 293

Key: F4

value

KEY_F5 : exact-integer? = 294

Key: F5

value

KEY_F6 : exact-integer? = 295

Key: F6

value

KEY_F7 : exact-integer? = 296

Key: F7

value

KEY_F8 : exact-integer? = 297

Key: F8

value

KEY_F9 : exact-integer? = 298

Key: F9

value

KEY_F10 : exact-integer? = 299

Key: F10

value

KEY_F11 : exact-integer? = 300

Key: F11

value

KEY_F12 : exact-integer? = 301

Key: F12
Key: Shift left
Key: Control left

value

KEY_LEFT_ALT : exact-integer? = 342

Key: Alt left
Key: Super left
Key: Shift right
Key: Control right

value

KEY_RIGHT_ALT : exact-integer? = 346

Key: Alt right
Key: Super right

value

KEY_KB_MENU : exact-integer? = 348

Key: KB menu

value

KEY_KP_0 : exact-integer? = 320

Key: Keypad 0

value

KEY_KP_1 : exact-integer? = 321

Key: Keypad 1

value

KEY_KP_2 : exact-integer? = 322

Key: Keypad 2

value

KEY_KP_3 : exact-integer? = 323

Key: Keypad 3

value

KEY_KP_4 : exact-integer? = 324

Key: Keypad 4

value

KEY_KP_5 : exact-integer? = 325

Key: Keypad 5

value

KEY_KP_6 : exact-integer? = 326

Key: Keypad 6

value

KEY_KP_7 : exact-integer? = 327

Key: Keypad 7

value

KEY_KP_8 : exact-integer? = 328

Key: Keypad 8

value

KEY_KP_9 : exact-integer? = 329

Key: Keypad 9
Key: Keypad .

value

KEY_KP_DIVIDE : exact-integer? = 331

Key: Keypad /
Key: Keypad *
Key: Keypad -

value

KEY_KP_ADD : exact-integer? = 334

Key: Keypad +

value

KEY_KP_ENTER : exact-integer? = 335

Key: Keypad Enter

value

KEY_KP_EQUAL : exact-integer? = 336

Key: Keypad =

value

KEY_BACK : exact-integer? = 4

Key: Android back button

value

KEY_MENU : exact-integer? = 82

Key: Android menu button
Key: Android volume up button
Key: Android volume down button

2.3.4 Mouse buttons🔗ℹ

Mouse buttons
Mouse button left
Mouse button right
Mouse button middle (pressed wheel)
Mouse button side (advanced mouse device)
Mouse button extra (advanced mouse device)
Mouse button fordward (advanced mouse device)
Mouse button back (advanced mouse device)

2.3.5 Mouse cursor🔗ℹ

Mouse cursor
Default pointer shape
Arrow shape
Text writing cursor shape
Cross shape
Pointing hand cursor
Horizontal resize/move arrow shape
Vertical resize/move arrow shape
Top-left to bottom-right diagonal resize/move arrow shape
The top-right to bottom-left diagonal resize/move arrow shape
The omni-directional resize/move cursor shape
The operation-not-allowed shape

2.3.6 Gamepad buttons🔗ℹ

Gamepad buttons
Unknown button, just for error checking
Gamepad left DPAD up button
Gamepad left DPAD right button
Gamepad left DPAD down button
Gamepad left DPAD left button
Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)
Gamepad right button right (i.e. PS3: Square, Xbox: X)
Gamepad right button down (i.e. PS3: Cross, Xbox: A)
Gamepad right button left (i.e. PS3: Circle, Xbox: B)
Gamepad top/back trigger left (first), it could be a trailing button
Gamepad top/back trigger left (second), it could be a trailing button
Gamepad top/back trigger right (one), it could be a trailing button
Gamepad top/back trigger right (second), it could be a trailing button
Gamepad center buttons, left one (i.e. PS3: Select)
Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)
Gamepad center buttons, right one (i.e. PS3: Start)
Gamepad joystick pressed button left
Gamepad joystick pressed button right

2.3.7 Gamepad axis🔗ℹ

Gamepad axis
Gamepad left stick X axis
Gamepad left stick Y axis
Gamepad right stick X axis
Gamepad right stick Y axis
Gamepad back trigger left, pressure level: [1..-1]
Gamepad back trigger right, pressure level: [1..-1]

2.3.8 Material map index🔗ℹ

Material map index
Albedo material (same as: MATERIAL_MAP_DIFFUSE)
Metalness material (same as: MATERIAL_MAP_SPECULAR)
Normal material
Roughness material
Ambient occlusion material
Emission material
Heightmap material
Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
Brdf material

2.3.9 Shader location index🔗ℹ

Shader location index
Shader location: vertex attribute: position
Shader location: vertex attribute: texcoord01
Shader location: vertex attribute: texcoord02
Shader location: vertex attribute: normal
Shader location: vertex attribute: tangent
Shader location: vertex attribute: color
Shader location: matrix uniform: model-view-projection
Shader location: matrix uniform: view (camera transform)
Shader location: matrix uniform: projection
Shader location: matrix uniform: model (transform)
Shader location: matrix uniform: normal
Shader location: vector uniform: view
Shader location: vector uniform: diffuse color
Shader location: vector uniform: specular color
Shader location: vector uniform: ambient color
Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)
Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)
Shader location: sampler2d texture: normal
Shader location: sampler2d texture: roughness
Shader location: sampler2d texture: occlusion
Shader location: sampler2d texture: emission
Shader location: sampler2d texture: height
Shader location: samplerCube texture: cubemap
Shader location: samplerCube texture: irradiance
Shader location: samplerCube texture: prefilter
Shader location: sampler2d texture: brdf

2.3.10 Shader uniform data type🔗ℹ

Shader uniform data type
Shader uniform type: float
Shader uniform type: vec2 (2 float)
Shader uniform type: vec3 (3 float)
Shader uniform type: vec4 (4 float)
Shader uniform type: int
Shader uniform type: ivec2 (2 int)
Shader uniform type: ivec3 (3 int)
Shader uniform type: ivec4 (4 int)
Shader uniform type: sampler2d

2.3.11 Shader attribute data types🔗ℹ

Shader attribute data types
Shader attribute type: float
Shader attribute type: vec2 (2 float)
Shader attribute type: vec3 (3 float)
Shader attribute type: vec4 (4 float)

2.3.12 Pixel formats🔗ℹ

Pixel formats
8 bit per pixel (no alpha)
8*2 bpp (2 channels)
16 bpp
24 bpp
16 bpp (1 bit alpha)
16 bpp (4 bit alpha)
32 bpp
32 bpp (1 channel - float)
32*3 bpp (3 channels - float)
32*4 bpp (4 channels - float)
4 bpp (no alpha)
4 bpp (1 bit alpha)
8 bpp
8 bpp
4 bpp
4 bpp
8 bpp
4 bpp
4 bpp
8 bpp
2 bpp

2.3.13 Texture parameters: filter mode🔗ℹ

Texture parameters: filter mode
No filter, just pixel aproximation
Linear filtering
Trilinear filtering (linear with mipmaps)
Anisotropic filtering 4x
Anisotropic filtering 8x
Anisotropic filtering 16x

2.3.14 Texture parameters: wrap mode🔗ℹ

Texture parameters: wrap mode
Repeats texture in tiled mode
Clamps texture to edge pixel in tiled mode
Mirrors and repeats the texture in tiled mode
Mirrors and clamps to border the texture in tiled mode

2.3.15 Cubemap layouts🔗ℹ

Cubemap layouts
Automatically detect layout type
Layout is defined by a vertical line with faces
Layout is defined by an horizontal line with faces
Layout is defined by a 3x4 cross with cubemap faces
Layout is defined by a 4x3 cross with cubemap faces
Layout is defined by a panorama image (equirectangular map)

2.3.16 Font type, defines generation method🔗ℹ

value

_FontType : ctype?

Font type, defines generation method
Default font generation, anti-aliased
Bitmap font generation, no anti-aliasing

value

FONT_SDF : exact-integer? = 2

SDF font generation, requires external shader

2.3.17 Color blending modes (pre-defined)🔗ℹ

Color blending modes (pre-defined)
Blend textures considering alpha (default)
Blend textures adding colors
Blend textures multiplying colors
Blend textures adding colors (alternative)
Blend textures subtracting colors (alternative)
Belnd textures using custom src/dst factors (use rlSetBlendMode())

2.3.18 Gesture🔗ℹ

value

_Gesture : ctype?

Gesture
No gesture
Tap gesture
Double tap gesture
Hold gesture
Drag gesture
Swipe right gesture
Swipe left gesture
Swipe up gesture
Swipe down gesture
Pinch in gesture
Pinch out gesture

2.3.19 Camera system modes🔗ℹ

Camera system modes
Custom camera
Free camera
Orbital camera
First person camera
Third person camera

2.3.20 Camera projection🔗ℹ

Camera projection
Perspective projection
Orthographic projection

2.3.21 N-patch layout🔗ℹ

N-patch layout
Npatch layout: 3x3 tiles
Npatch layout: 1x3 tiles
Npatch layout: 3x1 tiles

2.4 Constants🔗ℹ

 (require raylib/generated/constants) package: raylib

value

RAYLIB_VERSION : string? = "4.0"

value

LIGHTGRAY : Color? = (make-Color 200 200 200 255)

Light Gray

value

GRAY : Color? = (make-Color 130 130 130 255)

Gray

value

DARKGRAY : Color? = (make-Color 80 80 80 255)

Dark Gray

value

YELLOW : Color? = (make-Color 253 249 0 255)

Yellow

value

GOLD : Color? = (make-Color 255 203 0 255)

Gold

value

ORANGE : Color? = (make-Color 255 161 0 255)

Orange

value

PINK : Color? = (make-Color 255 109 194 255)

Pink

value

RED : Color? = (make-Color 230 41 55 255)

Red

value

MAROON : Color? = (make-Color 190 33 55 255)

Maroon

value

GREEN : Color? = (make-Color 0 228 48 255)

Green

value

LIME : Color? = (make-Color 0 158 47 255)

Lime

value

DARKGREEN : Color? = (make-Color 0 117 44 255)

Dark Green

value

SKYBLUE : Color? = (make-Color 102 191 255 255)

Sky Blue

value

BLUE : Color? = (make-Color 0 121 241 255)

Blue

value

DARKBLUE : Color? = (make-Color 0 82 172 255)

Dark Blue

value

PURPLE : Color? = (make-Color 200 122 255 255)

Purple

value

VIOLET : Color? = (make-Color 135 60 190 255)

Violet

value

DARKPURPLE : Color? = (make-Color 112 31 126 255)

Dark Purple

value

BEIGE : Color? = (make-Color 211 176 131 255)

Beige

value

BROWN : Color? = (make-Color 127 106 79 255)

Brown

value

DARKBROWN : Color? = (make-Color 76 63 47 255)

Dark Brown

value

WHITE : Color? = (make-Color 255 255 255 255)

White

value

BLACK : Color? = (make-Color 0 0 0 255)

Black

value

BLANK : Color? = (make-Color 0 0 0 0)

Blank (Transparent)

value

MAGENTA : Color? = (make-Color 255 0 255 255)

Magenta

value

RAYWHITE : Color? = (make-Color 245 245 245 255)

My own White (raylib logo)