Module: Raylib

Extended by:
FFI::Library
Defined in:
lib/raylib_helper.rb,
lib/rlgl.rb,
lib/config.rb,
lib/physac.rb,
lib/raygui.rb,
lib/raylib.rb,
lib/raymath.rb,
lib/rcamera.rb,
lib/raylib_main.rb

Overview

Yet another raylib wrapper for Ruby

Defined Under Namespace

Classes: AudioStream, BoneInfo, BoundingBox, Camera2D, Camera3D, Color, FilePathList, Float16, Float3, Font, GlyphInfo, GuiStyleProp, Image, Material, MaterialMap, Matrix, Matrix2x2, Mesh, Model, ModelAnimation, ModelAnimations, Music, NPatchInfo, PhysicsBodyData, PhysicsManifoldData, PhysicsShape, PhysicsVertexData, Quaternion, Ray, RayCollision, Rectangle, RenderTexture, RlDrawCall, RlRenderBatch, RlVertexBuffer, Shader, Sound, Texture, Transform, Vector2, Vector3, Vector4, VrDeviceInfo, VrStereoConfig, Wave

Constant Summary collapse

RLGL_VERSION =

Define/Macro

"4.5"
RL_DEFAULT_BATCH_BUFFER_ELEMENTS =
8192
RL_TEXTURE_WRAP_S =

GL_TEXTURE_WRAP_S

0x2802
RL_TEXTURE_WRAP_T =

GL_TEXTURE_WRAP_T

0x2803
RL_TEXTURE_MAG_FILTER =

GL_TEXTURE_MAG_FILTER

0x2800
RL_TEXTURE_MIN_FILTER =

GL_TEXTURE_MIN_FILTER

0x2801
RL_TEXTURE_FILTER_NEAREST =

GL_NEAREST

0x2600
RL_TEXTURE_FILTER_LINEAR =

GL_LINEAR

0x2601
RL_TEXTURE_FILTER_MIP_NEAREST =

GL_NEAREST_MIPMAP_NEAREST

0x2700
RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR =

GL_NEAREST_MIPMAP_LINEAR

0x2702
RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST =

GL_LINEAR_MIPMAP_NEAREST

0x2701
RL_TEXTURE_FILTER_MIP_LINEAR =

GL_LINEAR_MIPMAP_LINEAR

0x2703
RL_TEXTURE_FILTER_ANISOTROPIC =

Anisotropic filter (custom identifier)

0x3000
RL_TEXTURE_MIPMAP_BIAS_RATIO =

Texture mipmap bias, percentage ratio (custom identifier)

0x4000
RL_TEXTURE_WRAP_REPEAT =

GL_REPEAT

0x2901
RL_TEXTURE_WRAP_CLAMP =

GL_CLAMP_TO_EDGE

0x812F
RL_TEXTURE_WRAP_MIRROR_REPEAT =

GL_MIRRORED_REPEAT

0x8370
RL_TEXTURE_WRAP_MIRROR_CLAMP =

GL_MIRROR_CLAMP_EXT

0x8742
RL_MODELVIEW =

GL_MODELVIEW

0x1700
RL_PROJECTION =

GL_PROJECTION

0x1701
RL_TEXTURE =

GL_TEXTURE

0x1702
RL_LINES =

GL_LINES

0x0001
RL_TRIANGLES =

GL_TRIANGLES

0x0004
RL_QUADS =

GL_QUADS

0x0007
RL_UNSIGNED_BYTE =

GL_UNSIGNED_BYTE

0x1401
RL_FLOAT =

GL_FLOAT

0x1406
RL_STREAM_DRAW =

GL_STREAM_DRAW

0x88E0
RL_STREAM_READ =

GL_STREAM_READ

0x88E1
RL_STREAM_COPY =

GL_STREAM_COPY

0x88E2
RL_STATIC_DRAW =

GL_STATIC_DRAW

0x88E4
RL_STATIC_READ =

GL_STATIC_READ

0x88E5
RL_STATIC_COPY =

GL_STATIC_COPY

0x88E6
RL_DYNAMIC_DRAW =

GL_DYNAMIC_DRAW

0x88E8
RL_DYNAMIC_READ =

GL_DYNAMIC_READ

0x88E9
RL_DYNAMIC_COPY =

GL_DYNAMIC_COPY

0x88EA
RL_FRAGMENT_SHADER =

GL_FRAGMENT_SHADER

0x8B30
RL_VERTEX_SHADER =

GL_VERTEX_SHADER

0x8B31
RL_COMPUTE_SHADER =

GL_COMPUTE_SHADER

0x91B9
RL_ZERO =

GL_ZERO

0
RL_ONE =

GL_ONE

1
RL_SRC_COLOR =

GL_SRC_COLOR

0x0300
RL_ONE_MINUS_SRC_COLOR =

GL_ONE_MINUS_SRC_COLOR

0x0301
RL_SRC_ALPHA =

GL_SRC_ALPHA

0x0302
RL_ONE_MINUS_SRC_ALPHA =

GL_ONE_MINUS_SRC_ALPHA

0x0303
RL_DST_ALPHA =

GL_DST_ALPHA

0x0304
RL_ONE_MINUS_DST_ALPHA =

GL_ONE_MINUS_DST_ALPHA

0x0305
RL_DST_COLOR =

GL_DST_COLOR

0x0306
RL_ONE_MINUS_DST_COLOR =

GL_ONE_MINUS_DST_COLOR

0x0307
RL_SRC_ALPHA_SATURATE =

GL_SRC_ALPHA_SATURATE

0x0308
RL_CONSTANT_COLOR =

GL_CONSTANT_COLOR

0x8001
RL_ONE_MINUS_CONSTANT_COLOR =

GL_ONE_MINUS_CONSTANT_COLOR

0x8002
RL_CONSTANT_ALPHA =

GL_CONSTANT_ALPHA

0x8003
RL_ONE_MINUS_CONSTANT_ALPHA =

GL_ONE_MINUS_CONSTANT_ALPHA

0x8004
RL_FUNC_ADD =

GL_FUNC_ADD

0x8006
RL_MIN =

GL_MIN

0x8007
RL_MAX =

GL_MAX

0x8008
RL_FUNC_SUBTRACT =

GL_FUNC_SUBTRACT

0x800A
RL_FUNC_REVERSE_SUBTRACT =

GL_FUNC_REVERSE_SUBTRACT

0x800B
RL_BLEND_EQUATION =

GL_BLEND_EQUATION

0x8009
RL_BLEND_EQUATION_RGB =

GL_BLEND_EQUATION_RGB // (Same as BLEND_EQUATION)

0x8009
RL_BLEND_EQUATION_ALPHA =

GL_BLEND_EQUATION_ALPHA

0x883D
RL_BLEND_DST_RGB =

GL_BLEND_DST_RGB

0x80C8
RL_BLEND_SRC_RGB =

GL_BLEND_SRC_RGB

0x80C9
RL_BLEND_DST_ALPHA =

GL_BLEND_DST_ALPHA

0x80CA
RL_BLEND_SRC_ALPHA =

GL_BLEND_SRC_ALPHA

0x80CB
RL_BLEND_COLOR =

GL_BLEND_COLOR

0x8005
RL_OPENGL_11 =

enum rlGlVersion OpenGL version

1
RL_OPENGL_21 =

OpenGL 1.1

2
RL_OPENGL_33 =

OpenGL 2.1 (GLSL 120)

3
RL_OPENGL_43 =

OpenGL 3.3 (GLSL 330)

4
RL_OPENGL_ES_20 =

OpenGL 4.3 (using GLSL 330)

5
RL_LOG_ALL =

enum rlTraceLogLevel Trace log level

0
RL_LOG_TRACE =

Display all logs

1
RL_LOG_DEBUG =

Trace logging, intended for internal use only

2
RL_LOG_INFO =

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

3
RL_LOG_WARNING =

Info logging, used for program execution info

4
RL_LOG_ERROR =

Warning logging, used on recoverable failures

5
RL_LOG_FATAL =

Error logging, used on unrecoverable failures

6
RL_LOG_NONE =

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

7
RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE =

enum rlPixelFormat Texture pixel formats

1
RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA =

8 bit per pixel (no alpha)

2
RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 =

8*2 bpp (2 channels)

3
RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 =

16 bpp

4
RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 =

24 bpp

5
RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 =

16 bpp (1 bit alpha)

6
RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 =

16 bpp (4 bit alpha)

7
RL_PIXELFORMAT_UNCOMPRESSED_R32 =

32 bpp

8
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 =

32 bpp (1 channel - float)

9
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 =

32*3 bpp (3 channels - float)

10
RL_PIXELFORMAT_COMPRESSED_DXT1_RGB =

32*4 bpp (4 channels - float)

11
RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA =

4 bpp (no alpha)

12
RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA =

4 bpp (1 bit alpha)

13
RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA =

8 bpp

14
RL_PIXELFORMAT_COMPRESSED_ETC1_RGB =

8 bpp

15
RL_PIXELFORMAT_COMPRESSED_ETC2_RGB =

4 bpp

16
RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA =

4 bpp

17
RL_PIXELFORMAT_COMPRESSED_PVRT_RGB =

8 bpp

18
RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA =

4 bpp

19
RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA =

4 bpp

20
RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA =

8 bpp

21
RL_TEXTURE_FILTER_POINT =

enum rlTextureFilter Texture parameters: filter mode

0
RL_TEXTURE_FILTER_BILINEAR =

No filter, just pixel approximation

1
RL_TEXTURE_FILTER_TRILINEAR =

Linear filtering

2
RL_TEXTURE_FILTER_ANISOTROPIC_4X =

Trilinear filtering (linear with mipmaps)

3
RL_TEXTURE_FILTER_ANISOTROPIC_8X =

Anisotropic filtering 4x

4
RL_TEXTURE_FILTER_ANISOTROPIC_16X =

Anisotropic filtering 8x

5
RL_BLEND_ALPHA =

enum rlBlendMode Color blending modes (pre-defined)

0
RL_BLEND_ADDITIVE =

Blend textures considering alpha (default)

1
RL_BLEND_MULTIPLIED =

Blend textures adding colors

2
RL_BLEND_ADD_COLORS =

Blend textures multiplying colors

3
RL_BLEND_SUBTRACT_COLORS =

Blend textures adding colors (alternative)

4
RL_BLEND_ALPHA_PREMULTIPLY =

Blend textures subtracting colors (alternative)

5
RL_BLEND_CUSTOM =

Blend premultiplied textures considering alpha

6
RL_BLEND_CUSTOM_SEPARATE =

Blend textures using custom src/dst factors (use rlSetBlendFactors())

7
RL_SHADER_LOC_VERTEX_POSITION =

enum rlShaderLocationIndex Shader location point type

0
RL_SHADER_LOC_VERTEX_TEXCOORD01 =

Shader location: vertex attribute: position

1
RL_SHADER_LOC_VERTEX_TEXCOORD02 =

Shader location: vertex attribute: texcoord01

2
RL_SHADER_LOC_VERTEX_NORMAL =

Shader location: vertex attribute: texcoord02

3
RL_SHADER_LOC_VERTEX_TANGENT =

Shader location: vertex attribute: normal

4
RL_SHADER_LOC_VERTEX_COLOR =

Shader location: vertex attribute: tangent

5
RL_SHADER_LOC_MATRIX_MVP =

Shader location: vertex attribute: color

6
RL_SHADER_LOC_MATRIX_VIEW =

Shader location: matrix uniform: model-view-projection

7
RL_SHADER_LOC_MATRIX_PROJECTION =

Shader location: matrix uniform: view (camera transform)

8
RL_SHADER_LOC_MATRIX_MODEL =

Shader location: matrix uniform: projection

9
RL_SHADER_LOC_MATRIX_NORMAL =

Shader location: matrix uniform: model (transform)

10
RL_SHADER_LOC_VECTOR_VIEW =

Shader location: matrix uniform: normal

11
RL_SHADER_LOC_COLOR_DIFFUSE =

Shader location: vector uniform: view

12
RL_SHADER_LOC_COLOR_SPECULAR =

Shader location: vector uniform: diffuse color

13
RL_SHADER_LOC_COLOR_AMBIENT =

Shader location: vector uniform: specular color

14
RL_SHADER_LOC_MAP_ALBEDO =

Shader location: vector uniform: ambient color

15
RL_SHADER_LOC_MAP_METALNESS =

Shader location: sampler2d texture: albedo (same as: RL_SHADER_LOC_MAP_DIFFUSE)

16
RL_SHADER_LOC_MAP_NORMAL =

Shader location: sampler2d texture: metalness (same as: RL_SHADER_LOC_MAP_SPECULAR)

17
RL_SHADER_LOC_MAP_ROUGHNESS =

Shader location: sampler2d texture: normal

18
RL_SHADER_LOC_MAP_OCCLUSION =

Shader location: sampler2d texture: roughness

19
RL_SHADER_LOC_MAP_EMISSION =

Shader location: sampler2d texture: occlusion

20
RL_SHADER_LOC_MAP_HEIGHT =

Shader location: sampler2d texture: emission

21
RL_SHADER_LOC_MAP_CUBEMAP =

Shader location: sampler2d texture: height

22
RL_SHADER_LOC_MAP_IRRADIANCE =

Shader location: samplerCube texture: cubemap

23
RL_SHADER_LOC_MAP_PREFILTER =

Shader location: samplerCube texture: irradiance

24
RL_SHADER_LOC_MAP_BRDF =

Shader location: samplerCube texture: prefilter

25
RL_SHADER_UNIFORM_FLOAT =

enum rlShaderUniformDataType Shader uniform data type

0
RL_SHADER_UNIFORM_VEC2 =

Shader uniform type: float

1
RL_SHADER_UNIFORM_VEC3 =

Shader uniform type: vec2 (2 float)

2
RL_SHADER_UNIFORM_VEC4 =

Shader uniform type: vec3 (3 float)

3
RL_SHADER_UNIFORM_INT =

Shader uniform type: vec4 (4 float)

4
RL_SHADER_UNIFORM_IVEC2 =

Shader uniform type: int

5
RL_SHADER_UNIFORM_IVEC3 =

Shader uniform type: ivec2 (2 int)

6
RL_SHADER_UNIFORM_IVEC4 =

Shader uniform type: ivec3 (3 int)

7
RL_SHADER_UNIFORM_SAMPLER2D =

Shader uniform type: ivec4 (4 int)

8
RL_SHADER_ATTRIB_FLOAT =

enum rlShaderAttributeDataType Shader attribute data types

0
RL_SHADER_ATTRIB_VEC2 =

Shader attribute type: float

1
RL_SHADER_ATTRIB_VEC3 =

Shader attribute type: vec2 (2 float)

2
RL_SHADER_ATTRIB_VEC4 =

Shader attribute type: vec3 (3 float)

3
RL_ATTACHMENT_COLOR_CHANNEL0 =

enum rlFramebufferAttachType Framebuffer attachment type

0
RL_ATTACHMENT_COLOR_CHANNEL1 =

Framebuffer attachment type: color 0

1
RL_ATTACHMENT_COLOR_CHANNEL2 =

Framebuffer attachment type: color 1

2
RL_ATTACHMENT_COLOR_CHANNEL3 =

Framebuffer attachment type: color 2

3
RL_ATTACHMENT_COLOR_CHANNEL4 =

Framebuffer attachment type: color 3

4
RL_ATTACHMENT_COLOR_CHANNEL5 =

Framebuffer attachment type: color 4

5
RL_ATTACHMENT_COLOR_CHANNEL6 =

Framebuffer attachment type: color 5

6
RL_ATTACHMENT_COLOR_CHANNEL7 =

Framebuffer attachment type: color 6

7
RL_ATTACHMENT_DEPTH =

Framebuffer attachment type: color 7

100
RL_ATTACHMENT_STENCIL =

Framebuffer attachment type: depth

200
RL_ATTACHMENT_CUBEMAP_POSITIVE_X =

enum rlFramebufferAttachTextureType Framebuffer texture attachment type

0
RL_ATTACHMENT_CUBEMAP_NEGATIVE_X =

Framebuffer texture attachment type: cubemap, +X side

1
RL_ATTACHMENT_CUBEMAP_POSITIVE_Y =

Framebuffer texture attachment type: cubemap, -X side

2
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y =

Framebuffer texture attachment type: cubemap, +Y side

3
RL_ATTACHMENT_CUBEMAP_POSITIVE_Z =

Framebuffer texture attachment type: cubemap, -Y side

4
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z =

Framebuffer texture attachment type: cubemap, +Z side

5
RL_ATTACHMENT_TEXTURE2D =

Framebuffer texture attachment type: cubemap, -Z side

100
RL_ATTACHMENT_RENDERBUFFER =

Framebuffer texture attachment type: texture2d

200
RL_CULL_FACE_FRONT =

enum rlCullMode Face culling mode

0
RL_CULL_FACE_BACK =
1
SUPPORT_MODULE_RSHAPES =

Define/Macro

1
SUPPORT_MODULE_RTEXTURES =
1
SUPPORT_MODULE_RTEXT =

WARNING: It requires SUPPORT_MODULE_RTEXTURES to load sprite font textures

1
SUPPORT_MODULE_RMODELS =
1
SUPPORT_MODULE_RAUDIO =
1
SUPPORT_CAMERA_SYSTEM =
1
SUPPORT_GESTURES_SYSTEM =
1
SUPPORT_MOUSE_GESTURES =
1
SUPPORT_SSH_KEYBOARD_RPI =
1
SUPPORT_WINMM_HIGHRES_TIMER =
1
SUPPORT_SCREEN_CAPTURE =
1
SUPPORT_GIF_RECORDING =
1
SUPPORT_COMPRESSION_API =
1
MAX_FILEPATH_CAPACITY =

Maximum file paths capacity

8192
MAX_FILEPATH_LENGTH =

Maximum length for filepaths (Linux PATH_MAX default value)

4096
MAX_KEYBOARD_KEYS =

Maximum number of keyboard keys supported

512
MAX_MOUSE_BUTTONS =

Maximum number of mouse buttons supported

8
MAX_GAMEPADS =

Maximum number of gamepads supported

4
MAX_GAMEPAD_AXIS =

Maximum number of axis supported (per gamepad)

8
MAX_GAMEPAD_BUTTONS =

Maximum number of buttons supported (per gamepad)

32
MAX_TOUCH_POINTS =

Maximum number of touch points supported

8
MAX_KEY_PRESSED_QUEUE =

Maximum number of keys in the key input queue

16
MAX_CHAR_PRESSED_QUEUE =

Maximum number of characters in the char input queue

16
MAX_DECOMPRESSION_SIZE =

Max size allocated for decompression in MB

64
RL_DEFAULT_BATCH_BUFFERS =

Default number of batch buffers (multi-buffering)

1
RL_DEFAULT_BATCH_DRAWCALLS =

Default number of batch draw calls (by state changes: mode, texture)

256
RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS =

Maximum number of textures units that can be activated on batch drawing (SetShaderValueTexture())

4
RL_MAX_MATRIX_STACK_SIZE =

Maximum size of internal Matrix stack

32
RL_MAX_SHADER_LOCATIONS =

Maximum number of shader locations supported

32
RL_CULL_DISTANCE_NEAR =

Default projection matrix near cull distance

0.01
RL_CULL_DISTANCE_FAR =

Default projection matrix far cull distance

1000.0
RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION =

Bound by default to shader location: 0

"vertexPosition"
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD =

Bound by default to shader location: 1

"vertexTexCoord"
RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL =

Bound by default to shader location: 2

"vertexNormal"
RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR =

Bound by default to shader location: 3

"vertexColor"
RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT =

Bound by default to shader location: 4

"vertexTangent"
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 =

Bound by default to shader location: 5

"vertexTexCoord2"
RL_DEFAULT_SHADER_UNIFORM_NAME_MVP =

model-view-projection matrix

"mvp"
RL_DEFAULT_SHADER_UNIFORM_NAME_VIEW =

view matrix

"matView"
RL_DEFAULT_SHADER_UNIFORM_NAME_PROJECTION =

projection matrix

"matProjection"
RL_DEFAULT_SHADER_UNIFORM_NAME_MODEL =

model matrix

"matModel"
RL_DEFAULT_SHADER_UNIFORM_NAME_NORMAL =

normal matrix (transpose(inverse(matModelView))

"matNormal"
RL_DEFAULT_SHADER_UNIFORM_NAME_COLOR =

color diffuse (base tint color, multiplied by texture color)

"colDiffuse"
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE0 =

texture0 (texture slot active 0)

"texture0"
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE1 =

texture1 (texture slot active 1)

"texture1"
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE2 =

texture2 (texture slot active 2)

"texture2"
SUPPORT_QUADS_DRAW_MODE =
1
SUPPORT_FILEFORMAT_PNG =
1
SUPPORT_FILEFORMAT_GIF =
1
SUPPORT_FILEFORMAT_QOI =
1
SUPPORT_FILEFORMAT_DDS =
1
SUPPORT_FILEFORMAT_HDR =
1
SUPPORT_IMAGE_EXPORT =
1
SUPPORT_IMAGE_GENERATION =
1
SUPPORT_IMAGE_MANIPULATION =
1
SUPPORT_DEFAULT_FONT =
1
SUPPORT_FILEFORMAT_FNT =
1
SUPPORT_FILEFORMAT_TTF =
1
SUPPORT_TEXT_MANIPULATION =
1
MAX_TEXT_BUFFER_LENGTH =

Size of internal static buffers used on some functions:

1024
MAX_TEXTSPLIT_COUNT =

Maximum number of substrings to split: TextSplit()

128
SUPPORT_FILEFORMAT_OBJ =
1
SUPPORT_FILEFORMAT_MTL =
1
SUPPORT_FILEFORMAT_IQM =
1
SUPPORT_FILEFORMAT_GLTF =
1
SUPPORT_FILEFORMAT_VOX =
1
SUPPORT_FILEFORMAT_M3D =
1
SUPPORT_MESH_GENERATION =
1
MAX_MATERIAL_MAPS =

Maximum number of shader maps supported

12
MAX_MESH_VERTEX_BUFFERS =

Maximum vertex buffers (VBO) per mesh

7
SUPPORT_FILEFORMAT_WAV =
1
SUPPORT_FILEFORMAT_OGG =
1
SUPPORT_FILEFORMAT_MP3 =
1
SUPPORT_FILEFORMAT_QOA =
1
SUPPORT_FILEFORMAT_XM =
1
SUPPORT_FILEFORMAT_MOD =
1
AUDIO_DEVICE_FORMAT =

Device output format (miniaudio: float-32bit)

"ma_format_f32"
AUDIO_DEVICE_CHANNELS =

Device output channels: stereo

2
AUDIO_DEVICE_SAMPLE_RATE =

Device sample rate (device default)

0
MAX_AUDIO_BUFFER_POOL_CHANNELS =

Maximum number of audio pool channels

16
SUPPORT_STANDARD_FILEIO =
1
SUPPORT_TRACELOG =
1
MAX_TRACELOG_MSG_LENGTH =

Max length of one trace-log message

256
PHYSAC_MAX_BODIES =

Define/Macro

64
PHYSAC_MAX_MANIFOLDS =

Maximum number of physic bodies supported

4096
PHYSAC_MAX_VERTICES =

Maximum number of physic bodies interactions (64x64)

24
PHYSAC_DEFAULT_CIRCLE_VERTICES =

Maximum number of vertex for polygons shapes

24
PHYSAC_COLLISION_ITERATIONS =

Default number of vertices for circle shapes

100
PHYSAC_PENETRATION_ALLOWANCE =
0.05
PHYSAC_PENETRATION_CORRECTION =
0.4
PHYSAC_PI =
3.14159265358979323846
PHYSICS_CIRCLE =

enum PhysicsShapeType

0
PHYSICS_POLYGON =
1
RAYGUI_VERSION =

Define/Macro

"3.2"
SCROLLBAR_LEFT_SIDE =
0
SCROLLBAR_RIGHT_SIDE =
1
STATE_NORMAL =

enum GuiState Gui control state

0
STATE_FOCUSED =
1
STATE_PRESSED =
2
STATE_DISABLED =
3
TEXT_ALIGN_LEFT =

enum GuiTextAlignment Gui control text alignment

0
TEXT_ALIGN_CENTER =
1
TEXT_ALIGN_RIGHT =
2
DEFAULT =

enum GuiControl Gui controls

0
LABEL =

Used also for: LABELBUTTON

1
BUTTON =
2
TOGGLE =

Used also for: TOGGLEGROUP

3
SLIDER =

Used also for: SLIDERBAR

4
PROGRESSBAR =
5
CHECKBOX =
6
COMBOBOX =
7
8
TEXTBOX =

Used also for: TEXTBOXMULTI

9
VALUEBOX =
10
SPINNER =

Uses: BUTTON, VALUEBOX

11
LISTVIEW =
12
COLORPICKER =
13
SCROLLBAR =
14
STATUSBAR =
15
BORDER_COLOR_NORMAL =

enum GuiControlProperty Gui base properties for every control

0
BASE_COLOR_NORMAL =
1
TEXT_COLOR_NORMAL =
2
BORDER_COLOR_FOCUSED =
3
BASE_COLOR_FOCUSED =
4
TEXT_COLOR_FOCUSED =
5
BORDER_COLOR_PRESSED =
6
BASE_COLOR_PRESSED =
7
TEXT_COLOR_PRESSED =
8
BORDER_COLOR_DISABLED =
9
BASE_COLOR_DISABLED =
10
TEXT_COLOR_DISABLED =
11
BORDER_WIDTH =
12
TEXT_PADDING =
13
TEXT_ALIGNMENT =
14
RESERVED =
15
TEXT_SIZE =

enum GuiDefaultProperty DEFAULT extended properties

16
TEXT_SPACING =

Text size (glyphs max height)

17
LINE_COLOR =

Text spacing between glyphs

18
BACKGROUND_COLOR =

Line control color

19
GROUP_PADDING =

enum GuiToggleProperty Toggle/ToggleGroup

16
SLIDER_WIDTH =

enum GuiSliderProperty Slider/SliderBar

16
SLIDER_PADDING =

Slider size of internal bar

17
PROGRESS_PADDING =

enum GuiProgressBarProperty ProgressBar

16
ARROWS_SIZE =

enum GuiScrollBarProperty ScrollBar

16
ARROWS_VISIBLE =
17
SCROLL_SLIDER_PADDING =

(SLIDERBAR, SLIDER_PADDING)

18
SCROLL_SLIDER_SIZE =
19
SCROLL_PADDING =
20
SCROLL_SPEED =
21
CHECK_PADDING =

enum GuiCheckBoxProperty CheckBox

16
COMBO_BUTTON_WIDTH =

enum GuiComboBoxProperty ComboBox

16
COMBO_BUTTON_SPACING =

ComboBox right button width

17
ARROW_PADDING =

enum GuiDropdownBoxProperty DropdownBox

16
17
TEXT_INNER_PADDING =

enum GuiTextBoxProperty TextBox/TextBoxMulti/ValueBox/Spinner

16
TEXT_LINES_SPACING =

TextBox/TextBoxMulti/ValueBox/Spinner inner text padding

17
SPIN_BUTTON_WIDTH =

enum GuiSpinnerProperty Spinner

16
SPIN_BUTTON_SPACING =

Spinner left/right buttons width

17
LIST_ITEMS_HEIGHT =

enum GuiListViewProperty ListView

16
LIST_ITEMS_SPACING =

ListView items height

17
SCROLLBAR_WIDTH =

ListView items separation

18
SCROLLBAR_SIDE =

ListView scrollbar size (usually width)

19
COLOR_SELECTOR_SIZE =

enum GuiColorPickerProperty ColorPicker

16
HUEBAR_WIDTH =

ColorPicker right hue bar width

17
HUEBAR_PADDING =

ColorPicker right hue bar separation from panel

18
HUEBAR_SELECTOR_HEIGHT =

ColorPicker right hue bar selector height

19
HUEBAR_SELECTOR_OVERFLOW =

ColorPicker right hue bar selector overflow

20
ICON_NONE =

enum GuiIconName

0
ICON_FOLDER_FILE_OPEN =
1
ICON_FILE_SAVE_CLASSIC =
2
ICON_FOLDER_OPEN =
3
ICON_FOLDER_SAVE =
4
ICON_FILE_OPEN =
5
ICON_FILE_SAVE =
6
ICON_FILE_EXPORT =
7
ICON_FILE_ADD =
8
ICON_FILE_DELETE =
9
ICON_FILETYPE_TEXT =
10
ICON_FILETYPE_AUDIO =
11
ICON_FILETYPE_IMAGE =
12
ICON_FILETYPE_PLAY =
13
ICON_FILETYPE_VIDEO =
14
ICON_FILETYPE_INFO =
15
ICON_FILE_COPY =
16
ICON_FILE_CUT =
17
ICON_FILE_PASTE =
18
ICON_CURSOR_HAND =
19
ICON_CURSOR_POINTER =
20
ICON_CURSOR_CLASSIC =
21
ICON_PENCIL =
22
ICON_PENCIL_BIG =
23
ICON_BRUSH_CLASSIC =
24
ICON_BRUSH_PAINTER =
25
ICON_WATER_DROP =
26
ICON_COLOR_PICKER =
27
ICON_RUBBER =
28
ICON_COLOR_BUCKET =
29
ICON_TEXT_T =
30
ICON_TEXT_A =
31
ICON_SCALE =
32
ICON_RESIZE =
33
ICON_FILTER_POINT =
34
ICON_FILTER_BILINEAR =
35
ICON_CROP =
36
ICON_CROP_ALPHA =
37
ICON_SQUARE_TOGGLE =
38
ICON_SYMMETRY =
39
ICON_SYMMETRY_HORIZONTAL =
40
ICON_SYMMETRY_VERTICAL =
41
ICON_LENS =
42
ICON_LENS_BIG =
43
ICON_EYE_ON =
44
ICON_EYE_OFF =
45
ICON_FILTER_TOP =
46
ICON_FILTER =
47
ICON_TARGET_POINT =
48
ICON_TARGET_SMALL =
49
ICON_TARGET_BIG =
50
ICON_TARGET_MOVE =
51
ICON_CURSOR_MOVE =
52
ICON_CURSOR_SCALE =
53
ICON_CURSOR_SCALE_RIGHT =
54
ICON_CURSOR_SCALE_LEFT =
55
ICON_UNDO =
56
ICON_REDO =
57
ICON_REREDO =
58
ICON_MUTATE =
59
ICON_ROTATE =
60
ICON_REPEAT =
61
ICON_SHUFFLE =
62
ICON_EMPTYBOX =
63
ICON_TARGET =
64
ICON_TARGET_SMALL_FILL =
65
ICON_TARGET_BIG_FILL =
66
ICON_TARGET_MOVE_FILL =
67
ICON_CURSOR_MOVE_FILL =
68
ICON_CURSOR_SCALE_FILL =
69
ICON_CURSOR_SCALE_RIGHT_FILL =
70
ICON_CURSOR_SCALE_LEFT_FILL =
71
ICON_UNDO_FILL =
72
ICON_REDO_FILL =
73
ICON_REREDO_FILL =
74
ICON_MUTATE_FILL =
75
ICON_ROTATE_FILL =
76
ICON_REPEAT_FILL =
77
ICON_SHUFFLE_FILL =
78
ICON_EMPTYBOX_SMALL =
79
ICON_BOX =
80
ICON_BOX_TOP =
81
ICON_BOX_TOP_RIGHT =
82
ICON_BOX_RIGHT =
83
ICON_BOX_BOTTOM_RIGHT =
84
ICON_BOX_BOTTOM =
85
ICON_BOX_BOTTOM_LEFT =
86
ICON_BOX_LEFT =
87
ICON_BOX_TOP_LEFT =
88
ICON_BOX_CENTER =
89
ICON_BOX_CIRCLE_MASK =
90
ICON_POT =
91
ICON_ALPHA_MULTIPLY =
92
ICON_ALPHA_CLEAR =
93
ICON_DITHERING =
94
ICON_MIPMAPS =
95
ICON_BOX_GRID =
96
ICON_GRID =
97
ICON_BOX_CORNERS_SMALL =
98
ICON_BOX_CORNERS_BIG =
99
ICON_FOUR_BOXES =
100
ICON_GRID_FILL =
101
ICON_BOX_MULTISIZE =
102
ICON_ZOOM_SMALL =
103
ICON_ZOOM_MEDIUM =
104
ICON_ZOOM_BIG =
105
ICON_ZOOM_ALL =
106
ICON_ZOOM_CENTER =
107
ICON_BOX_DOTS_SMALL =
108
ICON_BOX_DOTS_BIG =
109
ICON_BOX_CONCENTRIC =
110
ICON_BOX_GRID_BIG =
111
ICON_OK_TICK =
112
ICON_CROSS =
113
ICON_ARROW_LEFT =
114
ICON_ARROW_RIGHT =
115
ICON_ARROW_DOWN =
116
ICON_ARROW_UP =
117
ICON_ARROW_LEFT_FILL =
118
ICON_ARROW_RIGHT_FILL =
119
ICON_ARROW_DOWN_FILL =
120
ICON_ARROW_UP_FILL =
121
ICON_AUDIO =
122
ICON_FX =
123
ICON_WAVE =
124
ICON_WAVE_SINUS =
125
ICON_WAVE_SQUARE =
126
ICON_WAVE_TRIANGULAR =
127
ICON_CROSS_SMALL =
128
ICON_PLAYER_PREVIOUS =
129
ICON_PLAYER_PLAY_BACK =
130
ICON_PLAYER_PLAY =
131
ICON_PLAYER_PAUSE =
132
ICON_PLAYER_STOP =
133
ICON_PLAYER_NEXT =
134
ICON_PLAYER_RECORD =
135
ICON_MAGNET =
136
ICON_LOCK_CLOSE =
137
ICON_LOCK_OPEN =
138
ICON_CLOCK =
139
ICON_TOOLS =
140
ICON_GEAR =
141
ICON_GEAR_BIG =
142
ICON_BIN =
143
ICON_HAND_POINTER =
144
ICON_LASER =
145
ICON_COIN =
146
ICON_EXPLOSION =
147
ICON_1UP =
148
ICON_PLAYER =
149
ICON_PLAYER_JUMP =
150
ICON_KEY =
151
ICON_DEMON =
152
ICON_TEXT_POPUP =
153
ICON_GEAR_EX =
154
ICON_CRACK =
155
ICON_CRACK_POINTS =
156
ICON_STAR =
157
ICON_DOOR =
158
ICON_EXIT =
159
ICON_MODE_2D =
160
ICON_MODE_3D =
161
ICON_CUBE =
162
ICON_CUBE_FACE_TOP =
163
ICON_CUBE_FACE_LEFT =
164
ICON_CUBE_FACE_FRONT =
165
ICON_CUBE_FACE_BOTTOM =
166
ICON_CUBE_FACE_RIGHT =
167
ICON_CUBE_FACE_BACK =
168
ICON_CAMERA =
169
ICON_SPECIAL =
170
171
172
173
174
175
ICON_TEXT_NOTES =
176
ICON_NOTEBOOK =
177
ICON_SUITCASE =
178
ICON_SUITCASE_ZIP =
179
ICON_MAILBOX =
180
ICON_MONITOR =
181
ICON_PRINTER =
182
ICON_PHOTO_CAMERA =
183
ICON_PHOTO_CAMERA_FLASH =
184
ICON_HOUSE =
185
ICON_HEART =
186
ICON_CORNER =
187
ICON_VERTICAL_BARS =
188
ICON_VERTICAL_BARS_FILL =
189
ICON_LIFE_BARS =
190
ICON_INFO =
191
ICON_CROSSLINE =
192
ICON_HELP =
193
ICON_FILETYPE_ALPHA =
194
ICON_FILETYPE_HOME =
195
ICON_LAYERS_VISIBLE =
196
ICON_LAYERS =
197
ICON_WINDOW =
198
ICON_HIDPI =
199
ICON_FILETYPE_BINARY =
200
ICON_HEX =
201
ICON_SHIELD =
202
ICON_FILE_NEW =
203
ICON_FOLDER_ADD =
204
ICON_ALARM =
205
ICON_CPU =
206
ICON_ROM =
207
ICON_STEP_OVER =
208
ICON_STEP_INTO =
209
ICON_STEP_OUT =
210
ICON_RESTART =
211
ICON_BREAKPOINT_ON =
212
ICON_BREAKPOINT_OFF =
213
ICON_BURGER_MENU =
214
ICON_CASE_SENSITIVE =
215
ICON_REG_EXP =
216
ICON_FOLDER =
217
ICON_FILE =
218
ICON_219 =
219
ICON_220 =
220
ICON_221 =
221
ICON_222 =
222
ICON_223 =
223
ICON_224 =
224
ICON_225 =
225
ICON_226 =
226
ICON_227 =
227
ICON_228 =
228
ICON_229 =
229
ICON_230 =
230
ICON_231 =
231
ICON_232 =
232
ICON_233 =
233
ICON_234 =
234
ICON_235 =
235
ICON_236 =
236
ICON_237 =
237
ICON_238 =
238
ICON_239 =
239
ICON_240 =
240
ICON_241 =
241
ICON_242 =
242
ICON_243 =
243
ICON_244 =
244
ICON_245 =
245
ICON_246 =
246
ICON_247 =
247
ICON_248 =
248
ICON_249 =
249
ICON_250 =
250
ICON_251 =
251
ICON_252 =
252
ICON_253 =
253
ICON_254 =
254
ICON_255 =
255
EPSILON =

Define/Macro

0.000001
RAYLIB_VERSION_MAJOR =

Define/Macro

4
RAYLIB_VERSION_MINOR =
5
RAYLIB_VERSION_PATCH =
0
RAYLIB_VERSION =
"4.5"
DEG2RAD =
Math::PI / 180.0
RAD2DEG =
180.0 / Math::PI
FLAG_VSYNC_HINT =

enum ConfigFlags System/Window config flags

64
FLAG_FULLSCREEN_MODE =

Set to try enabling V-Sync on GPU

2
FLAG_WINDOW_RESIZABLE =

Set to run program in fullscreen

4
FLAG_WINDOW_UNDECORATED =

Set to allow resizable window

8
FLAG_WINDOW_HIDDEN =

Set to disable window decoration (frame and buttons)

128
FLAG_WINDOW_MINIMIZED =

Set to hide window

512
FLAG_WINDOW_MAXIMIZED =

Set to minimize window (iconify)

1024
FLAG_WINDOW_UNFOCUSED =

Set to maximize window (expanded to monitor)

2048
FLAG_WINDOW_TOPMOST =

Set to window non focused

4096
FLAG_WINDOW_ALWAYS_RUN =

Set to window always on top

256
FLAG_WINDOW_TRANSPARENT =

Set to allow windows running while minimized

16
FLAG_WINDOW_HIGHDPI =

Set to allow transparent framebuffer

8192
FLAG_WINDOW_MOUSE_PASSTHROUGH =

Set to support HighDPI

16384
FLAG_MSAA_4X_HINT =

Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED

32
FLAG_INTERLACED_HINT =

Set to try enabling MSAA 4X

65536
LOG_ALL =

enum TraceLogLevel Trace log level

0
LOG_TRACE =

Display all logs

1
LOG_DEBUG =

Trace logging, intended for internal use only

2
LOG_INFO =

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

3
LOG_WARNING =

Info logging, used for program execution info

4
LOG_ERROR =

Warning logging, used on recoverable failures

5
LOG_FATAL =

Error logging, used on unrecoverable failures

6
LOG_NONE =

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

7
KEY_NULL =

enum KeyboardKey Keyboard keys (US keyboard layout)

0
KEY_APOSTROPHE =

Key: NULL, used for no key pressed

39
KEY_COMMA =

Key: ‘

44
KEY_MINUS =

Key: ,

45
KEY_PERIOD =

Key: -

46
KEY_SLASH =

Key: .

47
KEY_ZERO =

Key: /

48
KEY_ONE =

Key: 0

49
KEY_TWO =

Key: 1

50
KEY_THREE =

Key: 2

51
KEY_FOUR =

Key: 3

52
KEY_FIVE =

Key: 4

53
KEY_SIX =

Key: 5

54
KEY_SEVEN =

Key: 6

55
KEY_EIGHT =

Key: 7

56
KEY_NINE =

Key: 8

57
KEY_SEMICOLON =

Key: 9

59
KEY_EQUAL =

Key: ;

61
KEY_A =

Key: =

65
KEY_B =

Key: A | a

66
KEY_C =

Key: B | b

67
KEY_D =

Key: C | c

68
KEY_E =

Key: D | d

69
KEY_F =

Key: E | e

70
KEY_G =

Key: F | f

71
KEY_H =

Key: G | g

72
KEY_I =

Key: H | h

73
KEY_J =

Key: I | i

74
KEY_K =

Key: J | j

75
KEY_L =

Key: K | k

76
KEY_M =

Key: L | l

77
KEY_N =

Key: M | m

78
KEY_O =

Key: N | n

79
KEY_P =

Key: O | o

80
KEY_Q =

Key: P | p

81
KEY_R =

Key: Q | q

82
KEY_S =

Key: R | r

83
KEY_T =

Key: S | s

84
KEY_U =

Key: T | t

85
KEY_V =

Key: U | u

86
KEY_W =

Key: V | v

87
KEY_X =

Key: W | w

88
KEY_Y =

Key: X | x

89
KEY_Z =

Key: Y | y

90
KEY_LEFT_BRACKET =

Key: Z | z

91
KEY_BACKSLASH =

Key: [

92
KEY_RIGHT_BRACKET =

Key: ‘'

93
KEY_GRAVE =

Key: ]

96
KEY_SPACE =

Key: ‘

32
KEY_ESCAPE =

Key: Space

256
KEY_ENTER =

Key: Esc

257
KEY_TAB =

Key: Enter

258
KEY_BACKSPACE =

Key: Tab

259
KEY_INSERT =

Key: Backspace

260
KEY_DELETE =

Key: Ins

261
KEY_RIGHT =

Key: Del

262
KEY_LEFT =

Key: Cursor right

263
KEY_DOWN =

Key: Cursor left

264
KEY_UP =

Key: Cursor down

265
KEY_PAGE_UP =

Key: Cursor up

266
KEY_PAGE_DOWN =

Key: Page up

267
KEY_HOME =

Key: Page down

268
KEY_END =

Key: Home

269
KEY_CAPS_LOCK =

Key: End

280
KEY_SCROLL_LOCK =

Key: Caps lock

281
KEY_NUM_LOCK =

Key: Scroll down

282
KEY_PRINT_SCREEN =

Key: Num lock

283
KEY_PAUSE =

Key: Print screen

284
KEY_F1 =

Key: Pause

290
KEY_F2 =

Key: F1

291
KEY_F3 =

Key: F2

292
KEY_F4 =

Key: F3

293
KEY_F5 =

Key: F4

294
KEY_F6 =

Key: F5

295
KEY_F7 =

Key: F6

296
KEY_F8 =

Key: F7

297
KEY_F9 =

Key: F8

298
KEY_F10 =

Key: F9

299
KEY_F11 =

Key: F10

300
KEY_F12 =

Key: F11

301
KEY_LEFT_SHIFT =

Key: F12

340
KEY_LEFT_CONTROL =

Key: Shift left

341
KEY_LEFT_ALT =

Key: Control left

342
KEY_LEFT_SUPER =

Key: Alt left

343
KEY_RIGHT_SHIFT =

Key: Super left

344
KEY_RIGHT_CONTROL =

Key: Shift right

345
KEY_RIGHT_ALT =

Key: Control right

346
KEY_RIGHT_SUPER =

Key: Alt right

347
KEY_KB_MENU =

Key: Super right

348
KEY_KP_0 =

Key: KB menu

320
KEY_KP_1 =

Key: Keypad 0

321
KEY_KP_2 =

Key: Keypad 1

322
KEY_KP_3 =

Key: Keypad 2

323
KEY_KP_4 =

Key: Keypad 3

324
KEY_KP_5 =

Key: Keypad 4

325
KEY_KP_6 =

Key: Keypad 5

326
KEY_KP_7 =

Key: Keypad 6

327
KEY_KP_8 =

Key: Keypad 7

328
KEY_KP_9 =

Key: Keypad 8

329
KEY_KP_DECIMAL =

Key: Keypad 9

330
KEY_KP_DIVIDE =

Key: Keypad .

331
KEY_KP_MULTIPLY =

Key: Keypad /

332
KEY_KP_SUBTRACT =

Key: Keypad *

333
KEY_KP_ADD =

Key: Keypad -

334
KEY_KP_ENTER =

Key: Keypad +

335
KEY_KP_EQUAL =

Key: Keypad Enter

336
KEY_BACK =

Key: Keypad =

4
KEY_MENU =

Key: Android back button

82
KEY_VOLUME_UP =

Key: Android menu button

24
KEY_VOLUME_DOWN =

Key: Android volume up button

25
MOUSE_BUTTON_LEFT =

enum MouseButton Mouse buttons

0
MOUSE_BUTTON_RIGHT =

Mouse button left

1
MOUSE_BUTTON_MIDDLE =

Mouse button right

2
MOUSE_BUTTON_SIDE =

Mouse button middle (pressed wheel)

3
MOUSE_BUTTON_EXTRA =

Mouse button side (advanced mouse device)

4
MOUSE_BUTTON_FORWARD =

Mouse button extra (advanced mouse device)

5
MOUSE_BUTTON_BACK =

Mouse button forward (advanced mouse device)

6
MOUSE_CURSOR_DEFAULT =

enum MouseCursor Mouse cursor

0
MOUSE_CURSOR_ARROW =

Default pointer shape

1
MOUSE_CURSOR_IBEAM =

Arrow shape

2
MOUSE_CURSOR_CROSSHAIR =

Text writing cursor shape

3
MOUSE_CURSOR_POINTING_HAND =

Cross shape

4
MOUSE_CURSOR_RESIZE_EW =

Pointing hand cursor

5
MOUSE_CURSOR_RESIZE_NS =

Horizontal resize/move arrow shape

6
MOUSE_CURSOR_RESIZE_NWSE =

Vertical resize/move arrow shape

7
MOUSE_CURSOR_RESIZE_NESW =

Top-left to bottom-right diagonal resize/move arrow shape

8
MOUSE_CURSOR_RESIZE_ALL =

The top-right to bottom-left diagonal resize/move arrow shape

9
MOUSE_CURSOR_NOT_ALLOWED =

The omnidirectional resize/move cursor shape

10
GAMEPAD_BUTTON_UNKNOWN =

enum GamepadButton Gamepad buttons

0
GAMEPAD_BUTTON_LEFT_FACE_UP =

Unknown button, just for error checking

1
GAMEPAD_BUTTON_LEFT_FACE_RIGHT =

Gamepad left DPAD up button

2
GAMEPAD_BUTTON_LEFT_FACE_DOWN =

Gamepad left DPAD right button

3
GAMEPAD_BUTTON_LEFT_FACE_LEFT =

Gamepad left DPAD down button

4
GAMEPAD_BUTTON_RIGHT_FACE_UP =

Gamepad left DPAD left button

5
GAMEPAD_BUTTON_RIGHT_FACE_RIGHT =

Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)

6
GAMEPAD_BUTTON_RIGHT_FACE_DOWN =

Gamepad right button right (i.e. PS3: Square, Xbox: X)

7
GAMEPAD_BUTTON_RIGHT_FACE_LEFT =

Gamepad right button down (i.e. PS3: Cross, Xbox: A)

8
GAMEPAD_BUTTON_LEFT_TRIGGER_1 =

Gamepad right button left (i.e. PS3: Circle, Xbox: B)

9
GAMEPAD_BUTTON_LEFT_TRIGGER_2 =

Gamepad top/back trigger left (first), it could be a trailing button

10
GAMEPAD_BUTTON_RIGHT_TRIGGER_1 =

Gamepad top/back trigger left (second), it could be a trailing button

11
GAMEPAD_BUTTON_RIGHT_TRIGGER_2 =

Gamepad top/back trigger right (one), it could be a trailing button

12
GAMEPAD_BUTTON_MIDDLE_LEFT =

Gamepad top/back trigger right (second), it could be a trailing button

13
GAMEPAD_BUTTON_MIDDLE =

Gamepad center buttons, left one (i.e. PS3: Select)

14
GAMEPAD_BUTTON_MIDDLE_RIGHT =

Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)

15
GAMEPAD_BUTTON_LEFT_THUMB =

Gamepad center buttons, right one (i.e. PS3: Start)

16
GAMEPAD_BUTTON_RIGHT_THUMB =

Gamepad joystick pressed button left

17
GAMEPAD_AXIS_LEFT_X =

enum GamepadAxis Gamepad axis

0
GAMEPAD_AXIS_LEFT_Y =

Gamepad left stick X axis

1
GAMEPAD_AXIS_RIGHT_X =

Gamepad left stick Y axis

2
GAMEPAD_AXIS_RIGHT_Y =

Gamepad right stick X axis

3
GAMEPAD_AXIS_LEFT_TRIGGER =

Gamepad right stick Y axis

4
GAMEPAD_AXIS_RIGHT_TRIGGER =

Gamepad back trigger left, pressure level: [1..-1]

5
MATERIAL_MAP_ALBEDO =

enum MaterialMapIndex Material map index

0
MATERIAL_MAP_METALNESS =

Albedo material (same as: MATERIAL_MAP_DIFFUSE)

1
MATERIAL_MAP_NORMAL =

Metalness material (same as: MATERIAL_MAP_SPECULAR)

2
MATERIAL_MAP_ROUGHNESS =

Normal material

3
MATERIAL_MAP_OCCLUSION =

Roughness material

4
MATERIAL_MAP_EMISSION =

Ambient occlusion material

5
MATERIAL_MAP_HEIGHT =

Emission material

6
MATERIAL_MAP_CUBEMAP =

Heightmap material

7
MATERIAL_MAP_IRRADIANCE =

Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP)

8
MATERIAL_MAP_PREFILTER =

Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP)

9
MATERIAL_MAP_BRDF =

Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP)

10
SHADER_LOC_VERTEX_POSITION =

enum ShaderLocationIndex Shader location index

0
SHADER_LOC_VERTEX_TEXCOORD01 =

Shader location: vertex attribute: position

1
SHADER_LOC_VERTEX_TEXCOORD02 =

Shader location: vertex attribute: texcoord01

2
SHADER_LOC_VERTEX_NORMAL =

Shader location: vertex attribute: texcoord02

3
SHADER_LOC_VERTEX_TANGENT =

Shader location: vertex attribute: normal

4
SHADER_LOC_VERTEX_COLOR =

Shader location: vertex attribute: tangent

5
SHADER_LOC_MATRIX_MVP =

Shader location: vertex attribute: color

6
SHADER_LOC_MATRIX_VIEW =

Shader location: matrix uniform: model-view-projection

7
SHADER_LOC_MATRIX_PROJECTION =

Shader location: matrix uniform: view (camera transform)

8
SHADER_LOC_MATRIX_MODEL =

Shader location: matrix uniform: projection

9
SHADER_LOC_MATRIX_NORMAL =

Shader location: matrix uniform: model (transform)

10
SHADER_LOC_VECTOR_VIEW =

Shader location: matrix uniform: normal

11
SHADER_LOC_COLOR_DIFFUSE =

Shader location: vector uniform: view

12
SHADER_LOC_COLOR_SPECULAR =

Shader location: vector uniform: diffuse color

13
SHADER_LOC_COLOR_AMBIENT =

Shader location: vector uniform: specular color

14
SHADER_LOC_MAP_ALBEDO =

Shader location: vector uniform: ambient color

15
SHADER_LOC_MAP_METALNESS =

Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)

16
SHADER_LOC_MAP_NORMAL =

Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)

17
SHADER_LOC_MAP_ROUGHNESS =

Shader location: sampler2d texture: normal

18
SHADER_LOC_MAP_OCCLUSION =

Shader location: sampler2d texture: roughness

19
SHADER_LOC_MAP_EMISSION =

Shader location: sampler2d texture: occlusion

20
SHADER_LOC_MAP_HEIGHT =

Shader location: sampler2d texture: emission

21
SHADER_LOC_MAP_CUBEMAP =

Shader location: sampler2d texture: height

22
SHADER_LOC_MAP_IRRADIANCE =

Shader location: samplerCube texture: cubemap

23
SHADER_LOC_MAP_PREFILTER =

Shader location: samplerCube texture: irradiance

24
SHADER_LOC_MAP_BRDF =

Shader location: samplerCube texture: prefilter

25
SHADER_UNIFORM_FLOAT =

enum ShaderUniformDataType Shader uniform data type

0
SHADER_UNIFORM_VEC2 =

Shader uniform type: float

1
SHADER_UNIFORM_VEC3 =

Shader uniform type: vec2 (2 float)

2
SHADER_UNIFORM_VEC4 =

Shader uniform type: vec3 (3 float)

3
SHADER_UNIFORM_INT =

Shader uniform type: vec4 (4 float)

4
SHADER_UNIFORM_IVEC2 =

Shader uniform type: int

5
SHADER_UNIFORM_IVEC3 =

Shader uniform type: ivec2 (2 int)

6
SHADER_UNIFORM_IVEC4 =

Shader uniform type: ivec3 (3 int)

7
SHADER_UNIFORM_SAMPLER2D =

Shader uniform type: ivec4 (4 int)

8
SHADER_ATTRIB_FLOAT =

enum ShaderAttributeDataType Shader attribute data types

0
SHADER_ATTRIB_VEC2 =

Shader attribute type: float

1
SHADER_ATTRIB_VEC3 =

Shader attribute type: vec2 (2 float)

2
SHADER_ATTRIB_VEC4 =

Shader attribute type: vec3 (3 float)

3
PIXELFORMAT_UNCOMPRESSED_GRAYSCALE =

enum PixelFormat Pixel formats

1
PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA =

8 bit per pixel (no alpha)

2
PIXELFORMAT_UNCOMPRESSED_R5G6B5 =

8*2 bpp (2 channels)

3
PIXELFORMAT_UNCOMPRESSED_R8G8B8 =

16 bpp

4
PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 =

24 bpp

5
PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 =

16 bpp (1 bit alpha)

6
PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 =

16 bpp (4 bit alpha)

7
PIXELFORMAT_UNCOMPRESSED_R32 =

32 bpp

8
PIXELFORMAT_UNCOMPRESSED_R32G32B32 =

32 bpp (1 channel - float)

9
PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 =

32*3 bpp (3 channels - float)

10
PIXELFORMAT_COMPRESSED_DXT1_RGB =

32*4 bpp (4 channels - float)

11
PIXELFORMAT_COMPRESSED_DXT1_RGBA =

4 bpp (no alpha)

12
PIXELFORMAT_COMPRESSED_DXT3_RGBA =

4 bpp (1 bit alpha)

13
PIXELFORMAT_COMPRESSED_DXT5_RGBA =

8 bpp

14
PIXELFORMAT_COMPRESSED_ETC1_RGB =

8 bpp

15
PIXELFORMAT_COMPRESSED_ETC2_RGB =

4 bpp

16
PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA =

4 bpp

17
PIXELFORMAT_COMPRESSED_PVRT_RGB =

8 bpp

18
PIXELFORMAT_COMPRESSED_PVRT_RGBA =

4 bpp

19
PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA =

4 bpp

20
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA =

8 bpp

21
TEXTURE_FILTER_POINT =

enum TextureFilter Texture parameters: filter mode

0
TEXTURE_FILTER_BILINEAR =

No filter, just pixel approximation

1
TEXTURE_FILTER_TRILINEAR =

Linear filtering

2
TEXTURE_FILTER_ANISOTROPIC_4X =

Trilinear filtering (linear with mipmaps)

3
TEXTURE_FILTER_ANISOTROPIC_8X =

Anisotropic filtering 4x

4
TEXTURE_FILTER_ANISOTROPIC_16X =

Anisotropic filtering 8x

5
TEXTURE_WRAP_REPEAT =

enum TextureWrap Texture parameters: wrap mode

0
TEXTURE_WRAP_CLAMP =

Repeats texture in tiled mode

1
TEXTURE_WRAP_MIRROR_REPEAT =

Clamps texture to edge pixel in tiled mode

2
TEXTURE_WRAP_MIRROR_CLAMP =

Mirrors and repeats the texture in tiled mode

3
CUBEMAP_LAYOUT_AUTO_DETECT =

enum CubemapLayout Cubemap layouts

0
CUBEMAP_LAYOUT_LINE_VERTICAL =

Automatically detect layout type

1
CUBEMAP_LAYOUT_LINE_HORIZONTAL =

Layout is defined by a vertical line with faces

2
CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR =

Layout is defined by a horizontal line with faces

3
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE =

Layout is defined by a 3x4 cross with cubemap faces

4
CUBEMAP_LAYOUT_PANORAMA =

Layout is defined by a 4x3 cross with cubemap faces

5
FONT_DEFAULT =

enum FontType Font type, defines generation method

0
FONT_BITMAP =

Default font generation, anti-aliased

1
FONT_SDF =

Bitmap font generation, no anti-aliasing

2
BLEND_ALPHA =

enum BlendMode Color blending modes (pre-defined)

0
BLEND_ADDITIVE =

Blend textures considering alpha (default)

1
BLEND_MULTIPLIED =

Blend textures adding colors

2
BLEND_ADD_COLORS =

Blend textures multiplying colors

3
BLEND_SUBTRACT_COLORS =

Blend textures adding colors (alternative)

4
BLEND_ALPHA_PREMULTIPLY =

Blend textures subtracting colors (alternative)

5
BLEND_CUSTOM =

Blend premultiplied textures considering alpha

6
BLEND_CUSTOM_SEPARATE =

Blend textures using custom src/dst factors (use rlSetBlendFactors())

7
GESTURE_NONE =

enum Gesture Gesture

0
GESTURE_TAP =

No gesture

1
GESTURE_DOUBLETAP =

Tap gesture

2
GESTURE_HOLD =

Double tap gesture

4
GESTURE_DRAG =

Hold gesture

8
GESTURE_SWIPE_RIGHT =

Drag gesture

16
GESTURE_SWIPE_LEFT =

Swipe right gesture

32
GESTURE_SWIPE_UP =

Swipe left gesture

64
GESTURE_SWIPE_DOWN =

Swipe up gesture

128
GESTURE_PINCH_IN =

Swipe down gesture

256
GESTURE_PINCH_OUT =

Pinch in gesture

512
CAMERA_CUSTOM =

enum CameraMode Camera system modes

0
CAMERA_FREE =

Custom camera

1
CAMERA_ORBITAL =

Free camera

2
CAMERA_FIRST_PERSON =

Orbital camera

3
CAMERA_THIRD_PERSON =

First person camera

4
CAMERA_PERSPECTIVE =

enum CameraProjection Camera projection

0
CAMERA_ORTHOGRAPHIC =

Perspective projection

1
NPATCH_NINE_PATCH =

enum NPatchLayout N-patch layout

0
NPATCH_THREE_PATCH_VERTICAL =

Npatch layout: 3x3 tiles

1
NPATCH_THREE_PATCH_HORIZONTAL =

Npatch layout: 1x3 tiles

2
Texture2D =
Texture
TextureCubemap =
Texture
RenderTexture2D =
RenderTexture
Camera =
Camera3D
LIGHTGRAY =
Color.from_u8(200, 200, 200, 255)
GRAY =
Color.from_u8(130, 130, 130, 255)
DARKGRAY =
Color.from_u8(80, 80, 80, 255)
YELLOW =
Color.from_u8(253, 249, 0, 255)
GOLD =
Color.from_u8(255, 203, 0, 255)
ORANGE =
Color.from_u8(255, 161, 0, 255)
PINK =
Color.from_u8(255, 109, 194, 255)
RED =
Color.from_u8(230, 41, 55, 255)
MAROON =
Color.from_u8(190, 33, 55, 255)
GREEN =
Color.from_u8(0, 228, 48, 255)
LIME =
Color.from_u8(0, 158, 47, 255)
DARKGREEN =
Color.from_u8(0, 117, 44, 255)
SKYBLUE =
Color.from_u8(102, 191, 255, 255)
BLUE =
Color.from_u8(0, 121, 241, 255)
DARKBLUE =
Color.from_u8(0, 82, 172, 255)
PURPLE =
Color.from_u8(200, 122, 255, 255)
VIOLET =
Color.from_u8(135, 60, 190, 255)
DARKPURPLE =
Color.from_u8(112, 31, 126, 255)
BEIGE =
Color.from_u8(211, 176, 131, 255)
BROWN =
Color.from_u8(127, 106, 79, 255)
DARKBROWN =
Color.from_u8(76, 63, 47, 255)
WHITE =
Color.from_u8(255, 255, 255, 255)
BLACK =
Color.from_u8(0, 0, 0, 255)
BLANK =
Color.from_u8(0, 0, 0, 0)
MAGENTA =
Color.from_u8(255, 0, 255, 255)
RAYWHITE =
Color.from_u8(245, 245, 245, 255)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load_lib(libpath, raygui_libpath: nil, physac_libpath: nil) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/raylib.rb', line 19

def self.load_lib(libpath, raygui_libpath: nil, physac_libpath: nil)
  lib_paths = [libpath, raygui_libpath, physac_libpath].compact

  ffi_lib_flags :now, :global
  ffi_lib(*lib_paths)
  setup_symbols

  setup_raygui_symbols unless raygui_libpath.nil?
  setup_physac_symbols unless physac_libpath.nil?
rescue LoadError => e
  warn e
end

.setup_physac_symbolsObject

Function



190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
# File 'lib/physac.rb', line 190

def self.setup_physac_symbols
  entries = [

    # InitPhysics : Initializes physics system
    # @return [void]
    [:InitPhysics, :InitPhysics, [], :void],

    # UpdatePhysics : Update physics system
    # @return [void]
    [:UpdatePhysics, :UpdatePhysics, [], :void],

    # ResetPhysics : Reset physics system (global variables)
    # @return [void]
    [:ResetPhysics, :ResetPhysics, [], :void],

    # ClosePhysics : Close physics system and unload used memory
    # @return [void]
    [:ClosePhysics, :ClosePhysics, [], :void],

    # SetPhysicsTimeStep : Sets physics fixed time step in milliseconds. 1.666666 by default
    # @param delta [double]
    # @return [void]
    [:SetPhysicsTimeStep, :SetPhysicsTimeStep, [:double], :void],

    # SetPhysicsGravity : Sets physics global gravity force
    # @param x [float]
    # @param y [float]
    # @return [void]
    [:SetPhysicsGravity, :SetPhysicsGravity, [:float, :float], :void],

    # CreatePhysicsBodyCircle : Creates a new circle physics body with generic parameters
    # @param pos [Vector2]
    # @param radius [float]
    # @param density [float]
    # @return [PhysicsBody]
    [:CreatePhysicsBodyCircle, :CreatePhysicsBodyCircle, [Vector2.by_value, :float, :float], :pointer],

    # CreatePhysicsBodyRectangle : Creates a new rectangle physics body with generic parameters
    # @param pos [Vector2]
    # @param width [float]
    # @param height [float]
    # @param density [float]
    # @return [PhysicsBody]
    [:CreatePhysicsBodyRectangle, :CreatePhysicsBodyRectangle, [Vector2.by_value, :float, :float, :float], :pointer],

    # CreatePhysicsBodyPolygon : Creates a new polygon physics body with generic parameters
    # @param pos [Vector2]
    # @param radius [float]
    # @param sides [int]
    # @param density [float]
    # @return [PhysicsBody]
    [:CreatePhysicsBodyPolygon, :CreatePhysicsBodyPolygon, [Vector2.by_value, :float, :int, :float], :pointer],

    # DestroyPhysicsBody : Destroy a physics body
    # @param body [PhysicsBody]
    # @return [void]
    [:DestroyPhysicsBody, :DestroyPhysicsBody, [:pointer], :void],

    # PhysicsAddForce : Adds a force to a physics body
    # @param body [PhysicsBody]
    # @param force [Vector2]
    # @return [void]
    [:PhysicsAddForce, :PhysicsAddForce, [:pointer, Vector2.by_value], :void],

    # PhysicsAddTorque : Adds an angular force to a physics body
    # @param body [PhysicsBody]
    # @param amount [float]
    # @return [void]
    [:PhysicsAddTorque, :PhysicsAddTorque, [:pointer, :float], :void],

    # PhysicsShatter : Shatters a polygon shape physics body to little physics bodies with explosion force
    # @param body [PhysicsBody]
    # @param position [Vector2]
    # @param force [float]
    # @return [void]
    [:PhysicsShatter, :PhysicsShatter, [:pointer, Vector2.by_value, :float], :void],

    # SetPhysicsBodyRotation : Sets physics body shape transform based on radians parameter
    # @param body [PhysicsBody]
    # @param radians [float]
    # @return [void]
    [:SetPhysicsBodyRotation, :SetPhysicsBodyRotation, [:pointer, :float], :void],

    # GetPhysicsBody : Returns a physics body of the bodies pool at a specific index
    # @param index [int]
    # @return [PhysicsBody]
    [:GetPhysicsBody, :GetPhysicsBody, [:int], :pointer],

    # GetPhysicsBodiesCount : Returns the current amount of created physics bodies
    # @return [int]
    [:GetPhysicsBodiesCount, :GetPhysicsBodiesCount, [], :int],

    # GetPhysicsShapeType : Returns the physics body shape type (PHYSICS_CIRCLE or PHYSICS_POLYGON)
    # @param index [int]
    # @return [int]
    [:GetPhysicsShapeType, :GetPhysicsShapeType, [:int], :int],

    # GetPhysicsShapeVerticesCount : Returns the amount of vertices of a physics body shape
    # @param index [int]
    # @return [int]
    [:GetPhysicsShapeVerticesCount, :GetPhysicsShapeVerticesCount, [:int], :int],

    # GetPhysicsShapeVertex : Returns transformed position of a body shape (body position + vertex transformed position)
    # @param body [PhysicsBody]
    # @param vertex [int]
    # @return [Vector2]
    [:GetPhysicsShapeVertex, :GetPhysicsShapeVertex, [:pointer, :int], Vector2.by_value],
  ]
  entries.each do |entry|
    attach_function entry[0], entry[1], entry[2], entry[3]
  rescue FFI::NotFoundError => e
    warn "[Warning] Failed to import #{entry[0]} (#{e})."
  end
end

.setup_raygui_symbolsObject

Function



439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
# File 'lib/raygui.rb', line 439

def self.setup_raygui_symbols
  entries = [

    # GuiEnable : Enable gui controls (global state)
    # @return [void]
    [:GuiEnable, :GuiEnable, [], :void],

    # GuiDisable : Disable gui controls (global state)
    # @return [void]
    [:GuiDisable, :GuiDisable, [], :void],

    # GuiLock : Lock gui controls (global state)
    # @return [void]
    [:GuiLock, :GuiLock, [], :void],

    # GuiUnlock : Unlock gui controls (global state)
    # @return [void]
    [:GuiUnlock, :GuiUnlock, [], :void],

    # GuiIsLocked : Check if gui is locked (global state)
    # @return [bool]
    [:GuiIsLocked, :GuiIsLocked, [], :bool],

    # GuiFade : Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
    # @param alpha [float]
    # @return [void]
    [:GuiFade, :GuiFade, [:float], :void],

    # GuiSetState : Set gui state (global state)
    # @param state [int]
    # @return [void]
    [:GuiSetState, :GuiSetState, [:int], :void],

    # GuiGetState : Get gui state (global state)
    # @return [int]
    [:GuiGetState, :GuiGetState, [], :int],

    # GuiSetFont : Set gui custom font (global state)
    # @param font [Font]
    # @return [void]
    [:GuiSetFont, :GuiSetFont, [Font.by_value], :void],

    # GuiGetFont : Get gui custom font (global state)
    # @return [Font]
    [:GuiGetFont, :GuiGetFont, [], Font.by_value],

    # GuiSetStyle : Set one style property
    # @param control [int]
    # @param property [int]
    # @param value [int]
    # @return [void]
    [:GuiSetStyle, :GuiSetStyle, [:int, :int, :int], :void],

    # GuiGetStyle : Get one style property
    # @param control [int]
    # @param property [int]
    # @return [int]
    [:GuiGetStyle, :GuiGetStyle, [:int, :int], :int],

    # GuiWindowBox : Window Box control, shows a window that can be closed
    # @param bounds [Rectangle]
    # @param title [const char *]
    # @return [bool]
    [:GuiWindowBox, :GuiWindowBox, [Rectangle.by_value, :pointer], :bool],

    # GuiGroupBox : Group Box control with text name
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @return [void]
    [:GuiGroupBox, :GuiGroupBox, [Rectangle.by_value, :pointer], :void],

    # GuiLine : Line separator control, could contain text
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @return [void]
    [:GuiLine, :GuiLine, [Rectangle.by_value, :pointer], :void],

    # GuiPanel : Panel control, useful to group controls
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @return [void]
    [:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :void],

    # GuiTabBar : Tab Bar control, returns TAB to be closed or -1
    # @param bounds [Rectangle]
    # @param text [const char **]
    # @param count [int]
    # @param active [int *]
    # @return [int]
    [:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :int, :pointer], :int],

    # GuiScrollPanel : Scroll Panel control
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param content [Rectangle]
    # @param scroll [Vector2 *]
    # @return [Rectangle]
    [:GuiScrollPanel, :GuiScrollPanel, [Rectangle.by_value, :pointer, Rectangle.by_value, :pointer], Rectangle.by_value],

    # GuiLabel : Label control, shows text
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @return [void]
    [:GuiLabel, :GuiLabel, [Rectangle.by_value, :pointer], :void],

    # GuiButton : Button control, returns true when clicked
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @return [bool]
    [:GuiButton, :GuiButton, [Rectangle.by_value, :pointer], :bool],

    # GuiLabelButton : Label button control, show true when clicked
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @return [bool]
    [:GuiLabelButton, :GuiLabelButton, [Rectangle.by_value, :pointer], :bool],

    # GuiToggle : Toggle Button control, returns true when active
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param active [bool]
    # @return [bool]
    [:GuiToggle, :GuiToggle, [Rectangle.by_value, :pointer, :bool], :bool],

    # GuiToggleGroup : Toggle Group control, returns active toggle index
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param active [int]
    # @return [int]
    [:GuiToggleGroup, :GuiToggleGroup, [Rectangle.by_value, :pointer, :int], :int],

    # GuiCheckBox : Check Box control, returns true when active
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param checked [bool]
    # @return [bool]
    [:GuiCheckBox, :GuiCheckBox, [Rectangle.by_value, :pointer, :bool], :bool],

    # GuiComboBox : Combo Box control, returns selected item index
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param active [int]
    # @return [int]
    [:GuiComboBox, :GuiComboBox, [Rectangle.by_value, :pointer, :int], :int],

    # GuiDropdownBox : Dropdown Box control, returns selected item
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param active [int *]
    # @param editMode [bool]
    # @return [bool]
    [:GuiDropdownBox, :GuiDropdownBox, [Rectangle.by_value, :pointer, :pointer, :bool], :bool],

    # GuiSpinner : Spinner control, returns selected value
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param value [int *]
    # @param minValue [int]
    # @param maxValue [int]
    # @param editMode [bool]
    # @return [bool]
    [:GuiSpinner, :GuiSpinner, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :bool],

    # GuiValueBox : Value Box control, updates input text with numbers
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param value [int *]
    # @param minValue [int]
    # @param maxValue [int]
    # @param editMode [bool]
    # @return [bool]
    [:GuiValueBox, :GuiValueBox, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :bool],

    # GuiTextBox : Text Box control, updates input text
    # @param bounds [Rectangle]
    # @param text [char *]
    # @param textSize [int]
    # @param editMode [bool]
    # @return [bool]
    [:GuiTextBox, :GuiTextBox, [Rectangle.by_value, :pointer, :int, :bool], :bool],

    # GuiTextBoxMulti : Text Box control with multiple lines
    # @param bounds [Rectangle]
    # @param text [char *]
    # @param textSize [int]
    # @param editMode [bool]
    # @return [bool]
    [:GuiTextBoxMulti, :GuiTextBoxMulti, [Rectangle.by_value, :pointer, :int, :bool], :bool],

    # GuiSlider : Slider control, returns selected value
    # @param bounds [Rectangle]
    # @param textLeft [const char *]
    # @param textRight [const char *]
    # @param value [float]
    # @param minValue [float]
    # @param maxValue [float]
    # @return [float]
    [:GuiSlider, :GuiSlider, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],

    # GuiSliderBar : Slider Bar control, returns selected value
    # @param bounds [Rectangle]
    # @param textLeft [const char *]
    # @param textRight [const char *]
    # @param value [float]
    # @param minValue [float]
    # @param maxValue [float]
    # @return [float]
    [:GuiSliderBar, :GuiSliderBar, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],

    # GuiProgressBar : Progress Bar control, shows current progress value
    # @param bounds [Rectangle]
    # @param textLeft [const char *]
    # @param textRight [const char *]
    # @param value [float]
    # @param minValue [float]
    # @param maxValue [float]
    # @return [float]
    [:GuiProgressBar, :GuiProgressBar, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],

    # GuiStatusBar : Status Bar control, shows info text
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @return [void]
    [:GuiStatusBar, :GuiStatusBar, [Rectangle.by_value, :pointer], :void],

    # GuiDummyRec : Dummy control for placeholders
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @return [void]
    [:GuiDummyRec, :GuiDummyRec, [Rectangle.by_value, :pointer], :void],

    # GuiGrid : Grid control, returns mouse cell position
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param spacing [float]
    # @param subdivs [int]
    # @return [Vector2]
    [:GuiGrid, :GuiGrid, [Rectangle.by_value, :pointer, :float, :int], Vector2.by_value],

    # GuiListView : List View control, returns selected list item index
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param scrollIndex [int *]
    # @param active [int]
    # @return [int]
    [:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :int], :int],

    # GuiListViewEx : List View with extended parameters
    # @param bounds [Rectangle]
    # @param text [const char **]
    # @param count [int]
    # @param focus [int *]
    # @param scrollIndex [int *]
    # @param active [int]
    # @return [int]
    [:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :int], :int],

    # GuiMessageBox : Message Box control, displays a message
    # @param bounds [Rectangle]
    # @param title [const char *]
    # @param message [const char *]
    # @param buttons [const char *]
    # @return [int]
    [:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],

    # GuiTextInputBox : Text Input Box control, ask for text, supports secret
    # @param bounds [Rectangle]
    # @param title [const char *]
    # @param message [const char *]
    # @param buttons [const char *]
    # @param text [char *]
    # @param textMaxSize [int]
    # @param secretViewActive [int *]
    # @return [int]
    [:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer], :int],

    # GuiColorPicker : Color Picker control (multiple color controls)
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param color [Color]
    # @return [Color]
    [:GuiColorPicker, :GuiColorPicker, [Rectangle.by_value, :pointer, Color.by_value], Color.by_value],

    # GuiColorPanel : Color Panel control
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param color [Color]
    # @return [Color]
    [:GuiColorPanel, :GuiColorPanel, [Rectangle.by_value, :pointer, Color.by_value], Color.by_value],

    # GuiColorBarAlpha : Color Bar Alpha control
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param alpha [float]
    # @return [float]
    [:GuiColorBarAlpha, :GuiColorBarAlpha, [Rectangle.by_value, :pointer, :float], :float],

    # GuiColorBarHue : Color Bar Hue control
    # @param bounds [Rectangle]
    # @param text [const char *]
    # @param value [float]
    # @return [float]
    [:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :float], :float],

    # GuiLoadStyle : Load style file over global style variable (.rgs)
    # @param fileName [const char *]
    # @return [void]
    [:GuiLoadStyle, :GuiLoadStyle, [:pointer], :void],

    # GuiLoadStyleDefault : Load style default over global style
    # @return [void]
    [:GuiLoadStyleDefault, :GuiLoadStyleDefault, [], :void],

    # GuiEnableTooltip : Enable gui tooltips (global state)
    # @return [void]
    [:GuiEnableTooltip, :GuiEnableTooltip, [], :void],

    # GuiDisableTooltip : Disable gui tooltips (global state)
    # @return [void]
    [:GuiDisableTooltip, :GuiDisableTooltip, [], :void],

    # GuiSetTooltip : Set tooltip string
    # @param tooltip [const char *]
    # @return [void]
    [:GuiSetTooltip, :GuiSetTooltip, [:pointer], :void],

    # GuiIconText : Get text with icon id prepended (if supported)
    # @param iconId [int]
    # @param text [const char *]
    # @return [const char *]
    [:GuiIconText, :GuiIconText, [:int, :pointer], :pointer],

    # GuiGetIcons : Get raygui icons data pointer
    # @return [unsigned int *]
    [:GuiGetIcons, :GuiGetIcons, [], :pointer],

    # GuiLoadIcons : Load raygui icons file (.rgi) into internal icons data
    # @param fileName [const char *]
    # @param loadIconsName [bool]
    # @return [char **]
    [:GuiLoadIcons, :GuiLoadIcons, [:pointer, :bool], :pointer],

    # GuiDrawIcon
    # @param iconId [int]
    # @param posX [int]
    # @param posY [int]
    # @param pixelSize [int]
    # @param color [Color]
    # @return [void]
    [:GuiDrawIcon, :GuiDrawIcon, [:int, :int, :int, :int, Color.by_value], :void],

    # GuiSetIconScale : Set icon drawing size
    # @param scale [int]
    # @return [void]
    [:GuiSetIconScale, :GuiSetIconScale, [:int], :void],
  ]
  entries.each do |entry|
    attach_function entry[0], entry[1], entry[2], entry[3]
  rescue FFI::NotFoundError => e
    warn "[Warning] Failed to import #{entry[0]} (#{e})."
  end
end

.setup_raylib_symbolsObject

Function



1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
# File 'lib/raylib_main.rb', line 1094

def self.setup_raylib_symbols
  entries = [

    # InitWindow : Initialize window and OpenGL context
    # @param width [int]
    # @param height [int]
    # @param title [const char *]
    # @return [void]
    [:InitWindow, :InitWindow, [:int, :int, :pointer], :void],

    # WindowShouldClose : Check if KEY_ESCAPE pressed or Close icon pressed
    # @return [bool]
    [:WindowShouldClose, :WindowShouldClose, [], :bool],

    # CloseWindow : Close window and unload OpenGL context
    # @return [void]
    [:CloseWindow, :CloseWindow, [], :void],

    # IsWindowReady : Check if window has been initialized successfully
    # @return [bool]
    [:IsWindowReady, :IsWindowReady, [], :bool],

    # IsWindowFullscreen : Check if window is currently fullscreen
    # @return [bool]
    [:IsWindowFullscreen, :IsWindowFullscreen, [], :bool],

    # IsWindowHidden : Check if window is currently hidden (only PLATFORM_DESKTOP)
    # @return [bool]
    [:IsWindowHidden, :IsWindowHidden, [], :bool],

    # IsWindowMinimized : Check if window is currently minimized (only PLATFORM_DESKTOP)
    # @return [bool]
    [:IsWindowMinimized, :IsWindowMinimized, [], :bool],

    # IsWindowMaximized : Check if window is currently maximized (only PLATFORM_DESKTOP)
    # @return [bool]
    [:IsWindowMaximized, :IsWindowMaximized, [], :bool],

    # IsWindowFocused : Check if window is currently focused (only PLATFORM_DESKTOP)
    # @return [bool]
    [:IsWindowFocused, :IsWindowFocused, [], :bool],

    # IsWindowResized : Check if window has been resized last frame
    # @return [bool]
    [:IsWindowResized, :IsWindowResized, [], :bool],

    # IsWindowState : Check if one specific window flag is enabled
    # @param flag [unsigned int]
    # @return [bool]
    [:IsWindowState, :IsWindowState, [:uint], :bool],

    # SetWindowState : Set window configuration state using flags (only PLATFORM_DESKTOP)
    # @param flags [unsigned int]
    # @return [void]
    [:SetWindowState, :SetWindowState, [:uint], :void],

    # ClearWindowState : Clear window configuration state flags
    # @param flags [unsigned int]
    # @return [void]
    [:ClearWindowState, :ClearWindowState, [:uint], :void],

    # ToggleFullscreen : Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)
    # @return [void]
    [:ToggleFullscreen, :ToggleFullscreen, [], :void],

    # MaximizeWindow : Set window state: maximized, if resizable (only PLATFORM_DESKTOP)
    # @return [void]
    [:MaximizeWindow, :MaximizeWindow, [], :void],

    # MinimizeWindow : Set window state: minimized, if resizable (only PLATFORM_DESKTOP)
    # @return [void]
    [:MinimizeWindow, :MinimizeWindow, [], :void],

    # RestoreWindow : Set window state: not minimized/maximized (only PLATFORM_DESKTOP)
    # @return [void]
    [:RestoreWindow, :RestoreWindow, [], :void],

    # SetWindowIcon : Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)
    # @param image [Image]
    # @return [void]
    [:SetWindowIcon, :SetWindowIcon, [Image.by_value], :void],

    # SetWindowIcons : Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)
    # @param images [Image *]
    # @param count [int]
    # @return [void]
    [:SetWindowIcons, :SetWindowIcons, [:pointer, :int], :void],

    # SetWindowTitle : Set title for window (only PLATFORM_DESKTOP)
    # @param title [const char *]
    # @return [void]
    [:SetWindowTitle, :SetWindowTitle, [:pointer], :void],

    # SetWindowPosition : Set window position on screen (only PLATFORM_DESKTOP)
    # @param x [int]
    # @param y [int]
    # @return [void]
    [:SetWindowPosition, :SetWindowPosition, [:int, :int], :void],

    # SetWindowMonitor : Set monitor for the current window (fullscreen mode)
    # @param monitor [int]
    # @return [void]
    [:SetWindowMonitor, :SetWindowMonitor, [:int], :void],

    # SetWindowMinSize : Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)
    # @param width [int]
    # @param height [int]
    # @return [void]
    [:SetWindowMinSize, :SetWindowMinSize, [:int, :int], :void],

    # SetWindowSize : Set window dimensions
    # @param width [int]
    # @param height [int]
    # @return [void]
    [:SetWindowSize, :SetWindowSize, [:int, :int], :void],

    # SetWindowOpacity : Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)
    # @param opacity [float]
    # @return [void]
    [:SetWindowOpacity, :SetWindowOpacity, [:float], :void],

    # GetWindowHandle : Get native window handle
    # @return [void *]
    [:GetWindowHandle, :GetWindowHandle, [], :pointer],

    # GetScreenWidth : Get current screen width
    # @return [int]
    [:GetScreenWidth, :GetScreenWidth, [], :int],

    # GetScreenHeight : Get current screen height
    # @return [int]
    [:GetScreenHeight, :GetScreenHeight, [], :int],

    # GetRenderWidth : Get current render width (it considers HiDPI)
    # @return [int]
    [:GetRenderWidth, :GetRenderWidth, [], :int],

    # GetRenderHeight : Get current render height (it considers HiDPI)
    # @return [int]
    [:GetRenderHeight, :GetRenderHeight, [], :int],

    # GetMonitorCount : Get number of connected monitors
    # @return [int]
    [:GetMonitorCount, :GetMonitorCount, [], :int],

    # GetCurrentMonitor : Get current connected monitor
    # @return [int]
    [:GetCurrentMonitor, :GetCurrentMonitor, [], :int],

    # GetMonitorPosition : Get specified monitor position
    # @param monitor [int]
    # @return [Vector2]
    [:GetMonitorPosition, :GetMonitorPosition, [:int], Vector2.by_value],

    # GetMonitorWidth : Get specified monitor width (current video mode used by monitor)
    # @param monitor [int]
    # @return [int]
    [:GetMonitorWidth, :GetMonitorWidth, [:int], :int],

    # GetMonitorHeight : Get specified monitor height (current video mode used by monitor)
    # @param monitor [int]
    # @return [int]
    [:GetMonitorHeight, :GetMonitorHeight, [:int], :int],

    # GetMonitorPhysicalWidth : Get specified monitor physical width in millimetres
    # @param monitor [int]
    # @return [int]
    [:GetMonitorPhysicalWidth, :GetMonitorPhysicalWidth, [:int], :int],

    # GetMonitorPhysicalHeight : Get specified monitor physical height in millimetres
    # @param monitor [int]
    # @return [int]
    [:GetMonitorPhysicalHeight, :GetMonitorPhysicalHeight, [:int], :int],

    # GetMonitorRefreshRate : Get specified monitor refresh rate
    # @param monitor [int]
    # @return [int]
    [:GetMonitorRefreshRate, :GetMonitorRefreshRate, [:int], :int],

    # GetWindowPosition : Get window position XY on monitor
    # @return [Vector2]
    [:GetWindowPosition, :GetWindowPosition, [], Vector2.by_value],

    # GetWindowScaleDPI : Get window scale DPI factor
    # @return [Vector2]
    [:GetWindowScaleDPI, :GetWindowScaleDPI, [], Vector2.by_value],

    # GetMonitorName : Get the human-readable, UTF-8 encoded name of the primary monitor
    # @param monitor [int]
    # @return [const char *]
    [:GetMonitorName, :GetMonitorName, [:int], :pointer],

    # SetClipboardText : Set clipboard text content
    # @param text [const char *]
    # @return [void]
    [:SetClipboardText, :SetClipboardText, [:pointer], :void],

    # GetClipboardText : Get clipboard text content
    # @return [const char *]
    [:GetClipboardText, :GetClipboardText, [], :pointer],

    # EnableEventWaiting : Enable waiting for events on EndDrawing(), no automatic event polling
    # @return [void]
    [:EnableEventWaiting, :EnableEventWaiting, [], :void],

    # DisableEventWaiting : Disable waiting for events on EndDrawing(), automatic events polling
    # @return [void]
    [:DisableEventWaiting, :DisableEventWaiting, [], :void],

    # SwapScreenBuffer : Swap back buffer with front buffer (screen drawing)
    # @return [void]
    [:SwapScreenBuffer, :SwapScreenBuffer, [], :void],

    # PollInputEvents : Register all input events
    # @return [void]
    [:PollInputEvents, :PollInputEvents, [], :void],

    # WaitTime : Wait for some time (halt program execution)
    # @param seconds [double]
    # @return [void]
    [:WaitTime, :WaitTime, [:double], :void],

    # ShowCursor : Shows cursor
    # @return [void]
    [:ShowCursor, :ShowCursor, [], :void],

    # HideCursor : Hides cursor
    # @return [void]
    [:HideCursor, :HideCursor, [], :void],

    # IsCursorHidden : Check if cursor is not visible
    # @return [bool]
    [:IsCursorHidden, :IsCursorHidden, [], :bool],

    # EnableCursor : Enables cursor (unlock cursor)
    # @return [void]
    [:EnableCursor, :EnableCursor, [], :void],

    # DisableCursor : Disables cursor (lock cursor)
    # @return [void]
    [:DisableCursor, :DisableCursor, [], :void],

    # IsCursorOnScreen : Check if cursor is on the screen
    # @return [bool]
    [:IsCursorOnScreen, :IsCursorOnScreen, [], :bool],

    # ClearBackground : Set background color (framebuffer clear color)
    # @param color [Color]
    # @return [void]
    [:ClearBackground, :ClearBackground, [Color.by_value], :void],

    # BeginDrawing : Setup canvas (framebuffer) to start drawing
    # @return [void]
    [:BeginDrawing, :BeginDrawing, [], :void],

    # EndDrawing : End canvas drawing and swap buffers (double buffering)
    # @return [void]
    [:EndDrawing, :EndDrawing, [], :void],

    # BeginMode2D : Begin 2D mode with custom camera (2D)
    # @param camera [Camera2D]
    # @return [void]
    [:BeginMode2D, :BeginMode2D, [Camera2D.by_value], :void],

    # EndMode2D : Ends 2D mode with custom camera
    # @return [void]
    [:EndMode2D, :EndMode2D, [], :void],

    # BeginMode3D : Begin 3D mode with custom camera (3D)
    # @param camera [Camera3D]
    # @return [void]
    [:BeginMode3D, :BeginMode3D, [Camera3D.by_value], :void],

    # EndMode3D : Ends 3D mode and returns to default 2D orthographic mode
    # @return [void]
    [:EndMode3D, :EndMode3D, [], :void],

    # BeginTextureMode : Begin drawing to render texture
    # @param target [RenderTexture2D]
    # @return [void]
    [:BeginTextureMode, :BeginTextureMode, [RenderTexture2D.by_value], :void],

    # EndTextureMode : Ends drawing to render texture
    # @return [void]
    [:EndTextureMode, :EndTextureMode, [], :void],

    # BeginShaderMode : Begin custom shader drawing
    # @param shader [Shader]
    # @return [void]
    [:BeginShaderMode, :BeginShaderMode, [Shader.by_value], :void],

    # EndShaderMode : End custom shader drawing (use default shader)
    # @return [void]
    [:EndShaderMode, :EndShaderMode, [], :void],

    # BeginBlendMode : Begin blending mode (alpha, additive, multiplied, subtract, custom)
    # @param mode [int]
    # @return [void]
    [:BeginBlendMode, :BeginBlendMode, [:int], :void],

    # EndBlendMode : End blending mode (reset to default: alpha blending)
    # @return [void]
    [:EndBlendMode, :EndBlendMode, [], :void],

    # BeginScissorMode : Begin scissor mode (define screen area for following drawing)
    # @param x [int]
    # @param y [int]
    # @param width [int]
    # @param height [int]
    # @return [void]
    [:BeginScissorMode, :BeginScissorMode, [:int, :int, :int, :int], :void],

    # EndScissorMode : End scissor mode
    # @return [void]
    [:EndScissorMode, :EndScissorMode, [], :void],

    # BeginVrStereoMode : Begin stereo rendering (requires VR simulator)
    # @param config [VrStereoConfig]
    # @return [void]
    [:BeginVrStereoMode, :BeginVrStereoMode, [VrStereoConfig.by_value], :void],

    # EndVrStereoMode : End stereo rendering (requires VR simulator)
    # @return [void]
    [:EndVrStereoMode, :EndVrStereoMode, [], :void],

    # LoadVrStereoConfig : Load VR stereo config for VR simulator device parameters
    # @param device [VrDeviceInfo]
    # @return [VrStereoConfig]
    [:LoadVrStereoConfig, :LoadVrStereoConfig, [VrDeviceInfo.by_value], VrStereoConfig.by_value],

    # UnloadVrStereoConfig : Unload VR stereo config
    # @param config [VrStereoConfig]
    # @return [void]
    [:UnloadVrStereoConfig, :UnloadVrStereoConfig, [VrStereoConfig.by_value], :void],

    # LoadShader : Load shader from files and bind default locations
    # @param vsFileName [const char *]
    # @param fsFileName [const char *]
    # @return [Shader]
    [:LoadShader, :LoadShader, [:pointer, :pointer], Shader.by_value],

    # LoadShaderFromMemory : Load shader from code strings and bind default locations
    # @param vsCode [const char *]
    # @param fsCode [const char *]
    # @return [Shader]
    [:LoadShaderFromMemory, :LoadShaderFromMemory, [:pointer, :pointer], Shader.by_value],

    # IsShaderReady : Check if a shader is ready
    # @param shader [Shader]
    # @return [bool]
    [:IsShaderReady, :IsShaderReady, [Shader.by_value], :bool],

    # GetShaderLocation : Get shader uniform location
    # @param shader [Shader]
    # @param uniformName [const char *]
    # @return [int]
    [:GetShaderLocation, :GetShaderLocation, [Shader.by_value, :pointer], :int],

    # GetShaderLocationAttrib : Get shader attribute location
    # @param shader [Shader]
    # @param attribName [const char *]
    # @return [int]
    [:GetShaderLocationAttrib, :GetShaderLocationAttrib, [Shader.by_value, :pointer], :int],

    # SetShaderValue : Set shader uniform value
    # @param shader [Shader]
    # @param locIndex [int]
    # @param value [const void *]
    # @param uniformType [int]
    # @return [void]
    [:SetShaderValue, :SetShaderValue, [Shader.by_value, :int, :pointer, :int], :void],

    # SetShaderValueV : Set shader uniform value vector
    # @param shader [Shader]
    # @param locIndex [int]
    # @param value [const void *]
    # @param uniformType [int]
    # @param count [int]
    # @return [void]
    [:SetShaderValueV, :SetShaderValueV, [Shader.by_value, :int, :pointer, :int, :int], :void],

    # SetShaderValueMatrix : Set shader uniform value (matrix 4x4)
    # @param shader [Shader]
    # @param locIndex [int]
    # @param mat [Matrix]
    # @return [void]
    [:SetShaderValueMatrix, :SetShaderValueMatrix, [Shader.by_value, :int, Matrix.by_value], :void],

    # SetShaderValueTexture : Set shader uniform value for texture (sampler2d)
    # @param shader [Shader]
    # @param locIndex [int]
    # @param texture [Texture2D]
    # @return [void]
    [:SetShaderValueTexture, :SetShaderValueTexture, [Shader.by_value, :int, Texture2D.by_value], :void],

    # UnloadShader : Unload shader from GPU memory (VRAM)
    # @param shader [Shader]
    # @return [void]
    [:UnloadShader, :UnloadShader, [Shader.by_value], :void],

    # GetMouseRay : Get a ray trace from mouse position
    # @param mousePosition [Vector2]
    # @param camera [Camera]
    # @return [Ray]
    [:GetMouseRay, :GetMouseRay, [Vector2.by_value, Camera.by_value], Ray.by_value],

    # GetCameraMatrix : Get camera transform matrix (view matrix)
    # @param camera [Camera]
    # @return [Matrix]
    [:GetCameraMatrix, :GetCameraMatrix, [Camera.by_value], Matrix.by_value],

    # GetCameraMatrix2D : Get camera 2d transform matrix
    # @param camera [Camera2D]
    # @return [Matrix]
    [:GetCameraMatrix2D, :GetCameraMatrix2D, [Camera2D.by_value], Matrix.by_value],

    # GetWorldToScreen : Get the screen space position for a 3d world space position
    # @param position [Vector3]
    # @param camera [Camera]
    # @return [Vector2]
    [:GetWorldToScreen, :GetWorldToScreen, [Vector3.by_value, Camera.by_value], Vector2.by_value],

    # GetScreenToWorld2D : Get the world space position for a 2d camera screen space position
    # @param position [Vector2]
    # @param camera [Camera2D]
    # @return [Vector2]
    [:GetScreenToWorld2D, :GetScreenToWorld2D, [Vector2.by_value, Camera2D.by_value], Vector2.by_value],

    # GetWorldToScreenEx : Get size position for a 3d world space position
    # @param position [Vector3]
    # @param camera [Camera]
    # @param width [int]
    # @param height [int]
    # @return [Vector2]
    [:GetWorldToScreenEx, :GetWorldToScreenEx, [Vector3.by_value, Camera.by_value, :int, :int], Vector2.by_value],

    # GetWorldToScreen2D : Get the screen space position for a 2d camera world space position
    # @param position [Vector2]
    # @param camera [Camera2D]
    # @return [Vector2]
    [:GetWorldToScreen2D, :GetWorldToScreen2D, [Vector2.by_value, Camera2D.by_value], Vector2.by_value],

    # SetTargetFPS : Set target FPS (maximum)
    # @param fps [int]
    # @return [void]
    [:SetTargetFPS, :SetTargetFPS, [:int], :void],

    # GetFPS : Get current FPS
    # @return [int]
    [:GetFPS, :GetFPS, [], :int],

    # GetFrameTime : Get time in seconds for last frame drawn (delta time)
    # @return [float]
    [:GetFrameTime, :GetFrameTime, [], :float],

    # GetTime : Get elapsed time in seconds since InitWindow()
    # @return [double]
    [:GetTime, :GetTime, [], :double],

    # GetRandomValue : Get a random value between min and max (both included)
    # @param min [int]
    # @param max [int]
    # @return [int]
    [:GetRandomValue, :GetRandomValue, [:int, :int], :int],

    # SetRandomSeed : Set the seed for the random number generator
    # @param seed [unsigned int]
    # @return [void]
    [:SetRandomSeed, :SetRandomSeed, [:uint], :void],

    # TakeScreenshot : Takes a screenshot of current screen (filename extension defines format)
    # @param fileName [const char *]
    # @return [void]
    [:TakeScreenshot, :TakeScreenshot, [:pointer], :void],

    # SetConfigFlags : Setup init configuration flags (view FLAGS)
    # @param flags [unsigned int]
    # @return [void]
    [:SetConfigFlags, :SetConfigFlags, [:uint], :void],

    # TraceLog : Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)
    # @param logLevel [int]
    # @param text [const char *]
    # @param args [...]
    # @return [void]
    [:TraceLog, :TraceLog, [:int, :pointer, :varargs], :void],

    # SetTraceLogLevel : Set the current threshold (minimum) log level
    # @param logLevel [int]
    # @return [void]
    [:SetTraceLogLevel, :SetTraceLogLevel, [:int], :void],

    # MemAlloc : Internal memory allocator
    # @param size [unsigned int]
    # @return [void *]
    [:MemAlloc, :MemAlloc, [:uint], :pointer],

    # MemRealloc : Internal memory reallocator
    # @param ptr [void *]
    # @param size [unsigned int]
    # @return [void *]
    [:MemRealloc, :MemRealloc, [:pointer, :uint], :pointer],

    # MemFree : Internal memory free
    # @param ptr [void *]
    # @return [void]
    [:MemFree, :MemFree, [:pointer], :void],

    # OpenURL : Open URL with default system browser (if available)
    # @param url [const char *]
    # @return [void]
    [:OpenURL, :OpenURL, [:pointer], :void],

    # SetTraceLogCallback : Set custom trace log
    # @param callback [TraceLogCallback]
    # @return [void]
    [:SetTraceLogCallback, :SetTraceLogCallback, [:TraceLogCallback], :void],

    # SetLoadFileDataCallback : Set custom file binary data loader
    # @param callback [LoadFileDataCallback]
    # @return [void]
    [:SetLoadFileDataCallback, :SetLoadFileDataCallback, [:LoadFileDataCallback], :void],

    # SetSaveFileDataCallback : Set custom file binary data saver
    # @param callback [SaveFileDataCallback]
    # @return [void]
    [:SetSaveFileDataCallback, :SetSaveFileDataCallback, [:SaveFileDataCallback], :void],

    # SetLoadFileTextCallback : Set custom file text data loader
    # @param callback [LoadFileTextCallback]
    # @return [void]
    [:SetLoadFileTextCallback, :SetLoadFileTextCallback, [:LoadFileTextCallback], :void],

    # SetSaveFileTextCallback : Set custom file text data saver
    # @param callback [SaveFileTextCallback]
    # @return [void]
    [:SetSaveFileTextCallback, :SetSaveFileTextCallback, [:SaveFileTextCallback], :void],

    # LoadFileData : Load file data as byte array (read)
    # @param fileName [const char *]
    # @param bytesRead [unsigned int *]
    # @return [unsigned char *]
    [:LoadFileData, :LoadFileData, [:pointer, :pointer], :pointer],

    # UnloadFileData : Unload file data allocated by LoadFileData()
    # @param data [unsigned char *]
    # @return [void]
    [:UnloadFileData, :UnloadFileData, [:pointer], :void],

    # SaveFileData : Save data to file from byte array (write), returns true on success
    # @param fileName [const char *]
    # @param data [void *]
    # @param bytesToWrite [unsigned int]
    # @return [bool]
    [:SaveFileData, :SaveFileData, [:pointer, :pointer, :uint], :bool],

    # ExportDataAsCode : Export data to code (.h), returns true on success
    # @param data [const unsigned char *]
    # @param size [unsigned int]
    # @param fileName [const char *]
    # @return [bool]
    [:ExportDataAsCode, :ExportDataAsCode, [:pointer, :uint, :pointer], :bool],

    # LoadFileText : Load text data from file (read), returns a '\0' terminated string
    # @param fileName [const char *]
    # @return [char *]
    [:LoadFileText, :LoadFileText, [:pointer], :pointer],

    # UnloadFileText : Unload file text data allocated by LoadFileText()
    # @param text [char *]
    # @return [void]
    [:UnloadFileText, :UnloadFileText, [:pointer], :void],

    # SaveFileText : Save text data to file (write), string must be '\0' terminated, returns true on success
    # @param fileName [const char *]
    # @param text [char *]
    # @return [bool]
    [:SaveFileText, :SaveFileText, [:pointer, :pointer], :bool],

    # FileExists : Check if file exists
    # @param fileName [const char *]
    # @return [bool]
    [:FileExists, :FileExists, [:pointer], :bool],

    # DirectoryExists : Check if a directory path exists
    # @param dirPath [const char *]
    # @return [bool]
    [:DirectoryExists, :DirectoryExists, [:pointer], :bool],

    # IsFileExtension : Check file extension (including point: .png, .wav)
    # @param fileName [const char *]
    # @param ext [const char *]
    # @return [bool]
    [:IsFileExtension, :IsFileExtension, [:pointer, :pointer], :bool],

    # GetFileLength : Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)
    # @param fileName [const char *]
    # @return [int]
    [:GetFileLength, :GetFileLength, [:pointer], :int],

    # GetFileExtension : Get pointer to extension for a filename string (includes dot: '.png')
    # @param fileName [const char *]
    # @return [const char *]
    [:GetFileExtension, :GetFileExtension, [:pointer], :pointer],

    # GetFileName : Get pointer to filename for a path string
    # @param filePath [const char *]
    # @return [const char *]
    [:GetFileName, :GetFileName, [:pointer], :pointer],

    # GetFileNameWithoutExt : Get filename string without extension (uses static string)
    # @param filePath [const char *]
    # @return [const char *]
    [:GetFileNameWithoutExt, :GetFileNameWithoutExt, [:pointer], :pointer],

    # GetDirectoryPath : Get full path for a given fileName with path (uses static string)
    # @param filePath [const char *]
    # @return [const char *]
    [:GetDirectoryPath, :GetDirectoryPath, [:pointer], :pointer],

    # GetPrevDirectoryPath : Get previous directory path for a given path (uses static string)
    # @param dirPath [const char *]
    # @return [const char *]
    [:GetPrevDirectoryPath, :GetPrevDirectoryPath, [:pointer], :pointer],

    # GetWorkingDirectory : Get current working directory (uses static string)
    # @return [const char *]
    [:GetWorkingDirectory, :GetWorkingDirectory, [], :pointer],

    # GetApplicationDirectory : Get the directory if the running application (uses static string)
    # @return [const char *]
    [:GetApplicationDirectory, :GetApplicationDirectory, [], :pointer],

    # ChangeDirectory : Change working directory, return true on success
    # @param dir [const char *]
    # @return [bool]
    [:ChangeDirectory, :ChangeDirectory, [:pointer], :bool],

    # IsPathFile : Check if a given path is a file or a directory
    # @param path [const char *]
    # @return [bool]
    [:IsPathFile, :IsPathFile, [:pointer], :bool],

    # LoadDirectoryFiles : Load directory filepaths
    # @param dirPath [const char *]
    # @return [FilePathList]
    [:LoadDirectoryFiles, :LoadDirectoryFiles, [:pointer], FilePathList.by_value],

    # LoadDirectoryFilesEx : Load directory filepaths with extension filtering and recursive directory scan
    # @param basePath [const char *]
    # @param filter [const char *]
    # @param scanSubdirs [bool]
    # @return [FilePathList]
    [:LoadDirectoryFilesEx, :LoadDirectoryFilesEx, [:pointer, :pointer, :bool], FilePathList.by_value],

    # UnloadDirectoryFiles : Unload filepaths
    # @param files [FilePathList]
    # @return [void]
    [:UnloadDirectoryFiles, :UnloadDirectoryFiles, [FilePathList.by_value], :void],

    # IsFileDropped : Check if a file has been dropped into window
    # @return [bool]
    [:IsFileDropped, :IsFileDropped, [], :bool],

    # LoadDroppedFiles : Load dropped filepaths
    # @return [FilePathList]
    [:LoadDroppedFiles, :LoadDroppedFiles, [], FilePathList.by_value],

    # UnloadDroppedFiles : Unload dropped filepaths
    # @param files [FilePathList]
    # @return [void]
    [:UnloadDroppedFiles, :UnloadDroppedFiles, [FilePathList.by_value], :void],

    # GetFileModTime : Get file modification time (last write time)
    # @param fileName [const char *]
    # @return [long]
    [:GetFileModTime, :GetFileModTime, [:pointer], :long],

    # CompressData : Compress data (DEFLATE algorithm), memory must be MemFree()
    # @param data [const unsigned char *]
    # @param dataSize [int]
    # @param compDataSize [int *]
    # @return [unsigned char *]
    [:CompressData, :CompressData, [:pointer, :int, :pointer], :pointer],

    # DecompressData : Decompress data (DEFLATE algorithm), memory must be MemFree()
    # @param compData [const unsigned char *]
    # @param compDataSize [int]
    # @param dataSize [int *]
    # @return [unsigned char *]
    [:DecompressData, :DecompressData, [:pointer, :int, :pointer], :pointer],

    # EncodeDataBase64 : Encode data to Base64 string, memory must be MemFree()
    # @param data [const unsigned char *]
    # @param dataSize [int]
    # @param outputSize [int *]
    # @return [char *]
    [:EncodeDataBase64, :EncodeDataBase64, [:pointer, :int, :pointer], :pointer],

    # DecodeDataBase64 : Decode Base64 string data, memory must be MemFree()
    # @param data [const unsigned char *]
    # @param outputSize [int *]
    # @return [unsigned char *]
    [:DecodeDataBase64, :DecodeDataBase64, [:pointer, :pointer], :pointer],

    # IsKeyPressed : Check if a key has been pressed once
    # @param key [int]
    # @return [bool]
    [:IsKeyPressed, :IsKeyPressed, [:int], :bool],

    # IsKeyDown : Check if a key is being pressed
    # @param key [int]
    # @return [bool]
    [:IsKeyDown, :IsKeyDown, [:int], :bool],

    # IsKeyReleased : Check if a key has been released once
    # @param key [int]
    # @return [bool]
    [:IsKeyReleased, :IsKeyReleased, [:int], :bool],

    # IsKeyUp : Check if a key is NOT being pressed
    # @param key [int]
    # @return [bool]
    [:IsKeyUp, :IsKeyUp, [:int], :bool],

    # SetExitKey : Set a custom key to exit program (default is ESC)
    # @param key [int]
    # @return [void]
    [:SetExitKey, :SetExitKey, [:int], :void],

    # GetKeyPressed : Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty
    # @return [int]
    [:GetKeyPressed, :GetKeyPressed, [], :int],

    # GetCharPressed : Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
    # @return [int]
    [:GetCharPressed, :GetCharPressed, [], :int],

    # IsGamepadAvailable : Check if a gamepad is available
    # @param gamepad [int]
    # @return [bool]
    [:IsGamepadAvailable, :IsGamepadAvailable, [:int], :bool],

    # GetGamepadName : Get gamepad internal name id
    # @param gamepad [int]
    # @return [const char *]
    [:GetGamepadName, :GetGamepadName, [:int], :pointer],

    # IsGamepadButtonPressed : Check if a gamepad button has been pressed once
    # @param gamepad [int]
    # @param button [int]
    # @return [bool]
    [:IsGamepadButtonPressed, :IsGamepadButtonPressed, [:int, :int], :bool],

    # IsGamepadButtonDown : Check if a gamepad button is being pressed
    # @param gamepad [int]
    # @param button [int]
    # @return [bool]
    [:IsGamepadButtonDown, :IsGamepadButtonDown, [:int, :int], :bool],

    # IsGamepadButtonReleased : Check if a gamepad button has been released once
    # @param gamepad [int]
    # @param button [int]
    # @return [bool]
    [:IsGamepadButtonReleased, :IsGamepadButtonReleased, [:int, :int], :bool],

    # IsGamepadButtonUp : Check if a gamepad button is NOT being pressed
    # @param gamepad [int]
    # @param button [int]
    # @return [bool]
    [:IsGamepadButtonUp, :IsGamepadButtonUp, [:int, :int], :bool],

    # GetGamepadButtonPressed : Get the last gamepad button pressed
    # @return [int]
    [:GetGamepadButtonPressed, :GetGamepadButtonPressed, [], :int],

    # GetGamepadAxisCount : Get gamepad axis count for a gamepad
    # @param gamepad [int]
    # @return [int]
    [:GetGamepadAxisCount, :GetGamepadAxisCount, [:int], :int],

    # GetGamepadAxisMovement : Get axis movement value for a gamepad axis
    # @param gamepad [int]
    # @param axis [int]
    # @return [float]
    [:GetGamepadAxisMovement, :GetGamepadAxisMovement, [:int, :int], :float],

    # SetGamepadMappings : Set internal gamepad mappings (SDL_GameControllerDB)
    # @param mappings [const char *]
    # @return [int]
    [:SetGamepadMappings, :SetGamepadMappings, [:pointer], :int],

    # IsMouseButtonPressed : Check if a mouse button has been pressed once
    # @param button [int]
    # @return [bool]
    [:IsMouseButtonPressed, :IsMouseButtonPressed, [:int], :bool],

    # IsMouseButtonDown : Check if a mouse button is being pressed
    # @param button [int]
    # @return [bool]
    [:IsMouseButtonDown, :IsMouseButtonDown, [:int], :bool],

    # IsMouseButtonReleased : Check if a mouse button has been released once
    # @param button [int]
    # @return [bool]
    [:IsMouseButtonReleased, :IsMouseButtonReleased, [:int], :bool],

    # IsMouseButtonUp : Check if a mouse button is NOT being pressed
    # @param button [int]
    # @return [bool]
    [:IsMouseButtonUp, :IsMouseButtonUp, [:int], :bool],

    # GetMouseX : Get mouse position X
    # @return [int]
    [:GetMouseX, :GetMouseX, [], :int],

    # GetMouseY : Get mouse position Y
    # @return [int]
    [:GetMouseY, :GetMouseY, [], :int],

    # GetMousePosition : Get mouse position XY
    # @return [Vector2]
    [:GetMousePosition, :GetMousePosition, [], Vector2.by_value],

    # GetMouseDelta : Get mouse delta between frames
    # @return [Vector2]
    [:GetMouseDelta, :GetMouseDelta, [], Vector2.by_value],

    # SetMousePosition : Set mouse position XY
    # @param x [int]
    # @param y [int]
    # @return [void]
    [:SetMousePosition, :SetMousePosition, [:int, :int], :void],

    # SetMouseOffset : Set mouse offset
    # @param offsetX [int]
    # @param offsetY [int]
    # @return [void]
    [:SetMouseOffset, :SetMouseOffset, [:int, :int], :void],

    # SetMouseScale : Set mouse scaling
    # @param scaleX [float]
    # @param scaleY [float]
    # @return [void]
    [:SetMouseScale, :SetMouseScale, [:float, :float], :void],

    # GetMouseWheelMove : Get mouse wheel movement for X or Y, whichever is larger
    # @return [float]
    [:GetMouseWheelMove, :GetMouseWheelMove, [], :float],

    # GetMouseWheelMoveV : Get mouse wheel movement for both X and Y
    # @return [Vector2]
    [:GetMouseWheelMoveV, :GetMouseWheelMoveV, [], Vector2.by_value],

    # SetMouseCursor : Set mouse cursor
    # @param cursor [int]
    # @return [void]
    [:SetMouseCursor, :SetMouseCursor, [:int], :void],

    # GetTouchX : Get touch position X for touch point 0 (relative to screen size)
    # @return [int]
    [:GetTouchX, :GetTouchX, [], :int],

    # GetTouchY : Get touch position Y for touch point 0 (relative to screen size)
    # @return [int]
    [:GetTouchY, :GetTouchY, [], :int],

    # GetTouchPosition : Get touch position XY for a touch point index (relative to screen size)
    # @param index [int]
    # @return [Vector2]
    [:GetTouchPosition, :GetTouchPosition, [:int], Vector2.by_value],

    # GetTouchPointId : Get touch point identifier for given index
    # @param index [int]
    # @return [int]
    [:GetTouchPointId, :GetTouchPointId, [:int], :int],

    # GetTouchPointCount : Get number of touch points
    # @return [int]
    [:GetTouchPointCount, :GetTouchPointCount, [], :int],

    # SetGesturesEnabled : Enable a set of gestures using flags
    # @param flags [unsigned int]
    # @return [void]
    [:SetGesturesEnabled, :SetGesturesEnabled, [:uint], :void],

    # IsGestureDetected : Check if a gesture have been detected
    # @param gesture [int]
    # @return [bool]
    [:IsGestureDetected, :IsGestureDetected, [:int], :bool],

    # GetGestureDetected : Get latest detected gesture
    # @return [int]
    [:GetGestureDetected, :GetGestureDetected, [], :int],

    # GetGestureHoldDuration : Get gesture hold time in milliseconds
    # @return [float]
    [:GetGestureHoldDuration, :GetGestureHoldDuration, [], :float],

    # GetGestureDragVector : Get gesture drag vector
    # @return [Vector2]
    [:GetGestureDragVector, :GetGestureDragVector, [], Vector2.by_value],

    # GetGestureDragAngle : Get gesture drag angle
    # @return [float]
    [:GetGestureDragAngle, :GetGestureDragAngle, [], :float],

    # GetGesturePinchVector : Get gesture pinch delta
    # @return [Vector2]
    [:GetGesturePinchVector, :GetGesturePinchVector, [], Vector2.by_value],

    # GetGesturePinchAngle : Get gesture pinch angle
    # @return [float]
    [:GetGesturePinchAngle, :GetGesturePinchAngle, [], :float],

    # UpdateCamera : Update camera position for selected mode
    # @param camera [Camera *]
    # @param mode [int]
    # @return [void]
    [:UpdateCamera, :UpdateCamera, [:pointer, :int], :void],

    # UpdateCameraPro : Update camera movement/rotation
    # @param camera [Camera *]
    # @param movement [Vector3]
    # @param rotation [Vector3]
    # @param zoom [float]
    # @return [void]
    [:UpdateCameraPro, :UpdateCameraPro, [:pointer, Vector3.by_value, Vector3.by_value, :float], :void],

    # SetShapesTexture : Set texture and rectangle to be used on shapes drawing
    # @param texture [Texture2D]
    # @param source [Rectangle]
    # @return [void]
    [:SetShapesTexture, :SetShapesTexture, [Texture2D.by_value, Rectangle.by_value], :void],

    # DrawPixel : Draw a pixel
    # @param posX [int]
    # @param posY [int]
    # @param color [Color]
    # @return [void]
    [:DrawPixel, :DrawPixel, [:int, :int, Color.by_value], :void],

    # DrawPixelV : Draw a pixel (Vector version)
    # @param position [Vector2]
    # @param color [Color]
    # @return [void]
    [:DrawPixelV, :DrawPixelV, [Vector2.by_value, Color.by_value], :void],

    # DrawLine : Draw a line
    # @param startPosX [int]
    # @param startPosY [int]
    # @param endPosX [int]
    # @param endPosY [int]
    # @param color [Color]
    # @return [void]
    [:DrawLine, :DrawLine, [:int, :int, :int, :int, Color.by_value], :void],

    # DrawLineV : Draw a line (Vector version)
    # @param startPos [Vector2]
    # @param endPos [Vector2]
    # @param color [Color]
    # @return [void]
    [:DrawLineV, :DrawLineV, [Vector2.by_value, Vector2.by_value, Color.by_value], :void],

    # DrawLineEx : Draw a line defining thickness
    # @param startPos [Vector2]
    # @param endPos [Vector2]
    # @param thick [float]
    # @param color [Color]
    # @return [void]
    [:DrawLineEx, :DrawLineEx, [Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],

    # DrawLineBezier : Draw a line using cubic-bezier curves in-out
    # @param startPos [Vector2]
    # @param endPos [Vector2]
    # @param thick [float]
    # @param color [Color]
    # @return [void]
    [:DrawLineBezier, :DrawLineBezier, [Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],

    # DrawLineBezierQuad : Draw line using quadratic bezier curves with a control point
    # @param startPos [Vector2]
    # @param endPos [Vector2]
    # @param controlPos [Vector2]
    # @param thick [float]
    # @param color [Color]
    # @return [void]
    [:DrawLineBezierQuad, :DrawLineBezierQuad, [Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],

    # DrawLineBezierCubic : Draw line using cubic bezier curves with 2 control points
    # @param startPos [Vector2]
    # @param endPos [Vector2]
    # @param startControlPos [Vector2]
    # @param endControlPos [Vector2]
    # @param thick [float]
    # @param color [Color]
    # @return [void]
    [:DrawLineBezierCubic, :DrawLineBezierCubic, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],

    # DrawLineStrip : Draw lines sequence
    # @param points [Vector2 *]
    # @param pointCount [int]
    # @param color [Color]
    # @return [void]
    [:DrawLineStrip, :DrawLineStrip, [:pointer, :int, Color.by_value], :void],

    # DrawCircle : Draw a color-filled circle
    # @param centerX [int]
    # @param centerY [int]
    # @param radius [float]
    # @param color [Color]
    # @return [void]
    [:DrawCircle, :DrawCircle, [:int, :int, :float, Color.by_value], :void],

    # DrawCircleSector : Draw a piece of a circle
    # @param center [Vector2]
    # @param radius [float]
    # @param startAngle [float]
    # @param endAngle [float]
    # @param segments [int]
    # @param color [Color]
    # @return [void]
    [:DrawCircleSector, :DrawCircleSector, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],

    # DrawCircleSectorLines : Draw circle sector outline
    # @param center [Vector2]
    # @param radius [float]
    # @param startAngle [float]
    # @param endAngle [float]
    # @param segments [int]
    # @param color [Color]
    # @return [void]
    [:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],

    # DrawCircleGradient : Draw a gradient-filled circle
    # @param centerX [int]
    # @param centerY [int]
    # @param radius [float]
    # @param color1 [Color]
    # @param color2 [Color]
    # @return [void]
    [:DrawCircleGradient, :DrawCircleGradient, [:int, :int, :float, Color.by_value, Color.by_value], :void],

    # DrawCircleV : Draw a color-filled circle (Vector version)
    # @param center [Vector2]
    # @param radius [float]
    # @param color [Color]
    # @return [void]
    [:DrawCircleV, :DrawCircleV, [Vector2.by_value, :float, Color.by_value], :void],

    # DrawCircleLines : Draw circle outline
    # @param centerX [int]
    # @param centerY [int]
    # @param radius [float]
    # @param color [Color]
    # @return [void]
    [:DrawCircleLines, :DrawCircleLines, [:int, :int, :float, Color.by_value], :void],

    # DrawEllipse : Draw ellipse
    # @param centerX [int]
    # @param centerY [int]
    # @param radiusH [float]
    # @param radiusV [float]
    # @param color [Color]
    # @return [void]
    [:DrawEllipse, :DrawEllipse, [:int, :int, :float, :float, Color.by_value], :void],

    # DrawEllipseLines : Draw ellipse outline
    # @param centerX [int]
    # @param centerY [int]
    # @param radiusH [float]
    # @param radiusV [float]
    # @param color [Color]
    # @return [void]
    [:DrawEllipseLines, :DrawEllipseLines, [:int, :int, :float, :float, Color.by_value], :void],

    # DrawRing : Draw ring
    # @param center [Vector2]
    # @param innerRadius [float]
    # @param outerRadius [float]
    # @param startAngle [float]
    # @param endAngle [float]
    # @param segments [int]
    # @param color [Color]
    # @return [void]
    [:DrawRing, :DrawRing, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],

    # DrawRingLines : Draw ring outline
    # @param center [Vector2]
    # @param innerRadius [float]
    # @param outerRadius [float]
    # @param startAngle [float]
    # @param endAngle [float]
    # @param segments [int]
    # @param color [Color]
    # @return [void]
    [:DrawRingLines, :DrawRingLines, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],

    # DrawRectangle : Draw a color-filled rectangle
    # @param posX [int]
    # @param posY [int]
    # @param width [int]
    # @param height [int]
    # @param color [Color]
    # @return [void]
    [:DrawRectangle, :DrawRectangle, [:int, :int, :int, :int, Color.by_value], :void],

    # DrawRectangleV : Draw a color-filled rectangle (Vector version)
    # @param position [Vector2]
    # @param size [Vector2]
    # @param color [Color]
    # @return [void]
    [:DrawRectangleV, :DrawRectangleV, [Vector2.by_value, Vector2.by_value, Color.by_value], :void],

    # DrawRectangleRec : Draw a color-filled rectangle
    # @param rec [Rectangle]
    # @param color [Color]
    # @return [void]
    [:DrawRectangleRec, :DrawRectangleRec, [Rectangle.by_value, Color.by_value], :void],

    # DrawRectanglePro : Draw a color-filled rectangle with pro parameters
    # @param rec [Rectangle]
    # @param origin [Vector2]
    # @param rotation [float]
    # @param color [Color]
    # @return [void]
    [:DrawRectanglePro, :DrawRectanglePro, [Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],

    # DrawRectangleGradientV : Draw a vertical-gradient-filled rectangle
    # @param posX [int]
    # @param posY [int]
    # @param width [int]
    # @param height [int]
    # @param color1 [Color]
    # @param color2 [Color]
    # @return [void]
    [:DrawRectangleGradientV, :DrawRectangleGradientV, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],

    # DrawRectangleGradientH : Draw a horizontal-gradient-filled rectangle
    # @param posX [int]
    # @param posY [int]
    # @param width [int]
    # @param height [int]
    # @param color1 [Color]
    # @param color2 [Color]
    # @return [void]
    [:DrawRectangleGradientH, :DrawRectangleGradientH, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],

    # DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors
    # @param rec [Rectangle]
    # @param col1 [Color]
    # @param col2 [Color]
    # @param col3 [Color]
    # @param col4 [Color]
    # @return [void]
    [:DrawRectangleGradientEx, :DrawRectangleGradientEx, [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],

    # DrawRectangleLines : Draw rectangle outline
    # @param posX [int]
    # @param posY [int]
    # @param width [int]
    # @param height [int]
    # @param color [Color]
    # @return [void]
    [:DrawRectangleLines, :DrawRectangleLines, [:int, :int, :int, :int, Color.by_value], :void],

    # DrawRectangleLinesEx : Draw rectangle outline with extended parameters
    # @param rec [Rectangle]
    # @param lineThick [float]
    # @param color [Color]
    # @return [void]
    [:DrawRectangleLinesEx, :DrawRectangleLinesEx, [Rectangle.by_value, :float, Color.by_value], :void],

    # DrawRectangleRounded : Draw rectangle with rounded edges
    # @param rec [Rectangle]
    # @param roundness [float]
    # @param segments [int]
    # @param color [Color]
    # @return [void]
    [:DrawRectangleRounded, :DrawRectangleRounded, [Rectangle.by_value, :float, :int, Color.by_value], :void],

    # DrawRectangleRoundedLines : Draw rectangle with rounded edges outline
    # @param rec [Rectangle]
    # @param roundness [float]
    # @param segments [int]
    # @param lineThick [float]
    # @param color [Color]
    # @return [void]
    [:DrawRectangleRoundedLines, :DrawRectangleRoundedLines, [Rectangle.by_value, :float, :int, :float, Color.by_value], :void],

    # DrawTriangle : Draw a color-filled triangle (vertex in counter-clockwise order!)
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @param v3 [Vector2]
    # @param color [Color]
    # @return [void]
    [:DrawTriangle, :DrawTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],

    # DrawTriangleLines : Draw triangle outline (vertex in counter-clockwise order!)
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @param v3 [Vector2]
    # @param color [Color]
    # @return [void]
    [:DrawTriangleLines, :DrawTriangleLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],

    # DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
    # @param points [Vector2 *]
    # @param pointCount [int]
    # @param color [Color]
    # @return [void]
    [:DrawTriangleFan, :DrawTriangleFan, [:pointer, :int, Color.by_value], :void],

    # DrawTriangleStrip : Draw a triangle strip defined by points
    # @param points [Vector2 *]
    # @param pointCount [int]
    # @param color [Color]
    # @return [void]
    [:DrawTriangleStrip, :DrawTriangleStrip, [:pointer, :int, Color.by_value], :void],

    # DrawPoly : Draw a regular polygon (Vector version)
    # @param center [Vector2]
    # @param sides [int]
    # @param radius [float]
    # @param rotation [float]
    # @param color [Color]
    # @return [void]
    [:DrawPoly, :DrawPoly, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],

    # DrawPolyLines : Draw a polygon outline of n sides
    # @param center [Vector2]
    # @param sides [int]
    # @param radius [float]
    # @param rotation [float]
    # @param color [Color]
    # @return [void]
    [:DrawPolyLines, :DrawPolyLines, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],

    # DrawPolyLinesEx : Draw a polygon outline of n sides with extended parameters
    # @param center [Vector2]
    # @param sides [int]
    # @param radius [float]
    # @param rotation [float]
    # @param lineThick [float]
    # @param color [Color]
    # @return [void]
    [:DrawPolyLinesEx, :DrawPolyLinesEx, [Vector2.by_value, :int, :float, :float, :float, Color.by_value], :void],

    # CheckCollisionRecs : Check collision between two rectangles
    # @param rec1 [Rectangle]
    # @param rec2 [Rectangle]
    # @return [bool]
    [:CheckCollisionRecs, :CheckCollisionRecs, [Rectangle.by_value, Rectangle.by_value], :bool],

    # CheckCollisionCircles : Check collision between two circles
    # @param center1 [Vector2]
    # @param radius1 [float]
    # @param center2 [Vector2]
    # @param radius2 [float]
    # @return [bool]
    [:CheckCollisionCircles, :CheckCollisionCircles, [Vector2.by_value, :float, Vector2.by_value, :float], :bool],

    # CheckCollisionCircleRec : Check collision between circle and rectangle
    # @param center [Vector2]
    # @param radius [float]
    # @param rec [Rectangle]
    # @return [bool]
    [:CheckCollisionCircleRec, :CheckCollisionCircleRec, [Vector2.by_value, :float, Rectangle.by_value], :bool],

    # CheckCollisionPointRec : Check if point is inside rectangle
    # @param point [Vector2]
    # @param rec [Rectangle]
    # @return [bool]
    [:CheckCollisionPointRec, :CheckCollisionPointRec, [Vector2.by_value, Rectangle.by_value], :bool],

    # CheckCollisionPointCircle : Check if point is inside circle
    # @param point [Vector2]
    # @param center [Vector2]
    # @param radius [float]
    # @return [bool]
    [:CheckCollisionPointCircle, :CheckCollisionPointCircle, [Vector2.by_value, Vector2.by_value, :float], :bool],

    # CheckCollisionPointTriangle : Check if point is inside a triangle
    # @param point [Vector2]
    # @param p1 [Vector2]
    # @param p2 [Vector2]
    # @param p3 [Vector2]
    # @return [bool]
    [:CheckCollisionPointTriangle, :CheckCollisionPointTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value], :bool],

    # CheckCollisionPointPoly : Check if point is within a polygon described by array of vertices
    # @param point [Vector2]
    # @param points [Vector2 *]
    # @param pointCount [int]
    # @return [bool]
    [:CheckCollisionPointPoly, :CheckCollisionPointPoly, [Vector2.by_value, :pointer, :int], :bool],

    # CheckCollisionLines : Check the collision between two lines defined by two points each, returns collision point by reference
    # @param startPos1 [Vector2]
    # @param endPos1 [Vector2]
    # @param startPos2 [Vector2]
    # @param endPos2 [Vector2]
    # @param collisionPoint [Vector2 *]
    # @return [bool]
    [:CheckCollisionLines, :CheckCollisionLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Vector2.by_value, :pointer], :bool],

    # CheckCollisionPointLine : Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
    # @param point [Vector2]
    # @param p1 [Vector2]
    # @param p2 [Vector2]
    # @param threshold [int]
    # @return [bool]
    [:CheckCollisionPointLine, :CheckCollisionPointLine, [Vector2.by_value, Vector2.by_value, Vector2.by_value, :int], :bool],

    # GetCollisionRec : Get collision rectangle for two rectangles collision
    # @param rec1 [Rectangle]
    # @param rec2 [Rectangle]
    # @return [Rectangle]
    [:GetCollisionRec, :GetCollisionRec, [Rectangle.by_value, Rectangle.by_value], Rectangle.by_value],

    # LoadImage : Load image from file into CPU memory (RAM)
    # @param fileName [const char *]
    # @return [Image]
    [:LoadImage, :LoadImage, [:pointer], Image.by_value],

    # LoadImageRaw : Load image from RAW file data
    # @param fileName [const char *]
    # @param width [int]
    # @param height [int]
    # @param format [int]
    # @param headerSize [int]
    # @return [Image]
    [:LoadImageRaw, :LoadImageRaw, [:pointer, :int, :int, :int, :int], Image.by_value],

    # LoadImageAnim : Load image sequence from file (frames appended to image.data)
    # @param fileName [const char *]
    # @param frames [int *]
    # @return [Image]
    [:LoadImageAnim, :LoadImageAnim, [:pointer, :pointer], Image.by_value],

    # LoadImageFromMemory : Load image from memory buffer, fileType refers to extension: i.e. '.png'
    # @param fileType [const char *]
    # @param fileData [const unsigned char *]
    # @param dataSize [int]
    # @return [Image]
    [:LoadImageFromMemory, :LoadImageFromMemory, [:pointer, :pointer, :int], Image.by_value],

    # LoadImageFromTexture : Load image from GPU texture data
    # @param texture [Texture2D]
    # @return [Image]
    [:LoadImageFromTexture, :LoadImageFromTexture, [Texture2D.by_value], Image.by_value],

    # LoadImageFromScreen : Load image from screen buffer and (screenshot)
    # @return [Image]
    [:LoadImageFromScreen, :LoadImageFromScreen, [], Image.by_value],

    # IsImageReady : Check if an image is ready
    # @param image [Image]
    # @return [bool]
    [:IsImageReady, :IsImageReady, [Image.by_value], :bool],

    # UnloadImage : Unload image from CPU memory (RAM)
    # @param image [Image]
    # @return [void]
    [:UnloadImage, :UnloadImage, [Image.by_value], :void],

    # ExportImage : Export image data to file, returns true on success
    # @param image [Image]
    # @param fileName [const char *]
    # @return [bool]
    [:ExportImage, :ExportImage, [Image.by_value, :pointer], :bool],

    # ExportImageAsCode : Export image as code file defining an array of bytes, returns true on success
    # @param image [Image]
    # @param fileName [const char *]
    # @return [bool]
    [:ExportImageAsCode, :ExportImageAsCode, [Image.by_value, :pointer], :bool],

    # GenImageColor : Generate image: plain color
    # @param width [int]
    # @param height [int]
    # @param color [Color]
    # @return [Image]
    [:GenImageColor, :GenImageColor, [:int, :int, Color.by_value], Image.by_value],

    # GenImageGradientV : Generate image: vertical gradient
    # @param width [int]
    # @param height [int]
    # @param top [Color]
    # @param bottom [Color]
    # @return [Image]
    [:GenImageGradientV, :GenImageGradientV, [:int, :int, Color.by_value, Color.by_value], Image.by_value],

    # GenImageGradientH : Generate image: horizontal gradient
    # @param width [int]
    # @param height [int]
    # @param left [Color]
    # @param right [Color]
    # @return [Image]
    [:GenImageGradientH, :GenImageGradientH, [:int, :int, Color.by_value, Color.by_value], Image.by_value],

    # GenImageGradientRadial : Generate image: radial gradient
    # @param width [int]
    # @param height [int]
    # @param density [float]
    # @param inner [Color]
    # @param outer [Color]
    # @return [Image]
    [:GenImageGradientRadial, :GenImageGradientRadial, [:int, :int, :float, Color.by_value, Color.by_value], Image.by_value],

    # GenImageChecked : Generate image: checked
    # @param width [int]
    # @param height [int]
    # @param checksX [int]
    # @param checksY [int]
    # @param col1 [Color]
    # @param col2 [Color]
    # @return [Image]
    [:GenImageChecked, :GenImageChecked, [:int, :int, :int, :int, Color.by_value, Color.by_value], Image.by_value],

    # GenImageWhiteNoise : Generate image: white noise
    # @param width [int]
    # @param height [int]
    # @param factor [float]
    # @return [Image]
    [:GenImageWhiteNoise, :GenImageWhiteNoise, [:int, :int, :float], Image.by_value],

    # GenImagePerlinNoise : Generate image: perlin noise
    # @param width [int]
    # @param height [int]
    # @param offsetX [int]
    # @param offsetY [int]
    # @param scale [float]
    # @return [Image]
    [:GenImagePerlinNoise, :GenImagePerlinNoise, [:int, :int, :int, :int, :float], Image.by_value],

    # GenImageCellular : Generate image: cellular algorithm, bigger tileSize means bigger cells
    # @param width [int]
    # @param height [int]
    # @param tileSize [int]
    # @return [Image]
    [:GenImageCellular, :GenImageCellular, [:int, :int, :int], Image.by_value],

    # GenImageText : Generate image: grayscale image from text data
    # @param width [int]
    # @param height [int]
    # @param text [const char *]
    # @return [Image]
    [:GenImageText, :GenImageText, [:int, :int, :pointer], Image.by_value],

    # ImageCopy : Create an image duplicate (useful for transformations)
    # @param image [Image]
    # @return [Image]
    [:ImageCopy, :ImageCopy, [Image.by_value], Image.by_value],

    # ImageFromImage : Create an image from another image piece
    # @param image [Image]
    # @param rec [Rectangle]
    # @return [Image]
    [:ImageFromImage, :ImageFromImage, [Image.by_value, Rectangle.by_value], Image.by_value],

    # ImageText : Create an image from text (default font)
    # @param text [const char *]
    # @param fontSize [int]
    # @param color [Color]
    # @return [Image]
    [:ImageText, :ImageText, [:pointer, :int, Color.by_value], Image.by_value],

    # ImageTextEx : Create an image from text (custom sprite font)
    # @param font [Font]
    # @param text [const char *]
    # @param fontSize [float]
    # @param spacing [float]
    # @param tint [Color]
    # @return [Image]
    [:ImageTextEx, :ImageTextEx, [Font.by_value, :pointer, :float, :float, Color.by_value], Image.by_value],

    # ImageFormat : Convert image data to desired format
    # @param image [Image *]
    # @param newFormat [int]
    # @return [void]
    [:ImageFormat, :ImageFormat, [:pointer, :int], :void],

    # ImageToPOT : Convert image to POT (power-of-two)
    # @param image [Image *]
    # @param fill [Color]
    # @return [void]
    [:ImageToPOT, :ImageToPOT, [:pointer, Color.by_value], :void],

    # ImageCrop : Crop an image to a defined rectangle
    # @param image [Image *]
    # @param crop [Rectangle]
    # @return [void]
    [:ImageCrop, :ImageCrop, [:pointer, Rectangle.by_value], :void],

    # ImageAlphaCrop : Crop image depending on alpha value
    # @param image [Image *]
    # @param threshold [float]
    # @return [void]
    [:ImageAlphaCrop, :ImageAlphaCrop, [:pointer, :float], :void],

    # ImageAlphaClear : Clear alpha channel to desired color
    # @param image [Image *]
    # @param color [Color]
    # @param threshold [float]
    # @return [void]
    [:ImageAlphaClear, :ImageAlphaClear, [:pointer, Color.by_value, :float], :void],

    # ImageAlphaMask : Apply alpha mask to image
    # @param image [Image *]
    # @param alphaMask [Image]
    # @return [void]
    [:ImageAlphaMask, :ImageAlphaMask, [:pointer, Image.by_value], :void],

    # ImageAlphaPremultiply : Premultiply alpha channel
    # @param image [Image *]
    # @return [void]
    [:ImageAlphaPremultiply, :ImageAlphaPremultiply, [:pointer], :void],

    # ImageBlurGaussian : Apply Gaussian blur using a box blur approximation
    # @param image [Image *]
    # @param blurSize [int]
    # @return [void]
    [:ImageBlurGaussian, :ImageBlurGaussian, [:pointer, :int], :void],

    # ImageResize : Resize image (Bicubic scaling algorithm)
    # @param image [Image *]
    # @param newWidth [int]
    # @param newHeight [int]
    # @return [void]
    [:ImageResize, :ImageResize, [:pointer, :int, :int], :void],

    # ImageResizeNN : Resize image (Nearest-Neighbor scaling algorithm)
    # @param image [Image *]
    # @param newWidth [int]
    # @param newHeight [int]
    # @return [void]
    [:ImageResizeNN, :ImageResizeNN, [:pointer, :int, :int], :void],

    # ImageResizeCanvas : Resize canvas and fill with color
    # @param image [Image *]
    # @param newWidth [int]
    # @param newHeight [int]
    # @param offsetX [int]
    # @param offsetY [int]
    # @param fill [Color]
    # @return [void]
    [:ImageResizeCanvas, :ImageResizeCanvas, [:pointer, :int, :int, :int, :int, Color.by_value], :void],

    # ImageMipmaps : Compute all mipmap levels for a provided image
    # @param image [Image *]
    # @return [void]
    [:ImageMipmaps, :ImageMipmaps, [:pointer], :void],

    # ImageDither : Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
    # @param image [Image *]
    # @param rBpp [int]
    # @param gBpp [int]
    # @param bBpp [int]
    # @param aBpp [int]
    # @return [void]
    [:ImageDither, :ImageDither, [:pointer, :int, :int, :int, :int], :void],

    # ImageFlipVertical : Flip image vertically
    # @param image [Image *]
    # @return [void]
    [:ImageFlipVertical, :ImageFlipVertical, [:pointer], :void],

    # ImageFlipHorizontal : Flip image horizontally
    # @param image [Image *]
    # @return [void]
    [:ImageFlipHorizontal, :ImageFlipHorizontal, [:pointer], :void],

    # ImageRotateCW : Rotate image clockwise 90deg
    # @param image [Image *]
    # @return [void]
    [:ImageRotateCW, :ImageRotateCW, [:pointer], :void],

    # ImageRotateCCW : Rotate image counter-clockwise 90deg
    # @param image [Image *]
    # @return [void]
    [:ImageRotateCCW, :ImageRotateCCW, [:pointer], :void],

    # ImageColorTint : Modify image color: tint
    # @param image [Image *]
    # @param color [Color]
    # @return [void]
    [:ImageColorTint, :ImageColorTint, [:pointer, Color.by_value], :void],

    # ImageColorInvert : Modify image color: invert
    # @param image [Image *]
    # @return [void]
    [:ImageColorInvert, :ImageColorInvert, [:pointer], :void],

    # ImageColorGrayscale : Modify image color: grayscale
    # @param image [Image *]
    # @return [void]
    [:ImageColorGrayscale, :ImageColorGrayscale, [:pointer], :void],

    # ImageColorContrast : Modify image color: contrast (-100 to 100)
    # @param image [Image *]
    # @param contrast [float]
    # @return [void]
    [:ImageColorContrast, :ImageColorContrast, [:pointer, :float], :void],

    # ImageColorBrightness : Modify image color: brightness (-255 to 255)
    # @param image [Image *]
    # @param brightness [int]
    # @return [void]
    [:ImageColorBrightness, :ImageColorBrightness, [:pointer, :int], :void],

    # ImageColorReplace : Modify image color: replace color
    # @param image [Image *]
    # @param color [Color]
    # @param replace [Color]
    # @return [void]
    [:ImageColorReplace, :ImageColorReplace, [:pointer, Color.by_value, Color.by_value], :void],

    # LoadImageColors : Load color data from image as a Color array (RGBA - 32bit)
    # @param image [Image]
    # @return [Color *]
    [:LoadImageColors, :LoadImageColors, [Image.by_value], :pointer],

    # LoadImagePalette : Load colors palette from image as a Color array (RGBA - 32bit)
    # @param image [Image]
    # @param maxPaletteSize [int]
    # @param colorCount [int *]
    # @return [Color *]
    [:LoadImagePalette, :LoadImagePalette, [Image.by_value, :int, :pointer], :pointer],

    # UnloadImageColors : Unload color data loaded with LoadImageColors()
    # @param colors [Color *]
    # @return [void]
    [:UnloadImageColors, :UnloadImageColors, [:pointer], :void],

    # UnloadImagePalette : Unload colors palette loaded with LoadImagePalette()
    # @param colors [Color *]
    # @return [void]
    [:UnloadImagePalette, :UnloadImagePalette, [:pointer], :void],

    # GetImageAlphaBorder : Get image alpha border rectangle
    # @param image [Image]
    # @param threshold [float]
    # @return [Rectangle]
    [:GetImageAlphaBorder, :GetImageAlphaBorder, [Image.by_value, :float], Rectangle.by_value],

    # GetImageColor : Get image pixel color at (x, y) position
    # @param image [Image]
    # @param x [int]
    # @param y [int]
    # @return [Color]
    [:GetImageColor, :GetImageColor, [Image.by_value, :int, :int], Color.by_value],

    # ImageClearBackground : Clear image background with given color
    # @param dst [Image *]
    # @param color [Color]
    # @return [void]
    [:ImageClearBackground, :ImageClearBackground, [:pointer, Color.by_value], :void],

    # ImageDrawPixel : Draw pixel within an image
    # @param dst [Image *]
    # @param posX [int]
    # @param posY [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawPixel, :ImageDrawPixel, [:pointer, :int, :int, Color.by_value], :void],

    # ImageDrawPixelV : Draw pixel within an image (Vector version)
    # @param dst [Image *]
    # @param position [Vector2]
    # @param color [Color]
    # @return [void]
    [:ImageDrawPixelV, :ImageDrawPixelV, [:pointer, Vector2.by_value, Color.by_value], :void],

    # ImageDrawLine : Draw line within an image
    # @param dst [Image *]
    # @param startPosX [int]
    # @param startPosY [int]
    # @param endPosX [int]
    # @param endPosY [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawLine, :ImageDrawLine, [:pointer, :int, :int, :int, :int, Color.by_value], :void],

    # ImageDrawLineV : Draw line within an image (Vector version)
    # @param dst [Image *]
    # @param start [Vector2]
    # @param end [Vector2]
    # @param color [Color]
    # @return [void]
    [:ImageDrawLineV, :ImageDrawLineV, [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value], :void],

    # ImageDrawCircle : Draw a filled circle within an image
    # @param dst [Image *]
    # @param centerX [int]
    # @param centerY [int]
    # @param radius [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawCircle, :ImageDrawCircle, [:pointer, :int, :int, :int, Color.by_value], :void],

    # ImageDrawCircleV : Draw a filled circle within an image (Vector version)
    # @param dst [Image *]
    # @param center [Vector2]
    # @param radius [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawCircleV, :ImageDrawCircleV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],

    # ImageDrawCircleLines : Draw circle outline within an image
    # @param dst [Image *]
    # @param centerX [int]
    # @param centerY [int]
    # @param radius [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawCircleLines, :ImageDrawCircleLines, [:pointer, :int, :int, :int, Color.by_value], :void],

    # ImageDrawCircleLinesV : Draw circle outline within an image (Vector version)
    # @param dst [Image *]
    # @param center [Vector2]
    # @param radius [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawCircleLinesV, :ImageDrawCircleLinesV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],

    # ImageDrawRectangle : Draw rectangle within an image
    # @param dst [Image *]
    # @param posX [int]
    # @param posY [int]
    # @param width [int]
    # @param height [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawRectangle, :ImageDrawRectangle, [:pointer, :int, :int, :int, :int, Color.by_value], :void],

    # ImageDrawRectangleV : Draw rectangle within an image (Vector version)
    # @param dst [Image *]
    # @param position [Vector2]
    # @param size [Vector2]
    # @param color [Color]
    # @return [void]
    [:ImageDrawRectangleV, :ImageDrawRectangleV, [:pointer, Vector2.by_value, Vector2.by_value, Color.by_value], :void],

    # ImageDrawRectangleRec : Draw rectangle within an image
    # @param dst [Image *]
    # @param rec [Rectangle]
    # @param color [Color]
    # @return [void]
    [:ImageDrawRectangleRec, :ImageDrawRectangleRec, [:pointer, Rectangle.by_value, Color.by_value], :void],

    # ImageDrawRectangleLines : Draw rectangle lines within an image
    # @param dst [Image *]
    # @param rec [Rectangle]
    # @param thick [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawRectangleLines, :ImageDrawRectangleLines, [:pointer, Rectangle.by_value, :int, Color.by_value], :void],

    # ImageDraw : Draw a source image within a destination image (tint applied to source)
    # @param dst [Image *]
    # @param src [Image]
    # @param srcRec [Rectangle]
    # @param dstRec [Rectangle]
    # @param tint [Color]
    # @return [void]
    [:ImageDraw, :ImageDraw, [:pointer, Image.by_value, Rectangle.by_value, Rectangle.by_value, Color.by_value], :void],

    # ImageDrawText : Draw text (using default font) within an image (destination)
    # @param dst [Image *]
    # @param text [const char *]
    # @param posX [int]
    # @param posY [int]
    # @param fontSize [int]
    # @param color [Color]
    # @return [void]
    [:ImageDrawText, :ImageDrawText, [:pointer, :pointer, :int, :int, :int, Color.by_value], :void],

    # ImageDrawTextEx : Draw text (custom sprite font) within an image (destination)
    # @param dst [Image *]
    # @param font [Font]
    # @param text [const char *]
    # @param position [Vector2]
    # @param fontSize [float]
    # @param spacing [float]
    # @param tint [Color]
    # @return [void]
    [:ImageDrawTextEx, :ImageDrawTextEx, [:pointer, Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value], :void],

    # LoadTexture : Load texture from file into GPU memory (VRAM)
    # @param fileName [const char *]
    # @return [Texture2D]
    [:LoadTexture, :LoadTexture, [:pointer], Texture2D.by_value],

    # LoadTextureFromImage : Load texture from image data
    # @param image [Image]
    # @return [Texture2D]
    [:LoadTextureFromImage, :LoadTextureFromImage, [Image.by_value], Texture2D.by_value],

    # LoadTextureCubemap : Load cubemap from image, multiple image cubemap layouts supported
    # @param image [Image]
    # @param layout [int]
    # @return [TextureCubemap]
    [:LoadTextureCubemap, :LoadTextureCubemap, [Image.by_value, :int], TextureCubemap.by_value],

    # LoadRenderTexture : Load texture for rendering (framebuffer)
    # @param width [int]
    # @param height [int]
    # @return [RenderTexture2D]
    [:LoadRenderTexture, :LoadRenderTexture, [:int, :int], RenderTexture2D.by_value],

    # IsTextureReady : Check if a texture is ready
    # @param texture [Texture2D]
    # @return [bool]
    [:IsTextureReady, :IsTextureReady, [Texture2D.by_value], :bool],

    # UnloadTexture : Unload texture from GPU memory (VRAM)
    # @param texture [Texture2D]
    # @return [void]
    [:UnloadTexture, :UnloadTexture, [Texture2D.by_value], :void],

    # IsRenderTextureReady : Check if a render texture is ready
    # @param target [RenderTexture2D]
    # @return [bool]
    [:IsRenderTextureReady, :IsRenderTextureReady, [RenderTexture2D.by_value], :bool],

    # UnloadRenderTexture : Unload render texture from GPU memory (VRAM)
    # @param target [RenderTexture2D]
    # @return [void]
    [:UnloadRenderTexture, :UnloadRenderTexture, [RenderTexture2D.by_value], :void],

    # UpdateTexture : Update GPU texture with new data
    # @param texture [Texture2D]
    # @param pixels [const void *]
    # @return [void]
    [:UpdateTexture, :UpdateTexture, [Texture2D.by_value, :pointer], :void],

    # UpdateTextureRec : Update GPU texture rectangle with new data
    # @param texture [Texture2D]
    # @param rec [Rectangle]
    # @param pixels [const void *]
    # @return [void]
    [:UpdateTextureRec, :UpdateTextureRec, [Texture2D.by_value, Rectangle.by_value, :pointer], :void],

    # GenTextureMipmaps : Generate GPU mipmaps for a texture
    # @param texture [Texture2D *]
    # @return [void]
    [:GenTextureMipmaps, :GenTextureMipmaps, [:pointer], :void],

    # SetTextureFilter : Set texture scaling filter mode
    # @param texture [Texture2D]
    # @param filter [int]
    # @return [void]
    [:SetTextureFilter, :SetTextureFilter, [Texture2D.by_value, :int], :void],

    # SetTextureWrap : Set texture wrapping mode
    # @param texture [Texture2D]
    # @param wrap [int]
    # @return [void]
    [:SetTextureWrap, :SetTextureWrap, [Texture2D.by_value, :int], :void],

    # DrawTexture : Draw a Texture2D
    # @param texture [Texture2D]
    # @param posX [int]
    # @param posY [int]
    # @param tint [Color]
    # @return [void]
    [:DrawTexture, :DrawTexture, [Texture2D.by_value, :int, :int, Color.by_value], :void],

    # DrawTextureV : Draw a Texture2D with position defined as Vector2
    # @param texture [Texture2D]
    # @param position [Vector2]
    # @param tint [Color]
    # @return [void]
    [:DrawTextureV, :DrawTextureV, [Texture2D.by_value, Vector2.by_value, Color.by_value], :void],

    # DrawTextureEx : Draw a Texture2D with extended parameters
    # @param texture [Texture2D]
    # @param position [Vector2]
    # @param rotation [float]
    # @param scale [float]
    # @param tint [Color]
    # @return [void]
    [:DrawTextureEx, :DrawTextureEx, [Texture2D.by_value, Vector2.by_value, :float, :float, Color.by_value], :void],

    # DrawTextureRec : Draw a part of a texture defined by a rectangle
    # @param texture [Texture2D]
    # @param source [Rectangle]
    # @param position [Vector2]
    # @param tint [Color]
    # @return [void]
    [:DrawTextureRec, :DrawTextureRec, [Texture2D.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value], :void],

    # DrawTexturePro : Draw a part of a texture defined by a rectangle with 'pro' parameters
    # @param texture [Texture2D]
    # @param source [Rectangle]
    # @param dest [Rectangle]
    # @param origin [Vector2]
    # @param rotation [float]
    # @param tint [Color]
    # @return [void]
    [:DrawTexturePro, :DrawTexturePro, [Texture2D.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],

    # DrawTextureNPatch : Draws a texture (or part of it) that stretches or shrinks nicely
    # @param texture [Texture2D]
    # @param nPatchInfo [NPatchInfo]
    # @param dest [Rectangle]
    # @param origin [Vector2]
    # @param rotation [float]
    # @param tint [Color]
    # @return [void]
    [:DrawTextureNPatch, :DrawTextureNPatch, [Texture2D.by_value, NPatchInfo.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],

    # Fade : Get color with alpha applied, alpha goes from 0.0f to 1.0f
    # @param color [Color]
    # @param alpha [float]
    # @return [Color]
    [:Fade, :Fade, [Color.by_value, :float], Color.by_value],

    # ColorToInt : Get hexadecimal value for a Color
    # @param color [Color]
    # @return [int]
    [:ColorToInt, :ColorToInt, [Color.by_value], :int],

    # ColorNormalize : Get Color normalized as float [0..1]
    # @param color [Color]
    # @return [Vector4]
    [:ColorNormalize, :ColorNormalize, [Color.by_value], Vector4.by_value],

    # ColorFromNormalized : Get Color from normalized values [0..1]
    # @param normalized [Vector4]
    # @return [Color]
    [:ColorFromNormalized, :ColorFromNormalized, [Vector4.by_value], Color.by_value],

    # ColorToHSV : Get HSV values for a Color, hue [0..360], saturation/value [0..1]
    # @param color [Color]
    # @return [Vector3]
    [:ColorToHSV, :ColorToHSV, [Color.by_value], Vector3.by_value],

    # ColorFromHSV : Get a Color from HSV values, hue [0..360], saturation/value [0..1]
    # @param hue [float]
    # @param saturation [float]
    # @param value [float]
    # @return [Color]
    [:ColorFromHSV, :ColorFromHSV, [:float, :float, :float], Color.by_value],

    # ColorTint : Get color multiplied with another color
    # @param color [Color]
    # @param tint [Color]
    # @return [Color]
    [:ColorTint, :ColorTint, [Color.by_value, Color.by_value], Color.by_value],

    # ColorBrightness : Get color with brightness correction, brightness factor goes from -1.0f to 1.0f
    # @param color [Color]
    # @param factor [float]
    # @return [Color]
    [:ColorBrightness, :ColorBrightness, [Color.by_value, :float], Color.by_value],

    # ColorContrast : Get color with contrast correction, contrast values between -1.0f and 1.0f
    # @param color [Color]
    # @param contrast [float]
    # @return [Color]
    [:ColorContrast, :ColorContrast, [Color.by_value, :float], Color.by_value],

    # ColorAlpha : Get color with alpha applied, alpha goes from 0.0f to 1.0f
    # @param color [Color]
    # @param alpha [float]
    # @return [Color]
    [:ColorAlpha, :ColorAlpha, [Color.by_value, :float], Color.by_value],

    # ColorAlphaBlend : Get src alpha-blended into dst color with tint
    # @param dst [Color]
    # @param src [Color]
    # @param tint [Color]
    # @return [Color]
    [:ColorAlphaBlend, :ColorAlphaBlend, [Color.by_value, Color.by_value, Color.by_value], Color.by_value],

    # GetColor : Get Color structure from hexadecimal value
    # @param hexValue [unsigned int]
    # @return [Color]
    [:GetColor, :GetColor, [:uint], Color.by_value],

    # GetPixelColor : Get Color from a source pixel pointer of certain format
    # @param srcPtr [void *]
    # @param format [int]
    # @return [Color]
    [:GetPixelColor, :GetPixelColor, [:pointer, :int], Color.by_value],

    # SetPixelColor : Set color formatted into destination pixel pointer
    # @param dstPtr [void *]
    # @param color [Color]
    # @param format [int]
    # @return [void]
    [:SetPixelColor, :SetPixelColor, [:pointer, Color.by_value, :int], :void],

    # GetPixelDataSize : Get pixel data size in bytes for certain format
    # @param width [int]
    # @param height [int]
    # @param format [int]
    # @return [int]
    [:GetPixelDataSize, :GetPixelDataSize, [:int, :int, :int], :int],

    # GetFontDefault : Get the default Font
    # @return [Font]
    [:GetFontDefault, :GetFontDefault, [], Font.by_value],

    # LoadFont : Load font from file into GPU memory (VRAM)
    # @param fileName [const char *]
    # @return [Font]
    [:LoadFont, :LoadFont, [:pointer], Font.by_value],

    # LoadFontEx : Load font from file with extended parameters, use NULL for fontChars and 0 for glyphCount to load the default character set
    # @param fileName [const char *]
    # @param fontSize [int]
    # @param fontChars [int *]
    # @param glyphCount [int]
    # @return [Font]
    [:LoadFontEx, :LoadFontEx, [:pointer, :int, :pointer, :int], Font.by_value],

    # LoadFontFromImage : Load font from Image (XNA style)
    # @param image [Image]
    # @param key [Color]
    # @param firstChar [int]
    # @return [Font]
    [:LoadFontFromImage, :LoadFontFromImage, [Image.by_value, Color.by_value, :int], Font.by_value],

    # LoadFontFromMemory : Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
    # @param fileType [const char *]
    # @param fileData [const unsigned char *]
    # @param dataSize [int]
    # @param fontSize [int]
    # @param fontChars [int *]
    # @param glyphCount [int]
    # @return [Font]
    [:LoadFontFromMemory, :LoadFontFromMemory, [:pointer, :pointer, :int, :int, :pointer, :int], Font.by_value],

    # IsFontReady : Check if a font is ready
    # @param font [Font]
    # @return [bool]
    [:IsFontReady, :IsFontReady, [Font.by_value], :bool],

    # LoadFontData : Load font data for further use
    # @param fileData [const unsigned char *]
    # @param dataSize [int]
    # @param fontSize [int]
    # @param fontChars [int *]
    # @param glyphCount [int]
    # @param type [int]
    # @return [GlyphInfo *]
    [:LoadFontData, :LoadFontData, [:pointer, :int, :int, :pointer, :int, :int], :pointer],

    # GenImageFontAtlas : Generate image font atlas using chars info
    # @param chars [const GlyphInfo *]
    # @param recs [Rectangle **]
    # @param glyphCount [int]
    # @param fontSize [int]
    # @param padding [int]
    # @param packMethod [int]
    # @return [Image]
    [:GenImageFontAtlas, :GenImageFontAtlas, [:pointer, :pointer, :int, :int, :int, :int], Image.by_value],

    # UnloadFontData : Unload font chars info data (RAM)
    # @param chars [GlyphInfo *]
    # @param glyphCount [int]
    # @return [void]
    [:UnloadFontData, :UnloadFontData, [:pointer, :int], :void],

    # UnloadFont : Unload font from GPU memory (VRAM)
    # @param font [Font]
    # @return [void]
    [:UnloadFont, :UnloadFont, [Font.by_value], :void],

    # ExportFontAsCode : Export font as code file, returns true on success
    # @param font [Font]
    # @param fileName [const char *]
    # @return [bool]
    [:ExportFontAsCode, :ExportFontAsCode, [Font.by_value, :pointer], :bool],

    # DrawFPS : Draw current FPS
    # @param posX [int]
    # @param posY [int]
    # @return [void]
    [:DrawFPS, :DrawFPS, [:int, :int], :void],

    # DrawText : Draw text (using default font)
    # @param text [const char *]
    # @param posX [int]
    # @param posY [int]
    # @param fontSize [int]
    # @param color [Color]
    # @return [void]
    [:DrawText, :DrawText, [:pointer, :int, :int, :int, Color.by_value], :void],

    # DrawTextEx : Draw text using font and additional parameters
    # @param font [Font]
    # @param text [const char *]
    # @param position [Vector2]
    # @param fontSize [float]
    # @param spacing [float]
    # @param tint [Color]
    # @return [void]
    [:DrawTextEx, :DrawTextEx, [Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value], :void],

    # DrawTextPro : Draw text using Font and pro parameters (rotation)
    # @param font [Font]
    # @param text [const char *]
    # @param position [Vector2]
    # @param origin [Vector2]
    # @param rotation [float]
    # @param fontSize [float]
    # @param spacing [float]
    # @param tint [Color]
    # @return [void]
    [:DrawTextPro, :DrawTextPro, [Font.by_value, :pointer, Vector2.by_value, Vector2.by_value, :float, :float, :float, Color.by_value], :void],

    # DrawTextCodepoint : Draw one character (codepoint)
    # @param font [Font]
    # @param codepoint [int]
    # @param position [Vector2]
    # @param fontSize [float]
    # @param tint [Color]
    # @return [void]
    [:DrawTextCodepoint, :DrawTextCodepoint, [Font.by_value, :int, Vector2.by_value, :float, Color.by_value], :void],

    # DrawTextCodepoints : Draw multiple character (codepoint)
    # @param font [Font]
    # @param codepoints [const int *]
    # @param count [int]
    # @param position [Vector2]
    # @param fontSize [float]
    # @param spacing [float]
    # @param tint [Color]
    # @return [void]
    [:DrawTextCodepoints, :DrawTextCodepoints, [Font.by_value, :pointer, :int, Vector2.by_value, :float, :float, Color.by_value], :void],

    # MeasureText : Measure string width for default font
    # @param text [const char *]
    # @param fontSize [int]
    # @return [int]
    [:MeasureText, :MeasureText, [:pointer, :int], :int],

    # MeasureTextEx : Measure string size for Font
    # @param font [Font]
    # @param text [const char *]
    # @param fontSize [float]
    # @param spacing [float]
    # @return [Vector2]
    [:MeasureTextEx, :MeasureTextEx, [Font.by_value, :pointer, :float, :float], Vector2.by_value],

    # GetGlyphIndex : Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found
    # @param font [Font]
    # @param codepoint [int]
    # @return [int]
    [:GetGlyphIndex, :GetGlyphIndex, [Font.by_value, :int], :int],

    # GetGlyphInfo : Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found
    # @param font [Font]
    # @param codepoint [int]
    # @return [GlyphInfo]
    [:GetGlyphInfo, :GetGlyphInfo, [Font.by_value, :int], GlyphInfo.by_value],

    # GetGlyphAtlasRec : Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found
    # @param font [Font]
    # @param codepoint [int]
    # @return [Rectangle]
    [:GetGlyphAtlasRec, :GetGlyphAtlasRec, [Font.by_value, :int], Rectangle.by_value],

    # LoadUTF8 : Load UTF-8 text encoded from codepoints array
    # @param codepoints [const int *]
    # @param length [int]
    # @return [char *]
    [:LoadUTF8, :LoadUTF8, [:pointer, :int], :pointer],

    # UnloadUTF8 : Unload UTF-8 text encoded from codepoints array
    # @param text [char *]
    # @return [void]
    [:UnloadUTF8, :UnloadUTF8, [:pointer], :void],

    # LoadCodepoints : Load all codepoints from a UTF-8 text string, codepoints count returned by parameter
    # @param text [const char *]
    # @param count [int *]
    # @return [int *]
    [:LoadCodepoints, :LoadCodepoints, [:pointer, :pointer], :pointer],

    # UnloadCodepoints : Unload codepoints data from memory
    # @param codepoints [int *]
    # @return [void]
    [:UnloadCodepoints, :UnloadCodepoints, [:pointer], :void],

    # GetCodepointCount : Get total number of codepoints in a UTF-8 encoded string
    # @param text [const char *]
    # @return [int]
    [:GetCodepointCount, :GetCodepointCount, [:pointer], :int],

    # GetCodepoint : Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
    # @param text [const char *]
    # @param codepointSize [int *]
    # @return [int]
    [:GetCodepoint, :GetCodepoint, [:pointer, :pointer], :int],

    # GetCodepointNext : Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
    # @param text [const char *]
    # @param codepointSize [int *]
    # @return [int]
    [:GetCodepointNext, :GetCodepointNext, [:pointer, :pointer], :int],

    # GetCodepointPrevious : Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure
    # @param text [const char *]
    # @param codepointSize [int *]
    # @return [int]
    [:GetCodepointPrevious, :GetCodepointPrevious, [:pointer, :pointer], :int],

    # CodepointToUTF8 : Encode one codepoint into UTF-8 byte array (array length returned as parameter)
    # @param codepoint [int]
    # @param utf8Size [int *]
    # @return [const char *]
    [:CodepointToUTF8, :CodepointToUTF8, [:int, :pointer], :pointer],

    # TextCopy : Copy one string to another, returns bytes copied
    # @param dst [char *]
    # @param src [const char *]
    # @return [int]
    [:TextCopy, :TextCopy, [:pointer, :pointer], :int],

    # TextIsEqual : Check if two text string are equal
    # @param text1 [const char *]
    # @param text2 [const char *]
    # @return [bool]
    [:TextIsEqual, :TextIsEqual, [:pointer, :pointer], :bool],

    # TextLength : Get text length, checks for '\0' ending
    # @param text [const char *]
    # @return [unsigned int]
    [:TextLength, :TextLength, [:pointer], :uint],

    # TextFormat : Text formatting with variables (sprintf() style)
    # @param text [const char *]
    # @param args [...]
    # @return [const char *]
    [:TextFormat, :TextFormat, [:pointer, :varargs], :pointer],

    # TextSubtext : Get a piece of a text string
    # @param text [const char *]
    # @param position [int]
    # @param length [int]
    # @return [const char *]
    [:TextSubtext, :TextSubtext, [:pointer, :int, :int], :pointer],

    # TextReplace : Replace text string (WARNING: memory must be freed!)
    # @param text [char *]
    # @param replace [const char *]
    # @param by [const char *]
    # @return [char *]
    [:TextReplace, :TextReplace, [:pointer, :pointer, :pointer], :pointer],

    # TextInsert : Insert text in a position (WARNING: memory must be freed!)
    # @param text [const char *]
    # @param insert [const char *]
    # @param position [int]
    # @return [char *]
    [:TextInsert, :TextInsert, [:pointer, :pointer, :int], :pointer],

    # TextJoin : Join text strings with delimiter
    # @param textList [const char **]
    # @param count [int]
    # @param delimiter [const char *]
    # @return [const char *]
    [:TextJoin, :TextJoin, [:pointer, :int, :pointer], :pointer],

    # TextSplit : Split text into multiple strings
    # @param text [const char *]
    # @param delimiter [char]
    # @param count [int *]
    # @return [const char **]
    [:TextSplit, :TextSplit, [:pointer, :char, :pointer], :pointer],

    # TextAppend : Append text at specific position and move cursor!
    # @param text [char *]
    # @param append [const char *]
    # @param position [int *]
    # @return [void]
    [:TextAppend, :TextAppend, [:pointer, :pointer, :pointer], :void],

    # TextFindIndex : Find first text occurrence within a string
    # @param text [const char *]
    # @param find [const char *]
    # @return [int]
    [:TextFindIndex, :TextFindIndex, [:pointer, :pointer], :int],

    # TextToUpper : Get upper case version of provided string
    # @param text [const char *]
    # @return [const char *]
    [:TextToUpper, :TextToUpper, [:pointer], :pointer],

    # TextToLower : Get lower case version of provided string
    # @param text [const char *]
    # @return [const char *]
    [:TextToLower, :TextToLower, [:pointer], :pointer],

    # TextToPascal : Get Pascal case notation version of provided string
    # @param text [const char *]
    # @return [const char *]
    [:TextToPascal, :TextToPascal, [:pointer], :pointer],

    # TextToInteger : Get integer value from text (negative values not supported)
    # @param text [const char *]
    # @return [int]
    [:TextToInteger, :TextToInteger, [:pointer], :int],

    # DrawLine3D : Draw a line in 3D world space
    # @param startPos [Vector3]
    # @param endPos [Vector3]
    # @param color [Color]
    # @return [void]
    [:DrawLine3D, :DrawLine3D, [Vector3.by_value, Vector3.by_value, Color.by_value], :void],

    # DrawPoint3D : Draw a point in 3D space, actually a small line
    # @param position [Vector3]
    # @param color [Color]
    # @return [void]
    [:DrawPoint3D, :DrawPoint3D, [Vector3.by_value, Color.by_value], :void],

    # DrawCircle3D : Draw a circle in 3D world space
    # @param center [Vector3]
    # @param radius [float]
    # @param rotationAxis [Vector3]
    # @param rotationAngle [float]
    # @param color [Color]
    # @return [void]
    [:DrawCircle3D, :DrawCircle3D, [Vector3.by_value, :float, Vector3.by_value, :float, Color.by_value], :void],

    # DrawTriangle3D : Draw a color-filled triangle (vertex in counter-clockwise order!)
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @param v3 [Vector3]
    # @param color [Color]
    # @return [void]
    [:DrawTriangle3D, :DrawTriangle3D, [Vector3.by_value, Vector3.by_value, Vector3.by_value, Color.by_value], :void],

    # DrawTriangleStrip3D : Draw a triangle strip defined by points
    # @param points [Vector3 *]
    # @param pointCount [int]
    # @param color [Color]
    # @return [void]
    [:DrawTriangleStrip3D, :DrawTriangleStrip3D, [:pointer, :int, Color.by_value], :void],

    # DrawCube : Draw cube
    # @param position [Vector3]
    # @param width [float]
    # @param height [float]
    # @param length [float]
    # @param color [Color]
    # @return [void]
    [:DrawCube, :DrawCube, [Vector3.by_value, :float, :float, :float, Color.by_value], :void],

    # DrawCubeV : Draw cube (Vector version)
    # @param position [Vector3]
    # @param size [Vector3]
    # @param color [Color]
    # @return [void]
    [:DrawCubeV, :DrawCubeV, [Vector3.by_value, Vector3.by_value, Color.by_value], :void],

    # DrawCubeWires : Draw cube wires
    # @param position [Vector3]
    # @param width [float]
    # @param height [float]
    # @param length [float]
    # @param color [Color]
    # @return [void]
    [:DrawCubeWires, :DrawCubeWires, [Vector3.by_value, :float, :float, :float, Color.by_value], :void],

    # DrawCubeWiresV : Draw cube wires (Vector version)
    # @param position [Vector3]
    # @param size [Vector3]
    # @param color [Color]
    # @return [void]
    [:DrawCubeWiresV, :DrawCubeWiresV, [Vector3.by_value, Vector3.by_value, Color.by_value], :void],

    # DrawSphere : Draw sphere
    # @param centerPos [Vector3]
    # @param radius [float]
    # @param color [Color]
    # @return [void]
    [:DrawSphere, :DrawSphere, [Vector3.by_value, :float, Color.by_value], :void],

    # DrawSphereEx : Draw sphere with extended parameters
    # @param centerPos [Vector3]
    # @param radius [float]
    # @param rings [int]
    # @param slices [int]
    # @param color [Color]
    # @return [void]
    [:DrawSphereEx, :DrawSphereEx, [Vector3.by_value, :float, :int, :int, Color.by_value], :void],

    # DrawSphereWires : Draw sphere wires
    # @param centerPos [Vector3]
    # @param radius [float]
    # @param rings [int]
    # @param slices [int]
    # @param color [Color]
    # @return [void]
    [:DrawSphereWires, :DrawSphereWires, [Vector3.by_value, :float, :int, :int, Color.by_value], :void],

    # DrawCylinder : Draw a cylinder/cone
    # @param position [Vector3]
    # @param radiusTop [float]
    # @param radiusBottom [float]
    # @param height [float]
    # @param slices [int]
    # @param color [Color]
    # @return [void]
    [:DrawCylinder, :DrawCylinder, [Vector3.by_value, :float, :float, :float, :int, Color.by_value], :void],

    # DrawCylinderEx : Draw a cylinder with base at startPos and top at endPos
    # @param startPos [Vector3]
    # @param endPos [Vector3]
    # @param startRadius [float]
    # @param endRadius [float]
    # @param sides [int]
    # @param color [Color]
    # @return [void]
    [:DrawCylinderEx, :DrawCylinderEx, [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value], :void],

    # DrawCylinderWires : Draw a cylinder/cone wires
    # @param position [Vector3]
    # @param radiusTop [float]
    # @param radiusBottom [float]
    # @param height [float]
    # @param slices [int]
    # @param color [Color]
    # @return [void]
    [:DrawCylinderWires, :DrawCylinderWires, [Vector3.by_value, :float, :float, :float, :int, Color.by_value], :void],

    # DrawCylinderWiresEx : Draw a cylinder wires with base at startPos and top at endPos
    # @param startPos [Vector3]
    # @param endPos [Vector3]
    # @param startRadius [float]
    # @param endRadius [float]
    # @param sides [int]
    # @param color [Color]
    # @return [void]
    [:DrawCylinderWiresEx, :DrawCylinderWiresEx, [Vector3.by_value, Vector3.by_value, :float, :float, :int, Color.by_value], :void],

    # DrawCapsule : Draw a capsule with the center of its sphere caps at startPos and endPos
    # @param startPos [Vector3]
    # @param endPos [Vector3]
    # @param radius [float]
    # @param slices [int]
    # @param rings [int]
    # @param color [Color]
    # @return [void]
    [:DrawCapsule, :DrawCapsule, [Vector3.by_value, Vector3.by_value, :float, :int, :int, Color.by_value], :void],

    # DrawCapsuleWires : Draw capsule wireframe with the center of its sphere caps at startPos and endPos
    # @param startPos [Vector3]
    # @param endPos [Vector3]
    # @param radius [float]
    # @param slices [int]
    # @param rings [int]
    # @param color [Color]
    # @return [void]
    [:DrawCapsuleWires, :DrawCapsuleWires, [Vector3.by_value, Vector3.by_value, :float, :int, :int, Color.by_value], :void],

    # DrawPlane : Draw a plane XZ
    # @param centerPos [Vector3]
    # @param size [Vector2]
    # @param color [Color]
    # @return [void]
    [:DrawPlane, :DrawPlane, [Vector3.by_value, Vector2.by_value, Color.by_value], :void],

    # DrawRay : Draw a ray line
    # @param ray [Ray]
    # @param color [Color]
    # @return [void]
    [:DrawRay, :DrawRay, [Ray.by_value, Color.by_value], :void],

    # DrawGrid : Draw a grid (centered at (0, 0, 0))
    # @param slices [int]
    # @param spacing [float]
    # @return [void]
    [:DrawGrid, :DrawGrid, [:int, :float], :void],

    # LoadModel : Load model from files (meshes and materials)
    # @param fileName [const char *]
    # @return [Model]
    [:LoadModel, :LoadModel, [:pointer], Model.by_value],

    # LoadModelFromMesh : Load model from generated mesh (default material)
    # @param mesh [Mesh]
    # @return [Model]
    [:LoadModelFromMesh, :LoadModelFromMesh, [Mesh.by_value], Model.by_value],

    # IsModelReady : Check if a model is ready
    # @param model [Model]
    # @return [bool]
    [:IsModelReady, :IsModelReady, [Model.by_value], :bool],

    # UnloadModel : Unload model (including meshes) from memory (RAM and/or VRAM)
    # @param model [Model]
    # @return [void]
    [:UnloadModel, :UnloadModel, [Model.by_value], :void],

    # GetModelBoundingBox : Compute model bounding box limits (considers all meshes)
    # @param model [Model]
    # @return [BoundingBox]
    [:GetModelBoundingBox, :GetModelBoundingBox, [Model.by_value], BoundingBox.by_value],

    # DrawModel : Draw a model (with texture if set)
    # @param model [Model]
    # @param position [Vector3]
    # @param scale [float]
    # @param tint [Color]
    # @return [void]
    [:DrawModel, :DrawModel, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],

    # internalDrawModelEx : Draw a model with extended parameters
    # @param model [Model]
    # @param position [Vector3]
    # @param rotationAxis [Vector3]
    # @param rotationAngle [float]
    # @param scale [Vector3]
    # @param tint [Color]
    # @return [void]
    [:internalDrawModelEx, :DrawModelEx, [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value], :void],

    # DrawModelWires : Draw a model wires (with texture if set)
    # @param model [Model]
    # @param position [Vector3]
    # @param scale [float]
    # @param tint [Color]
    # @return [void]
    [:DrawModelWires, :DrawModelWires, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],

    # DrawModelWiresEx : Draw a model wires (with texture if set) with extended parameters
    # @param model [Model]
    # @param position [Vector3]
    # @param rotationAxis [Vector3]
    # @param rotationAngle [float]
    # @param scale [Vector3]
    # @param tint [Color]
    # @return [void]
    [:DrawModelWiresEx, :DrawModelWiresEx, [Model.by_value, Vector3.by_value, Vector3.by_value, :float, Vector3.by_value, Color.by_value], :void],

    # DrawBoundingBox : Draw bounding box (wires)
    # @param box [BoundingBox]
    # @param color [Color]
    # @return [void]
    [:DrawBoundingBox, :DrawBoundingBox, [BoundingBox.by_value, Color.by_value], :void],

    # DrawBillboard : Draw a billboard texture
    # @param camera [Camera]
    # @param texture [Texture2D]
    # @param position [Vector3]
    # @param size [float]
    # @param tint [Color]
    # @return [void]
    [:DrawBillboard, :DrawBillboard, [Camera.by_value, Texture2D.by_value, Vector3.by_value, :float, Color.by_value], :void],

    # DrawBillboardRec : Draw a billboard texture defined by source
    # @param camera [Camera]
    # @param texture [Texture2D]
    # @param source [Rectangle]
    # @param position [Vector3]
    # @param size [Vector2]
    # @param tint [Color]
    # @return [void]
    [:DrawBillboardRec, :DrawBillboardRec, [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, Vector2.by_value, Color.by_value], :void],

    # DrawBillboardPro : Draw a billboard texture defined by source and rotation
    # @param camera [Camera]
    # @param texture [Texture2D]
    # @param source [Rectangle]
    # @param position [Vector3]
    # @param up [Vector3]
    # @param size [Vector2]
    # @param origin [Vector2]
    # @param rotation [float]
    # @param tint [Color]
    # @return [void]
    [:DrawBillboardPro, :DrawBillboardPro, [Camera.by_value, Texture2D.by_value, Rectangle.by_value, Vector3.by_value, Vector3.by_value, Vector2.by_value, Vector2.by_value, :float, Color.by_value], :void],

    # UploadMesh : Upload mesh vertex data in GPU and provide VAO/VBO ids
    # @param mesh [Mesh *]
    # @param dynamic [bool]
    # @return [void]
    [:UploadMesh, :UploadMesh, [:pointer, :bool], :void],

    # UpdateMeshBuffer : Update mesh vertex data in GPU for a specific buffer index
    # @param mesh [Mesh]
    # @param index [int]
    # @param data [const void *]
    # @param dataSize [int]
    # @param offset [int]
    # @return [void]
    [:UpdateMeshBuffer, :UpdateMeshBuffer, [Mesh.by_value, :int, :pointer, :int, :int], :void],

    # UnloadMesh : Unload mesh data from CPU and GPU
    # @param mesh [Mesh]
    # @return [void]
    [:UnloadMesh, :UnloadMesh, [Mesh.by_value], :void],

    # DrawMesh : Draw a 3d mesh with material and transform
    # @param mesh [Mesh]
    # @param material [Material]
    # @param transform [Matrix]
    # @return [void]
    [:DrawMesh, :DrawMesh, [Mesh.by_value, Material.by_value, Matrix.by_value], :void],

    # DrawMeshInstanced : Draw multiple mesh instances with material and different transforms
    # @param mesh [Mesh]
    # @param material [Material]
    # @param transforms [const Matrix *]
    # @param instances [int]
    # @return [void]
    [:DrawMeshInstanced, :DrawMeshInstanced, [Mesh.by_value, Material.by_value, :pointer, :int], :void],

    # ExportMesh : Export mesh data to file, returns true on success
    # @param mesh [Mesh]
    # @param fileName [const char *]
    # @return [bool]
    [:ExportMesh, :ExportMesh, [Mesh.by_value, :pointer], :bool],

    # GetMeshBoundingBox : Compute mesh bounding box limits
    # @param mesh [Mesh]
    # @return [BoundingBox]
    [:GetMeshBoundingBox, :GetMeshBoundingBox, [Mesh.by_value], BoundingBox.by_value],

    # GenMeshTangents : Compute mesh tangents
    # @param mesh [Mesh *]
    # @return [void]
    [:GenMeshTangents, :GenMeshTangents, [:pointer], :void],

    # GenMeshPoly : Generate polygonal mesh
    # @param sides [int]
    # @param radius [float]
    # @return [Mesh]
    [:GenMeshPoly, :GenMeshPoly, [:int, :float], Mesh.by_value],

    # GenMeshPlane : Generate plane mesh (with subdivisions)
    # @param width [float]
    # @param length [float]
    # @param resX [int]
    # @param resZ [int]
    # @return [Mesh]
    [:GenMeshPlane, :GenMeshPlane, [:float, :float, :int, :int], Mesh.by_value],

    # GenMeshCube : Generate cuboid mesh
    # @param width [float]
    # @param height [float]
    # @param length [float]
    # @return [Mesh]
    [:GenMeshCube, :GenMeshCube, [:float, :float, :float], Mesh.by_value],

    # GenMeshSphere : Generate sphere mesh (standard sphere)
    # @param radius [float]
    # @param rings [int]
    # @param slices [int]
    # @return [Mesh]
    [:GenMeshSphere, :GenMeshSphere, [:float, :int, :int], Mesh.by_value],

    # GenMeshHemiSphere : Generate half-sphere mesh (no bottom cap)
    # @param radius [float]
    # @param rings [int]
    # @param slices [int]
    # @return [Mesh]
    [:GenMeshHemiSphere, :GenMeshHemiSphere, [:float, :int, :int], Mesh.by_value],

    # GenMeshCylinder : Generate cylinder mesh
    # @param radius [float]
    # @param height [float]
    # @param slices [int]
    # @return [Mesh]
    [:GenMeshCylinder, :GenMeshCylinder, [:float, :float, :int], Mesh.by_value],

    # GenMeshCone : Generate cone/pyramid mesh
    # @param radius [float]
    # @param height [float]
    # @param slices [int]
    # @return [Mesh]
    [:GenMeshCone, :GenMeshCone, [:float, :float, :int], Mesh.by_value],

    # GenMeshTorus : Generate torus mesh
    # @param radius [float]
    # @param size [float]
    # @param radSeg [int]
    # @param sides [int]
    # @return [Mesh]
    [:GenMeshTorus, :GenMeshTorus, [:float, :float, :int, :int], Mesh.by_value],

    # GenMeshKnot : Generate trefoil knot mesh
    # @param radius [float]
    # @param size [float]
    # @param radSeg [int]
    # @param sides [int]
    # @return [Mesh]
    [:GenMeshKnot, :GenMeshKnot, [:float, :float, :int, :int], Mesh.by_value],

    # GenMeshHeightmap : Generate heightmap mesh from image data
    # @param heightmap [Image]
    # @param size [Vector3]
    # @return [Mesh]
    [:GenMeshHeightmap, :GenMeshHeightmap, [Image.by_value, Vector3.by_value], Mesh.by_value],

    # GenMeshCubicmap : Generate cubes-based map mesh from image data
    # @param cubicmap [Image]
    # @param cubeSize [Vector3]
    # @return [Mesh]
    [:GenMeshCubicmap, :GenMeshCubicmap, [Image.by_value, Vector3.by_value], Mesh.by_value],

    # LoadMaterials : Load materials from model file
    # @param fileName [const char *]
    # @param materialCount [int *]
    # @return [Material *]
    [:LoadMaterials, :LoadMaterials, [:pointer, :pointer], :pointer],

    # LoadMaterialDefault : Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
    # @return [Material]
    [:LoadMaterialDefault, :LoadMaterialDefault, [], Material.by_value],

    # IsMaterialReady : Check if a material is ready
    # @param material [Material]
    # @return [bool]
    [:IsMaterialReady, :IsMaterialReady, [Material.by_value], :bool],

    # UnloadMaterial : Unload material from GPU memory (VRAM)
    # @param material [Material]
    # @return [void]
    [:UnloadMaterial, :UnloadMaterial, [Material.by_value], :void],

    # SetMaterialTexture : Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)
    # @param material [Material *]
    # @param mapType [int]
    # @param texture [Texture2D]
    # @return [void]
    [:SetMaterialTexture, :SetMaterialTexture, [:pointer, :int, Texture2D.by_value], :void],

    # SetModelMeshMaterial : Set material for a mesh
    # @param model [Model *]
    # @param meshId [int]
    # @param materialId [int]
    # @return [void]
    [:SetModelMeshMaterial, :SetModelMeshMaterial, [:pointer, :int, :int], :void],

    # LoadModelAnimations : Load model animations from file
    # @param fileName [const char *]
    # @param animCount [unsigned int *]
    # @return [ModelAnimation *]
    [:LoadModelAnimations, :LoadModelAnimations, [:pointer, :pointer], :pointer],

    # UpdateModelAnimation : Update model animation pose
    # @param model [Model]
    # @param anim [ModelAnimation]
    # @param frame [int]
    # @return [void]
    [:UpdateModelAnimation, :UpdateModelAnimation, [Model.by_value, ModelAnimation.by_value, :int], :void],

    # UnloadModelAnimation : Unload animation data
    # @param anim [ModelAnimation]
    # @return [void]
    [:UnloadModelAnimation, :UnloadModelAnimation, [ModelAnimation.by_value], :void],

    # UnloadModelAnimations : Unload animation array data
    # @param animations [ModelAnimation *]
    # @param count [unsigned int]
    # @return [void]
    [:UnloadModelAnimations, :UnloadModelAnimations, [:pointer, :uint], :void],

    # IsModelAnimationValid : Check model animation skeleton match
    # @param model [Model]
    # @param anim [ModelAnimation]
    # @return [bool]
    [:IsModelAnimationValid, :IsModelAnimationValid, [Model.by_value, ModelAnimation.by_value], :bool],

    # CheckCollisionSpheres : Check collision between two spheres
    # @param center1 [Vector3]
    # @param radius1 [float]
    # @param center2 [Vector3]
    # @param radius2 [float]
    # @return [bool]
    [:CheckCollisionSpheres, :CheckCollisionSpheres, [Vector3.by_value, :float, Vector3.by_value, :float], :bool],

    # CheckCollisionBoxes : Check collision between two bounding boxes
    # @param box1 [BoundingBox]
    # @param box2 [BoundingBox]
    # @return [bool]
    [:CheckCollisionBoxes, :CheckCollisionBoxes, [BoundingBox.by_value, BoundingBox.by_value], :bool],

    # CheckCollisionBoxSphere : Check collision between box and sphere
    # @param box [BoundingBox]
    # @param center [Vector3]
    # @param radius [float]
    # @return [bool]
    [:CheckCollisionBoxSphere, :CheckCollisionBoxSphere, [BoundingBox.by_value, Vector3.by_value, :float], :bool],

    # GetRayCollisionSphere : Get collision info between ray and sphere
    # @param ray [Ray]
    # @param center [Vector3]
    # @param radius [float]
    # @return [RayCollision]
    [:GetRayCollisionSphere, :GetRayCollisionSphere, [Ray.by_value, Vector3.by_value, :float], RayCollision.by_value],

    # GetRayCollisionBox : Get collision info between ray and box
    # @param ray [Ray]
    # @param box [BoundingBox]
    # @return [RayCollision]
    [:GetRayCollisionBox, :GetRayCollisionBox, [Ray.by_value, BoundingBox.by_value], RayCollision.by_value],

    # GetRayCollisionMesh : Get collision info between ray and mesh
    # @param ray [Ray]
    # @param mesh [Mesh]
    # @param transform [Matrix]
    # @return [RayCollision]
    [:GetRayCollisionMesh, :GetRayCollisionMesh, [Ray.by_value, Mesh.by_value, Matrix.by_value], RayCollision.by_value],

    # GetRayCollisionTriangle : Get collision info between ray and triangle
    # @param ray [Ray]
    # @param p1 [Vector3]
    # @param p2 [Vector3]
    # @param p3 [Vector3]
    # @return [RayCollision]
    [:GetRayCollisionTriangle, :GetRayCollisionTriangle, [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value], RayCollision.by_value],

    # GetRayCollisionQuad : Get collision info between ray and quad
    # @param ray [Ray]
    # @param p1 [Vector3]
    # @param p2 [Vector3]
    # @param p3 [Vector3]
    # @param p4 [Vector3]
    # @return [RayCollision]
    [:GetRayCollisionQuad, :GetRayCollisionQuad, [Ray.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value], RayCollision.by_value],

    # InitAudioDevice : Initialize audio device and context
    # @return [void]
    [:InitAudioDevice, :InitAudioDevice, [], :void],

    # CloseAudioDevice : Close the audio device and context
    # @return [void]
    [:CloseAudioDevice, :CloseAudioDevice, [], :void],

    # IsAudioDeviceReady : Check if audio device has been initialized successfully
    # @return [bool]
    [:IsAudioDeviceReady, :IsAudioDeviceReady, [], :bool],

    # SetMasterVolume : Set master volume (listener)
    # @param volume [float]
    # @return [void]
    [:SetMasterVolume, :SetMasterVolume, [:float], :void],

    # LoadWave : Load wave data from file
    # @param fileName [const char *]
    # @return [Wave]
    [:LoadWave, :LoadWave, [:pointer], Wave.by_value],

    # LoadWaveFromMemory : Load wave from memory buffer, fileType refers to extension: i.e. '.wav'
    # @param fileType [const char *]
    # @param fileData [const unsigned char *]
    # @param dataSize [int]
    # @return [Wave]
    [:LoadWaveFromMemory, :LoadWaveFromMemory, [:pointer, :pointer, :int], Wave.by_value],

    # IsWaveReady : Checks if wave data is ready
    # @param wave [Wave]
    # @return [bool]
    [:IsWaveReady, :IsWaveReady, [Wave.by_value], :bool],

    # LoadSound : Load sound from file
    # @param fileName [const char *]
    # @return [Sound]
    [:LoadSound, :LoadSound, [:pointer], Sound.by_value],

    # LoadSoundFromWave : Load sound from wave data
    # @param wave [Wave]
    # @return [Sound]
    [:LoadSoundFromWave, :LoadSoundFromWave, [Wave.by_value], Sound.by_value],

    # IsSoundReady : Checks if a sound is ready
    # @param sound [Sound]
    # @return [bool]
    [:IsSoundReady, :IsSoundReady, [Sound.by_value], :bool],

    # UpdateSound : Update sound buffer with new data
    # @param sound [Sound]
    # @param data [const void *]
    # @param sampleCount [int]
    # @return [void]
    [:UpdateSound, :UpdateSound, [Sound.by_value, :pointer, :int], :void],

    # UnloadWave : Unload wave data
    # @param wave [Wave]
    # @return [void]
    [:UnloadWave, :UnloadWave, [Wave.by_value], :void],

    # UnloadSound : Unload sound
    # @param sound [Sound]
    # @return [void]
    [:UnloadSound, :UnloadSound, [Sound.by_value], :void],

    # ExportWave : Export wave data to file, returns true on success
    # @param wave [Wave]
    # @param fileName [const char *]
    # @return [bool]
    [:ExportWave, :ExportWave, [Wave.by_value, :pointer], :bool],

    # ExportWaveAsCode : Export wave sample data to code (.h), returns true on success
    # @param wave [Wave]
    # @param fileName [const char *]
    # @return [bool]
    [:ExportWaveAsCode, :ExportWaveAsCode, [Wave.by_value, :pointer], :bool],

    # PlaySound : Play a sound
    # @param sound [Sound]
    # @return [void]
    [:PlaySound, :PlaySound, [Sound.by_value], :void],

    # StopSound : Stop playing a sound
    # @param sound [Sound]
    # @return [void]
    [:StopSound, :StopSound, [Sound.by_value], :void],

    # PauseSound : Pause a sound
    # @param sound [Sound]
    # @return [void]
    [:PauseSound, :PauseSound, [Sound.by_value], :void],

    # ResumeSound : Resume a paused sound
    # @param sound [Sound]
    # @return [void]
    [:ResumeSound, :ResumeSound, [Sound.by_value], :void],

    # IsSoundPlaying : Check if a sound is currently playing
    # @param sound [Sound]
    # @return [bool]
    [:IsSoundPlaying, :IsSoundPlaying, [Sound.by_value], :bool],

    # SetSoundVolume : Set volume for a sound (1.0 is max level)
    # @param sound [Sound]
    # @param volume [float]
    # @return [void]
    [:SetSoundVolume, :SetSoundVolume, [Sound.by_value, :float], :void],

    # SetSoundPitch : Set pitch for a sound (1.0 is base level)
    # @param sound [Sound]
    # @param pitch [float]
    # @return [void]
    [:SetSoundPitch, :SetSoundPitch, [Sound.by_value, :float], :void],

    # SetSoundPan : Set pan for a sound (0.5 is center)
    # @param sound [Sound]
    # @param pan [float]
    # @return [void]
    [:SetSoundPan, :SetSoundPan, [Sound.by_value, :float], :void],

    # WaveCopy : Copy a wave to a new wave
    # @param wave [Wave]
    # @return [Wave]
    [:WaveCopy, :WaveCopy, [Wave.by_value], Wave.by_value],

    # WaveCrop : Crop a wave to defined samples range
    # @param wave [Wave *]
    # @param initSample [int]
    # @param finalSample [int]
    # @return [void]
    [:WaveCrop, :WaveCrop, [:pointer, :int, :int], :void],

    # WaveFormat : Convert wave data to desired format
    # @param wave [Wave *]
    # @param sampleRate [int]
    # @param sampleSize [int]
    # @param channels [int]
    # @return [void]
    [:WaveFormat, :WaveFormat, [:pointer, :int, :int, :int], :void],

    # LoadWaveSamples : Load samples data from wave as a 32bit float data array
    # @param wave [Wave]
    # @return [float *]
    [:LoadWaveSamples, :LoadWaveSamples, [Wave.by_value], :pointer],

    # UnloadWaveSamples : Unload samples data loaded with LoadWaveSamples()
    # @param samples [float *]
    # @return [void]
    [:UnloadWaveSamples, :UnloadWaveSamples, [:pointer], :void],

    # LoadMusicStream : Load music stream from file
    # @param fileName [const char *]
    # @return [Music]
    [:LoadMusicStream, :LoadMusicStream, [:pointer], Music.by_value],

    # LoadMusicStreamFromMemory : Load music stream from data
    # @param fileType [const char *]
    # @param data [const unsigned char *]
    # @param dataSize [int]
    # @return [Music]
    [:LoadMusicStreamFromMemory, :LoadMusicStreamFromMemory, [:pointer, :pointer, :int], Music.by_value],

    # IsMusicReady : Checks if a music stream is ready
    # @param music [Music]
    # @return [bool]
    [:IsMusicReady, :IsMusicReady, [Music.by_value], :bool],

    # UnloadMusicStream : Unload music stream
    # @param music [Music]
    # @return [void]
    [:UnloadMusicStream, :UnloadMusicStream, [Music.by_value], :void],

    # PlayMusicStream : Start music playing
    # @param music [Music]
    # @return [void]
    [:PlayMusicStream, :PlayMusicStream, [Music.by_value], :void],

    # IsMusicStreamPlaying : Check if music is playing
    # @param music [Music]
    # @return [bool]
    [:IsMusicStreamPlaying, :IsMusicStreamPlaying, [Music.by_value], :bool],

    # UpdateMusicStream : Updates buffers for music streaming
    # @param music [Music]
    # @return [void]
    [:UpdateMusicStream, :UpdateMusicStream, [Music.by_value], :void],

    # StopMusicStream : Stop music playing
    # @param music [Music]
    # @return [void]
    [:StopMusicStream, :StopMusicStream, [Music.by_value], :void],

    # PauseMusicStream : Pause music playing
    # @param music [Music]
    # @return [void]
    [:PauseMusicStream, :PauseMusicStream, [Music.by_value], :void],

    # ResumeMusicStream : Resume playing paused music
    # @param music [Music]
    # @return [void]
    [:ResumeMusicStream, :ResumeMusicStream, [Music.by_value], :void],

    # SeekMusicStream : Seek music to a position (in seconds)
    # @param music [Music]
    # @param position [float]
    # @return [void]
    [:SeekMusicStream, :SeekMusicStream, [Music.by_value, :float], :void],

    # SetMusicVolume : Set volume for music (1.0 is max level)
    # @param music [Music]
    # @param volume [float]
    # @return [void]
    [:SetMusicVolume, :SetMusicVolume, [Music.by_value, :float], :void],

    # SetMusicPitch : Set pitch for a music (1.0 is base level)
    # @param music [Music]
    # @param pitch [float]
    # @return [void]
    [:SetMusicPitch, :SetMusicPitch, [Music.by_value, :float], :void],

    # SetMusicPan : Set pan for a music (0.5 is center)
    # @param music [Music]
    # @param pan [float]
    # @return [void]
    [:SetMusicPan, :SetMusicPan, [Music.by_value, :float], :void],

    # GetMusicTimeLength : Get music time length (in seconds)
    # @param music [Music]
    # @return [float]
    [:GetMusicTimeLength, :GetMusicTimeLength, [Music.by_value], :float],

    # GetMusicTimePlayed : Get current music time played (in seconds)
    # @param music [Music]
    # @return [float]
    [:GetMusicTimePlayed, :GetMusicTimePlayed, [Music.by_value], :float],

    # LoadAudioStream : Load audio stream (to stream raw audio pcm data)
    # @param sampleRate [unsigned int]
    # @param sampleSize [unsigned int]
    # @param channels [unsigned int]
    # @return [AudioStream]
    [:LoadAudioStream, :LoadAudioStream, [:uint, :uint, :uint], AudioStream.by_value],

    # IsAudioStreamReady : Checks if an audio stream is ready
    # @param stream [AudioStream]
    # @return [bool]
    [:IsAudioStreamReady, :IsAudioStreamReady, [AudioStream.by_value], :bool],

    # UnloadAudioStream : Unload audio stream and free memory
    # @param stream [AudioStream]
    # @return [void]
    [:UnloadAudioStream, :UnloadAudioStream, [AudioStream.by_value], :void],

    # UpdateAudioStream : Update audio stream buffers with data
    # @param stream [AudioStream]
    # @param data [const void *]
    # @param frameCount [int]
    # @return [void]
    [:UpdateAudioStream, :UpdateAudioStream, [AudioStream.by_value, :pointer, :int], :void],

    # IsAudioStreamProcessed : Check if any audio stream buffers requires refill
    # @param stream [AudioStream]
    # @return [bool]
    [:IsAudioStreamProcessed, :IsAudioStreamProcessed, [AudioStream.by_value], :bool],

    # PlayAudioStream : Play audio stream
    # @param stream [AudioStream]
    # @return [void]
    [:PlayAudioStream, :PlayAudioStream, [AudioStream.by_value], :void],

    # PauseAudioStream : Pause audio stream
    # @param stream [AudioStream]
    # @return [void]
    [:PauseAudioStream, :PauseAudioStream, [AudioStream.by_value], :void],

    # ResumeAudioStream : Resume audio stream
    # @param stream [AudioStream]
    # @return [void]
    [:ResumeAudioStream, :ResumeAudioStream, [AudioStream.by_value], :void],

    # IsAudioStreamPlaying : Check if audio stream is playing
    # @param stream [AudioStream]
    # @return [bool]
    [:IsAudioStreamPlaying, :IsAudioStreamPlaying, [AudioStream.by_value], :bool],

    # StopAudioStream : Stop audio stream
    # @param stream [AudioStream]
    # @return [void]
    [:StopAudioStream, :StopAudioStream, [AudioStream.by_value], :void],

    # SetAudioStreamVolume : Set volume for audio stream (1.0 is max level)
    # @param stream [AudioStream]
    # @param volume [float]
    # @return [void]
    [:SetAudioStreamVolume, :SetAudioStreamVolume, [AudioStream.by_value, :float], :void],

    # SetAudioStreamPitch : Set pitch for audio stream (1.0 is base level)
    # @param stream [AudioStream]
    # @param pitch [float]
    # @return [void]
    [:SetAudioStreamPitch, :SetAudioStreamPitch, [AudioStream.by_value, :float], :void],

    # SetAudioStreamPan : Set pan for audio stream (0.5 is centered)
    # @param stream [AudioStream]
    # @param pan [float]
    # @return [void]
    [:SetAudioStreamPan, :SetAudioStreamPan, [AudioStream.by_value, :float], :void],

    # SetAudioStreamBufferSizeDefault : Default size for new audio streams
    # @param size [int]
    # @return [void]
    [:SetAudioStreamBufferSizeDefault, :SetAudioStreamBufferSizeDefault, [:int], :void],

    # SetAudioStreamCallback : Audio thread callback to request new data
    # @param stream [AudioStream]
    # @param callback [AudioCallback]
    # @return [void]
    [:SetAudioStreamCallback, :SetAudioStreamCallback, [AudioStream.by_value, :AudioCallback], :void],

    # AttachAudioStreamProcessor : Attach audio stream processor to stream
    # @param stream [AudioStream]
    # @param processor [AudioCallback]
    # @return [void]
    [:AttachAudioStreamProcessor, :AttachAudioStreamProcessor, [AudioStream.by_value, :AudioCallback], :void],

    # DetachAudioStreamProcessor : Detach audio stream processor from stream
    # @param stream [AudioStream]
    # @param processor [AudioCallback]
    # @return [void]
    [:DetachAudioStreamProcessor, :DetachAudioStreamProcessor, [AudioStream.by_value, :AudioCallback], :void],

    # AttachAudioMixedProcessor : Attach audio stream processor to the entire audio pipeline
    # @param processor [AudioCallback]
    # @return [void]
    [:AttachAudioMixedProcessor, :AttachAudioMixedProcessor, [:AudioCallback], :void],

    # DetachAudioMixedProcessor : Detach audio stream processor from the entire audio pipeline
    # @param processor [AudioCallback]
    # @return [void]
    [:DetachAudioMixedProcessor, :DetachAudioMixedProcessor, [:AudioCallback], :void],
  ]
  entries.each do |entry|
    attach_function entry[0], entry[1], entry[2], entry[3]
  rescue FFI::NotFoundError => e
    warn "[Warning] Failed to import #{entry[0]} (#{e})."
  end
end

.setup_raymath_symbolsObject

Function



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
# File 'lib/raymath.rb', line 41

def self.setup_raymath_symbols
  entries = [

    # Clamp
    # @param value [float]
    # @param min [float]
    # @param max [float]
    # @return [float]
    [:Clamp, :Clamp, [:float, :float, :float], :float],

    # Lerp
    # @param start [float]
    # @param end [float]
    # @param amount [float]
    # @return [float]
    [:Lerp, :Lerp, [:float, :float, :float], :float],

    # Normalize
    # @param value [float]
    # @param start [float]
    # @param end [float]
    # @return [float]
    [:Normalize, :Normalize, [:float, :float, :float], :float],

    # Remap
    # @param value [float]
    # @param inputStart [float]
    # @param inputEnd [float]
    # @param outputStart [float]
    # @param outputEnd [float]
    # @return [float]
    [:Remap, :Remap, [:float, :float, :float, :float, :float], :float],

    # Wrap
    # @param value [float]
    # @param min [float]
    # @param max [float]
    # @return [float]
    [:Wrap, :Wrap, [:float, :float, :float], :float],

    # FloatEquals
    # @param x [float]
    # @param y [float]
    # @return [int]
    [:FloatEquals, :FloatEquals, [:float, :float], :int],

    # Vector2Zero
    # @return [Vector2]
    [:Vector2Zero, :Vector2Zero, [], Vector2.by_value],

    # Vector2One
    # @return [Vector2]
    [:Vector2One, :Vector2One, [], Vector2.by_value],

    # Vector2Add
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @return [Vector2]
    [:Vector2Add, :Vector2Add, [Vector2.by_value, Vector2.by_value], Vector2.by_value],

    # Vector2AddValue
    # @param v [Vector2]
    # @param add [float]
    # @return [Vector2]
    [:Vector2AddValue, :Vector2AddValue, [Vector2.by_value, :float], Vector2.by_value],

    # Vector2Subtract
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @return [Vector2]
    [:Vector2Subtract, :Vector2Subtract, [Vector2.by_value, Vector2.by_value], Vector2.by_value],

    # Vector2SubtractValue
    # @param v [Vector2]
    # @param sub [float]
    # @return [Vector2]
    [:Vector2SubtractValue, :Vector2SubtractValue, [Vector2.by_value, :float], Vector2.by_value],

    # Vector2Length
    # @param v [Vector2]
    # @return [float]
    [:Vector2Length, :Vector2Length, [Vector2.by_value], :float],

    # Vector2LengthSqr
    # @param v [Vector2]
    # @return [float]
    [:Vector2LengthSqr, :Vector2LengthSqr, [Vector2.by_value], :float],

    # Vector2DotProduct
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @return [float]
    [:Vector2DotProduct, :Vector2DotProduct, [Vector2.by_value, Vector2.by_value], :float],

    # Vector2Distance
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @return [float]
    [:Vector2Distance, :Vector2Distance, [Vector2.by_value, Vector2.by_value], :float],

    # Vector2DistanceSqr
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @return [float]
    [:Vector2DistanceSqr, :Vector2DistanceSqr, [Vector2.by_value, Vector2.by_value], :float],

    # Vector2Angle
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @return [float]
    [:Vector2Angle, :Vector2Angle, [Vector2.by_value, Vector2.by_value], :float],

    # Vector2LineAngle
    # @param start [Vector2]
    # @param end [Vector2]
    # @return [float]
    [:Vector2LineAngle, :Vector2LineAngle, [Vector2.by_value, Vector2.by_value], :float],

    # Vector2Scale
    # @param v [Vector2]
    # @param scale [float]
    # @return [Vector2]
    [:Vector2Scale, :Vector2Scale, [Vector2.by_value, :float], Vector2.by_value],

    # Vector2Multiply
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @return [Vector2]
    [:Vector2Multiply, :Vector2Multiply, [Vector2.by_value, Vector2.by_value], Vector2.by_value],

    # Vector2Negate
    # @param v [Vector2]
    # @return [Vector2]
    [:Vector2Negate, :Vector2Negate, [Vector2.by_value], Vector2.by_value],

    # Vector2Divide
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @return [Vector2]
    [:Vector2Divide, :Vector2Divide, [Vector2.by_value, Vector2.by_value], Vector2.by_value],

    # Vector2Normalize
    # @param v [Vector2]
    # @return [Vector2]
    [:Vector2Normalize, :Vector2Normalize, [Vector2.by_value], Vector2.by_value],

    # Vector2Transform
    # @param v [Vector2]
    # @param mat [Matrix]
    # @return [Vector2]
    [:Vector2Transform, :Vector2Transform, [Vector2.by_value, Matrix.by_value], Vector2.by_value],

    # Vector2Lerp
    # @param v1 [Vector2]
    # @param v2 [Vector2]
    # @param amount [float]
    # @return [Vector2]
    [:Vector2Lerp, :Vector2Lerp, [Vector2.by_value, Vector2.by_value, :float], Vector2.by_value],

    # Vector2Reflect
    # @param v [Vector2]
    # @param normal [Vector2]
    # @return [Vector2]
    [:Vector2Reflect, :Vector2Reflect, [Vector2.by_value, Vector2.by_value], Vector2.by_value],

    # Vector2Rotate
    # @param v [Vector2]
    # @param angle [float]
    # @return [Vector2]
    [:Vector2Rotate, :Vector2Rotate, [Vector2.by_value, :float], Vector2.by_value],

    # Vector2MoveTowards
    # @param v [Vector2]
    # @param target [Vector2]
    # @param maxDistance [float]
    # @return [Vector2]
    [:Vector2MoveTowards, :Vector2MoveTowards, [Vector2.by_value, Vector2.by_value, :float], Vector2.by_value],

    # Vector2Invert
    # @param v [Vector2]
    # @return [Vector2]
    [:Vector2Invert, :Vector2Invert, [Vector2.by_value], Vector2.by_value],

    # Vector2Clamp
    # @param v [Vector2]
    # @param min [Vector2]
    # @param max [Vector2]
    # @return [Vector2]
    [:Vector2Clamp, :Vector2Clamp, [Vector2.by_value, Vector2.by_value, Vector2.by_value], Vector2.by_value],

    # Vector2ClampValue
    # @param v [Vector2]
    # @param min [float]
    # @param max [float]
    # @return [Vector2]
    [:Vector2ClampValue, :Vector2ClampValue, [Vector2.by_value, :float, :float], Vector2.by_value],

    # Vector2Equals
    # @param p [Vector2]
    # @param q [Vector2]
    # @return [int]
    [:Vector2Equals, :Vector2Equals, [Vector2.by_value, Vector2.by_value], :int],

    # Vector3Zero
    # @return [Vector3]
    [:Vector3Zero, :Vector3Zero, [], Vector3.by_value],

    # Vector3One
    # @return [Vector3]
    [:Vector3One, :Vector3One, [], Vector3.by_value],

    # Vector3Add
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [Vector3]
    [:Vector3Add, :Vector3Add, [Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3AddValue
    # @param v [Vector3]
    # @param add [float]
    # @return [Vector3]
    [:Vector3AddValue, :Vector3AddValue, [Vector3.by_value, :float], Vector3.by_value],

    # Vector3Subtract
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [Vector3]
    [:Vector3Subtract, :Vector3Subtract, [Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3SubtractValue
    # @param v [Vector3]
    # @param sub [float]
    # @return [Vector3]
    [:Vector3SubtractValue, :Vector3SubtractValue, [Vector3.by_value, :float], Vector3.by_value],

    # Vector3Scale
    # @param v [Vector3]
    # @param scalar [float]
    # @return [Vector3]
    [:Vector3Scale, :Vector3Scale, [Vector3.by_value, :float], Vector3.by_value],

    # Vector3Multiply
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [Vector3]
    [:Vector3Multiply, :Vector3Multiply, [Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3CrossProduct
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [Vector3]
    [:Vector3CrossProduct, :Vector3CrossProduct, [Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3Perpendicular
    # @param v [Vector3]
    # @return [Vector3]
    [:Vector3Perpendicular, :Vector3Perpendicular, [Vector3.by_value], Vector3.by_value],

    # Vector3Length
    # @param v [const Vector3]
    # @return [float]
    [:Vector3Length, :Vector3Length, [Vector3.by_value], :float],

    # Vector3LengthSqr
    # @param v [const Vector3]
    # @return [float]
    [:Vector3LengthSqr, :Vector3LengthSqr, [Vector3.by_value], :float],

    # Vector3DotProduct
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [float]
    [:Vector3DotProduct, :Vector3DotProduct, [Vector3.by_value, Vector3.by_value], :float],

    # Vector3Distance
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [float]
    [:Vector3Distance, :Vector3Distance, [Vector3.by_value, Vector3.by_value], :float],

    # Vector3DistanceSqr
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [float]
    [:Vector3DistanceSqr, :Vector3DistanceSqr, [Vector3.by_value, Vector3.by_value], :float],

    # Vector3Angle
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [float]
    [:Vector3Angle, :Vector3Angle, [Vector3.by_value, Vector3.by_value], :float],

    # Vector3Negate
    # @param v [Vector3]
    # @return [Vector3]
    [:Vector3Negate, :Vector3Negate, [Vector3.by_value], Vector3.by_value],

    # Vector3Divide
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [Vector3]
    [:Vector3Divide, :Vector3Divide, [Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3Normalize
    # @param v [Vector3]
    # @return [Vector3]
    [:Vector3Normalize, :Vector3Normalize, [Vector3.by_value], Vector3.by_value],

    # Vector3OrthoNormalize
    # @param v1 [Vector3 *]
    # @param v2 [Vector3 *]
    # @return [void]
    [:Vector3OrthoNormalize, :Vector3OrthoNormalize, [:pointer, :pointer], :void],

    # Vector3Transform
    # @param v [Vector3]
    # @param mat [Matrix]
    # @return [Vector3]
    [:Vector3Transform, :Vector3Transform, [Vector3.by_value, Matrix.by_value], Vector3.by_value],

    # Vector3RotateByQuaternion
    # @param v [Vector3]
    # @param q [Quaternion]
    # @return [Vector3]
    [:Vector3RotateByQuaternion, :Vector3RotateByQuaternion, [Vector3.by_value, Quaternion.by_value], Vector3.by_value],

    # Vector3RotateByAxisAngle
    # @param v [Vector3]
    # @param axis [Vector3]
    # @param angle [float]
    # @return [Vector3]
    [:Vector3RotateByAxisAngle, :Vector3RotateByAxisAngle, [Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],

    # Vector3Lerp
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @param amount [float]
    # @return [Vector3]
    [:Vector3Lerp, :Vector3Lerp, [Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],

    # Vector3Reflect
    # @param v [Vector3]
    # @param normal [Vector3]
    # @return [Vector3]
    [:Vector3Reflect, :Vector3Reflect, [Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3Min
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [Vector3]
    [:Vector3Min, :Vector3Min, [Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3Max
    # @param v1 [Vector3]
    # @param v2 [Vector3]
    # @return [Vector3]
    [:Vector3Max, :Vector3Max, [Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3Barycenter
    # @param p [Vector3]
    # @param a [Vector3]
    # @param b [Vector3]
    # @param c [Vector3]
    # @return [Vector3]
    [:Vector3Barycenter, :Vector3Barycenter, [Vector3.by_value, Vector3.by_value, Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3Unproject
    # @param source [Vector3]
    # @param projection [Matrix]
    # @param view [Matrix]
    # @return [Vector3]
    [:Vector3Unproject, :Vector3Unproject, [Vector3.by_value, Matrix.by_value, Matrix.by_value], Vector3.by_value],

    # Vector3ToFloatV
    # @param v [Vector3]
    # @return [float3]
    [:Vector3ToFloatV, :Vector3ToFloatV, [Vector3.by_value], Float3.by_value],

    # Vector3Invert
    # @param v [Vector3]
    # @return [Vector3]
    [:Vector3Invert, :Vector3Invert, [Vector3.by_value], Vector3.by_value],

    # Vector3Clamp
    # @param v [Vector3]
    # @param min [Vector3]
    # @param max [Vector3]
    # @return [Vector3]
    [:Vector3Clamp, :Vector3Clamp, [Vector3.by_value, Vector3.by_value, Vector3.by_value], Vector3.by_value],

    # Vector3ClampValue
    # @param v [Vector3]
    # @param min [float]
    # @param max [float]
    # @return [Vector3]
    [:Vector3ClampValue, :Vector3ClampValue, [Vector3.by_value, :float, :float], Vector3.by_value],

    # Vector3Equals
    # @param p [Vector3]
    # @param q [Vector3]
    # @return [int]
    [:Vector3Equals, :Vector3Equals, [Vector3.by_value, Vector3.by_value], :int],

    # Vector3Refract
    # @param v [Vector3]
    # @param n [Vector3]
    # @param r [float]
    # @return [Vector3]
    [:Vector3Refract, :Vector3Refract, [Vector3.by_value, Vector3.by_value, :float], Vector3.by_value],

    # MatrixDeterminant
    # @param mat [Matrix]
    # @return [float]
    [:MatrixDeterminant, :MatrixDeterminant, [Matrix.by_value], :float],

    # MatrixTrace
    # @param mat [Matrix]
    # @return [float]
    [:MatrixTrace, :MatrixTrace, [Matrix.by_value], :float],

    # MatrixTranspose
    # @param mat [Matrix]
    # @return [Matrix]
    [:MatrixTranspose, :MatrixTranspose, [Matrix.by_value], Matrix.by_value],

    # MatrixInvert
    # @param mat [Matrix]
    # @return [Matrix]
    [:MatrixInvert, :MatrixInvert, [Matrix.by_value], Matrix.by_value],

    # MatrixIdentity
    # @return [Matrix]
    [:MatrixIdentity, :MatrixIdentity, [], Matrix.by_value],

    # MatrixAdd
    # @param left [Matrix]
    # @param right [Matrix]
    # @return [Matrix]
    [:MatrixAdd, :MatrixAdd, [Matrix.by_value, Matrix.by_value], Matrix.by_value],

    # MatrixSubtract
    # @param left [Matrix]
    # @param right [Matrix]
    # @return [Matrix]
    [:MatrixSubtract, :MatrixSubtract, [Matrix.by_value, Matrix.by_value], Matrix.by_value],

    # MatrixMultiply
    # @param left [Matrix]
    # @param right [Matrix]
    # @return [Matrix]
    [:MatrixMultiply, :MatrixMultiply, [Matrix.by_value, Matrix.by_value], Matrix.by_value],

    # MatrixTranslate
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @return [Matrix]
    [:MatrixTranslate, :MatrixTranslate, [:float, :float, :float], Matrix.by_value],

    # MatrixRotate
    # @param axis [Vector3]
    # @param angle [float]
    # @return [Matrix]
    [:MatrixRotate, :MatrixRotate, [Vector3.by_value, :float], Matrix.by_value],

    # MatrixRotateX
    # @param angle [float]
    # @return [Matrix]
    [:MatrixRotateX, :MatrixRotateX, [:float], Matrix.by_value],

    # MatrixRotateY
    # @param angle [float]
    # @return [Matrix]
    [:MatrixRotateY, :MatrixRotateY, [:float], Matrix.by_value],

    # MatrixRotateZ
    # @param angle [float]
    # @return [Matrix]
    [:MatrixRotateZ, :MatrixRotateZ, [:float], Matrix.by_value],

    # MatrixRotateXYZ
    # @param angle [Vector3]
    # @return [Matrix]
    [:MatrixRotateXYZ, :MatrixRotateXYZ, [Vector3.by_value], Matrix.by_value],

    # MatrixRotateZYX
    # @param angle [Vector3]
    # @return [Matrix]
    [:MatrixRotateZYX, :MatrixRotateZYX, [Vector3.by_value], Matrix.by_value],

    # MatrixScale
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @return [Matrix]
    [:MatrixScale, :MatrixScale, [:float, :float, :float], Matrix.by_value],

    # MatrixFrustum
    # @param left [double]
    # @param right [double]
    # @param bottom [double]
    # @param top [double]
    # @param near [double]
    # @param far [double]
    # @return [Matrix]
    [:MatrixFrustum, :MatrixFrustum, [:double, :double, :double, :double, :double, :double], Matrix.by_value],

    # MatrixPerspective
    # @param fovy [double]
    # @param aspect [double]
    # @param near [double]
    # @param far [double]
    # @return [Matrix]
    [:MatrixPerspective, :MatrixPerspective, [:double, :double, :double, :double], Matrix.by_value],

    # MatrixOrtho
    # @param left [double]
    # @param right [double]
    # @param bottom [double]
    # @param top [double]
    # @param near [double]
    # @param far [double]
    # @return [Matrix]
    [:MatrixOrtho, :MatrixOrtho, [:double, :double, :double, :double, :double, :double], Matrix.by_value],

    # MatrixLookAt
    # @param eye [Vector3]
    # @param target [Vector3]
    # @param up [Vector3]
    # @return [Matrix]
    [:MatrixLookAt, :MatrixLookAt, [Vector3.by_value, Vector3.by_value, Vector3.by_value], Matrix.by_value],

    # MatrixToFloatV
    # @param mat [Matrix]
    # @return [float16]
    [:MatrixToFloatV, :MatrixToFloatV, [Matrix.by_value], Float16.by_value],

    # QuaternionAdd
    # @param q1 [Quaternion]
    # @param q2 [Quaternion]
    # @return [Quaternion]
    [:QuaternionAdd, :QuaternionAdd, [Quaternion.by_value, Quaternion.by_value], Quaternion.by_value],

    # QuaternionAddValue
    # @param q [Quaternion]
    # @param add [float]
    # @return [Quaternion]
    [:QuaternionAddValue, :QuaternionAddValue, [Quaternion.by_value, :float], Quaternion.by_value],

    # QuaternionSubtract
    # @param q1 [Quaternion]
    # @param q2 [Quaternion]
    # @return [Quaternion]
    [:QuaternionSubtract, :QuaternionSubtract, [Quaternion.by_value, Quaternion.by_value], Quaternion.by_value],

    # QuaternionSubtractValue
    # @param q [Quaternion]
    # @param sub [float]
    # @return [Quaternion]
    [:QuaternionSubtractValue, :QuaternionSubtractValue, [Quaternion.by_value, :float], Quaternion.by_value],

    # QuaternionIdentity
    # @return [Quaternion]
    [:QuaternionIdentity, :QuaternionIdentity, [], Quaternion.by_value],

    # QuaternionLength
    # @param q [Quaternion]
    # @return [float]
    [:QuaternionLength, :QuaternionLength, [Quaternion.by_value], :float],

    # QuaternionNormalize
    # @param q [Quaternion]
    # @return [Quaternion]
    [:QuaternionNormalize, :QuaternionNormalize, [Quaternion.by_value], Quaternion.by_value],

    # QuaternionInvert
    # @param q [Quaternion]
    # @return [Quaternion]
    [:QuaternionInvert, :QuaternionInvert, [Quaternion.by_value], Quaternion.by_value],

    # QuaternionMultiply
    # @param q1 [Quaternion]
    # @param q2 [Quaternion]
    # @return [Quaternion]
    [:QuaternionMultiply, :QuaternionMultiply, [Quaternion.by_value, Quaternion.by_value], Quaternion.by_value],

    # QuaternionScale
    # @param q [Quaternion]
    # @param mul [float]
    # @return [Quaternion]
    [:QuaternionScale, :QuaternionScale, [Quaternion.by_value, :float], Quaternion.by_value],

    # QuaternionDivide
    # @param q1 [Quaternion]
    # @param q2 [Quaternion]
    # @return [Quaternion]
    [:QuaternionDivide, :QuaternionDivide, [Quaternion.by_value, Quaternion.by_value], Quaternion.by_value],

    # QuaternionLerp
    # @param q1 [Quaternion]
    # @param q2 [Quaternion]
    # @param amount [float]
    # @return [Quaternion]
    [:QuaternionLerp, :QuaternionLerp, [Quaternion.by_value, Quaternion.by_value, :float], Quaternion.by_value],

    # QuaternionNlerp
    # @param q1 [Quaternion]
    # @param q2 [Quaternion]
    # @param amount [float]
    # @return [Quaternion]
    [:QuaternionNlerp, :QuaternionNlerp, [Quaternion.by_value, Quaternion.by_value, :float], Quaternion.by_value],

    # QuaternionSlerp
    # @param q1 [Quaternion]
    # @param q2 [Quaternion]
    # @param amount [float]
    # @return [Quaternion]
    [:QuaternionSlerp, :QuaternionSlerp, [Quaternion.by_value, Quaternion.by_value, :float], Quaternion.by_value],

    # QuaternionFromVector3ToVector3
    # @param from [Vector3]
    # @param to [Vector3]
    # @return [Quaternion]
    [:QuaternionFromVector3ToVector3, :QuaternionFromVector3ToVector3, [Vector3.by_value, Vector3.by_value], Quaternion.by_value],

    # QuaternionFromMatrix
    # @param mat [Matrix]
    # @return [Quaternion]
    [:QuaternionFromMatrix, :QuaternionFromMatrix, [Matrix.by_value], Quaternion.by_value],

    # QuaternionToMatrix
    # @param q [Quaternion]
    # @return [Matrix]
    [:QuaternionToMatrix, :QuaternionToMatrix, [Quaternion.by_value], Matrix.by_value],

    # QuaternionFromAxisAngle
    # @param axis [Vector3]
    # @param angle [float]
    # @return [Quaternion]
    [:QuaternionFromAxisAngle, :QuaternionFromAxisAngle, [Vector3.by_value, :float], Quaternion.by_value],

    # QuaternionToAxisAngle
    # @param q [Quaternion]
    # @param outAxis [Vector3 *]
    # @param outAngle [float *]
    # @return [void]
    [:QuaternionToAxisAngle, :QuaternionToAxisAngle, [Quaternion.by_value, :pointer, :pointer], :void],

    # QuaternionFromEuler
    # @param pitch [float]
    # @param yaw [float]
    # @param roll [float]
    # @return [Quaternion]
    [:QuaternionFromEuler, :QuaternionFromEuler, [:float, :float, :float], Quaternion.by_value],

    # QuaternionToEuler
    # @param q [Quaternion]
    # @return [Vector3]
    [:QuaternionToEuler, :QuaternionToEuler, [Quaternion.by_value], Vector3.by_value],

    # QuaternionTransform
    # @param q [Quaternion]
    # @param mat [Matrix]
    # @return [Quaternion]
    [:QuaternionTransform, :QuaternionTransform, [Quaternion.by_value, Matrix.by_value], Quaternion.by_value],

    # QuaternionEquals
    # @param p [Quaternion]
    # @param q [Quaternion]
    # @return [int]
    [:QuaternionEquals, :QuaternionEquals, [Quaternion.by_value, Quaternion.by_value], :int],
  ]
  entries.each do |entry|
    attach_function entry[0], entry[1], entry[2], entry[3]
  rescue FFI::NotFoundError => e
    warn "[Warning] Failed to import #{entry[0]} (#{e})."
  end
end

.setup_rcamera_symbolsObject

Function



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/rcamera.rb', line 22

def self.setup_rcamera_symbols
  entries = [

    # GetCameraForward
    # @param camera [Camera *]
    # @return [Vector3]
    [:GetCameraForward, :GetCameraForward, [:pointer], Vector3.by_value],

    # GetCameraUp
    # @param camera [Camera *]
    # @return [Vector3]
    [:GetCameraUp, :GetCameraUp, [:pointer], Vector3.by_value],

    # GetCameraRight
    # @param camera [Camera *]
    # @return [Vector3]
    [:GetCameraRight, :GetCameraRight, [:pointer], Vector3.by_value],

    # CameraMoveForward
    # @param camera [Camera *]
    # @param distance [float]
    # @param moveInWorldPlane [bool]
    # @return [void]
    [:CameraMoveForward, :CameraMoveForward, [:pointer, :float, :bool], :void],

    # CameraMoveUp
    # @param camera [Camera *]
    # @param distance [float]
    # @return [void]
    [:CameraMoveUp, :CameraMoveUp, [:pointer, :float], :void],

    # CameraMoveRight
    # @param camera [Camera *]
    # @param distance [float]
    # @param moveInWorldPlane [bool]
    # @return [void]
    [:CameraMoveRight, :CameraMoveRight, [:pointer, :float, :bool], :void],

    # CameraMoveToTarget
    # @param camera [Camera *]
    # @param delta [float]
    # @return [void]
    [:CameraMoveToTarget, :CameraMoveToTarget, [:pointer, :float], :void],

    # CameraYaw
    # @param camera [Camera *]
    # @param angle [float]
    # @param rotateAroundTarget [bool]
    # @return [void]
    [:CameraYaw, :CameraYaw, [:pointer, :float, :bool], :void],

    # CameraPitch
    # @param camera [Camera *]
    # @param angle [float]
    # @param lockView [bool]
    # @param rotateAroundTarget [bool]
    # @param rotateUp [bool]
    # @return [void]
    [:CameraPitch, :CameraPitch, [:pointer, :float, :bool, :bool, :bool], :void],

    # CameraRoll
    # @param camera [Camera *]
    # @param angle [float]
    # @return [void]
    [:CameraRoll, :CameraRoll, [:pointer, :float], :void],

    # GetCameraViewMatrix
    # @param camera [Camera *]
    # @return [Matrix]
    [:GetCameraViewMatrix, :GetCameraViewMatrix, [:pointer], :int],

    # GetCameraProjectionMatrix
    # @param camera [Camera*]
    # @param aspect [float]
    # @return [Matrix]
    [:GetCameraProjectionMatrix, :GetCameraProjectionMatrix, [:pointer, :float], :int],
  ]
  entries.each do |entry|
    attach_function entry[0], entry[1], entry[2], entry[3]
  rescue FFI::NotFoundError => e
    warn "[Warning] Failed to import #{entry[0]} (#{e})."
  end
end

.setup_rlgl_symbolsObject

Function



312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
# File 'lib/rlgl.rb', line 312

def self.setup_rlgl_symbols
  entries = [

    # rlMatrixMode : Choose the current matrix to be transformed
    # @param mode [int]
    # @return [void]
    [:rlMatrixMode, :rlMatrixMode, [:int], :void],

    # rlPushMatrix : Push the current matrix to stack
    # @return [void]
    [:rlPushMatrix, :rlPushMatrix, [], :void],

    # rlPopMatrix : Pop latest inserted matrix from stack
    # @return [void]
    [:rlPopMatrix, :rlPopMatrix, [], :void],

    # rlLoadIdentity : Reset current matrix to identity matrix
    # @return [void]
    [:rlLoadIdentity, :rlLoadIdentity, [], :void],

    # rlTranslatef : Multiply the current matrix by a translation matrix
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @return [void]
    [:rlTranslatef, :rlTranslatef, [:float, :float, :float], :void],

    # rlRotatef : Multiply the current matrix by a rotation matrix
    # @param angle [float]
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @return [void]
    [:rlRotatef, :rlRotatef, [:float, :float, :float, :float], :void],

    # rlScalef : Multiply the current matrix by a scaling matrix
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @return [void]
    [:rlScalef, :rlScalef, [:float, :float, :float], :void],

    # rlMultMatrixf : Multiply the current matrix by another matrix
    # @param matf [const float *]
    # @return [void]
    [:rlMultMatrixf, :rlMultMatrixf, [:pointer], :void],

    # rlFrustum
    # @param left [double]
    # @param right [double]
    # @param bottom [double]
    # @param top [double]
    # @param znear [double]
    # @param zfar [double]
    # @return [void]
    [:rlFrustum, :rlFrustum, [:double, :double, :double, :double, :double, :double], :void],

    # rlOrtho
    # @param left [double]
    # @param right [double]
    # @param bottom [double]
    # @param top [double]
    # @param znear [double]
    # @param zfar [double]
    # @return [void]
    [:rlOrtho, :rlOrtho, [:double, :double, :double, :double, :double, :double], :void],

    # rlViewport : Set the viewport area
    # @param x [int]
    # @param y [int]
    # @param width [int]
    # @param height [int]
    # @return [void]
    [:rlViewport, :rlViewport, [:int, :int, :int, :int], :void],

    # rlBegin : Initialize drawing mode (how to organize vertex)
    # @param mode [int]
    # @return [void]
    [:rlBegin, :rlBegin, [:int], :void],

    # rlEnd : Finish vertex providing
    # @return [void]
    [:rlEnd, :rlEnd, [], :void],

    # rlVertex2i : Define one vertex (position) - 2 int
    # @param x [int]
    # @param y [int]
    # @return [void]
    [:rlVertex2i, :rlVertex2i, [:int, :int], :void],

    # rlVertex2f : Define one vertex (position) - 2 float
    # @param x [float]
    # @param y [float]
    # @return [void]
    [:rlVertex2f, :rlVertex2f, [:float, :float], :void],

    # rlVertex3f : Define one vertex (position) - 3 float
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @return [void]
    [:rlVertex3f, :rlVertex3f, [:float, :float, :float], :void],

    # rlTexCoord2f : Define one vertex (texture coordinate) - 2 float
    # @param x [float]
    # @param y [float]
    # @return [void]
    [:rlTexCoord2f, :rlTexCoord2f, [:float, :float], :void],

    # rlNormal3f : Define one vertex (normal) - 3 float
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @return [void]
    [:rlNormal3f, :rlNormal3f, [:float, :float, :float], :void],

    # rlColor4ub : Define one vertex (color) - 4 byte
    # @param r [unsigned char]
    # @param g [unsigned char]
    # @param b [unsigned char]
    # @param a [unsigned char]
    # @return [void]
    [:rlColor4ub, :rlColor4ub, [:uchar, :uchar, :uchar, :uchar], :void],

    # rlColor3f : Define one vertex (color) - 3 float
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @return [void]
    [:rlColor3f, :rlColor3f, [:float, :float, :float], :void],

    # rlColor4f : Define one vertex (color) - 4 float
    # @param x [float]
    # @param y [float]
    # @param z [float]
    # @param w [float]
    # @return [void]
    [:rlColor4f, :rlColor4f, [:float, :float, :float, :float], :void],

    # rlEnableVertexArray : Enable vertex array (VAO, if supported)
    # @param vaoId [unsigned int]
    # @return [bool]
    [:rlEnableVertexArray, :rlEnableVertexArray, [:uint], :bool],

    # rlDisableVertexArray : Disable vertex array (VAO, if supported)
    # @return [void]
    [:rlDisableVertexArray, :rlDisableVertexArray, [], :void],

    # rlEnableVertexBuffer : Enable vertex buffer (VBO)
    # @param id [unsigned int]
    # @return [void]
    [:rlEnableVertexBuffer, :rlEnableVertexBuffer, [:uint], :void],

    # rlDisableVertexBuffer : Disable vertex buffer (VBO)
    # @return [void]
    [:rlDisableVertexBuffer, :rlDisableVertexBuffer, [], :void],

    # rlEnableVertexBufferElement : Enable vertex buffer element (VBO element)
    # @param id [unsigned int]
    # @return [void]
    [:rlEnableVertexBufferElement, :rlEnableVertexBufferElement, [:uint], :void],

    # rlDisableVertexBufferElement : Disable vertex buffer element (VBO element)
    # @return [void]
    [:rlDisableVertexBufferElement, :rlDisableVertexBufferElement, [], :void],

    # rlEnableVertexAttribute : Enable vertex attribute index
    # @param index [unsigned int]
    # @return [void]
    [:rlEnableVertexAttribute, :rlEnableVertexAttribute, [:uint], :void],

    # rlDisableVertexAttribute : Disable vertex attribute index
    # @param index [unsigned int]
    # @return [void]
    [:rlDisableVertexAttribute, :rlDisableVertexAttribute, [:uint], :void],

    # rlActiveTextureSlot : Select and active a texture slot
    # @param slot [int]
    # @return [void]
    [:rlActiveTextureSlot, :rlActiveTextureSlot, [:int], :void],

    # rlEnableTexture : Enable texture
    # @param id [unsigned int]
    # @return [void]
    [:rlEnableTexture, :rlEnableTexture, [:uint], :void],

    # rlDisableTexture : Disable texture
    # @return [void]
    [:rlDisableTexture, :rlDisableTexture, [], :void],

    # rlEnableTextureCubemap : Enable texture cubemap
    # @param id [unsigned int]
    # @return [void]
    [:rlEnableTextureCubemap, :rlEnableTextureCubemap, [:uint], :void],

    # rlDisableTextureCubemap : Disable texture cubemap
    # @return [void]
    [:rlDisableTextureCubemap, :rlDisableTextureCubemap, [], :void],

    # rlTextureParameters : Set texture parameters (filter, wrap)
    # @param id [unsigned int]
    # @param param [int]
    # @param value [int]
    # @return [void]
    [:rlTextureParameters, :rlTextureParameters, [:uint, :int, :int], :void],

    # rlCubemapParameters : Set cubemap parameters (filter, wrap)
    # @param id [unsigned int]
    # @param param [int]
    # @param value [int]
    # @return [void]
    [:rlCubemapParameters, :rlCubemapParameters, [:uint, :int, :int], :void],

    # rlEnableShader : Enable shader program
    # @param id [unsigned int]
    # @return [void]
    [:rlEnableShader, :rlEnableShader, [:uint], :void],

    # rlDisableShader : Disable shader program
    # @return [void]
    [:rlDisableShader, :rlDisableShader, [], :void],

    # rlEnableFramebuffer : Enable render texture (fbo)
    # @param id [unsigned int]
    # @return [void]
    [:rlEnableFramebuffer, :rlEnableFramebuffer, [:uint], :void],

    # rlDisableFramebuffer : Disable render texture (fbo), return to default framebuffer
    # @return [void]
    [:rlDisableFramebuffer, :rlDisableFramebuffer, [], :void],

    # rlActiveDrawBuffers : Activate multiple draw color buffers
    # @param count [int]
    # @return [void]
    [:rlActiveDrawBuffers, :rlActiveDrawBuffers, [:int], :void],

    # rlEnableColorBlend : Enable color blending
    # @return [void]
    [:rlEnableColorBlend, :rlEnableColorBlend, [], :void],

    # rlDisableColorBlend : Disable color blending
    # @return [void]
    [:rlDisableColorBlend, :rlDisableColorBlend, [], :void],

    # rlEnableDepthTest : Enable depth test
    # @return [void]
    [:rlEnableDepthTest, :rlEnableDepthTest, [], :void],

    # rlDisableDepthTest : Disable depth test
    # @return [void]
    [:rlDisableDepthTest, :rlDisableDepthTest, [], :void],

    # rlEnableDepthMask : Enable depth write
    # @return [void]
    [:rlEnableDepthMask, :rlEnableDepthMask, [], :void],

    # rlDisableDepthMask : Disable depth write
    # @return [void]
    [:rlDisableDepthMask, :rlDisableDepthMask, [], :void],

    # rlEnableBackfaceCulling : Enable backface culling
    # @return [void]
    [:rlEnableBackfaceCulling, :rlEnableBackfaceCulling, [], :void],

    # rlDisableBackfaceCulling : Disable backface culling
    # @return [void]
    [:rlDisableBackfaceCulling, :rlDisableBackfaceCulling, [], :void],

    # rlSetCullFace : Set face culling mode
    # @param mode [int]
    # @return [void]
    [:rlSetCullFace, :rlSetCullFace, [:int], :void],

    # rlEnableScissorTest : Enable scissor test
    # @return [void]
    [:rlEnableScissorTest, :rlEnableScissorTest, [], :void],

    # rlDisableScissorTest : Disable scissor test
    # @return [void]
    [:rlDisableScissorTest, :rlDisableScissorTest, [], :void],

    # rlScissor : Scissor test
    # @param x [int]
    # @param y [int]
    # @param width [int]
    # @param height [int]
    # @return [void]
    [:rlScissor, :rlScissor, [:int, :int, :int, :int], :void],

    # rlEnableWireMode : Enable wire mode
    # @return [void]
    [:rlEnableWireMode, :rlEnableWireMode, [], :void],

    # rlDisableWireMode : Disable wire mode
    # @return [void]
    [:rlDisableWireMode, :rlDisableWireMode, [], :void],

    # rlSetLineWidth : Set the line drawing width
    # @param width [float]
    # @return [void]
    [:rlSetLineWidth, :rlSetLineWidth, [:float], :void],

    # rlGetLineWidth : Get the line drawing width
    # @return [float]
    [:rlGetLineWidth, :rlGetLineWidth, [], :float],

    # rlEnableSmoothLines : Enable line aliasing
    # @return [void]
    [:rlEnableSmoothLines, :rlEnableSmoothLines, [], :void],

    # rlDisableSmoothLines : Disable line aliasing
    # @return [void]
    [:rlDisableSmoothLines, :rlDisableSmoothLines, [], :void],

    # rlEnableStereoRender : Enable stereo rendering
    # @return [void]
    [:rlEnableStereoRender, :rlEnableStereoRender, [], :void],

    # rlDisableStereoRender : Disable stereo rendering
    # @return [void]
    [:rlDisableStereoRender, :rlDisableStereoRender, [], :void],

    # rlIsStereoRenderEnabled : Check if stereo render is enabled
    # @return [bool]
    [:rlIsStereoRenderEnabled, :rlIsStereoRenderEnabled, [], :bool],

    # rlClearColor : Clear color buffer with color
    # @param r [unsigned char]
    # @param g [unsigned char]
    # @param b [unsigned char]
    # @param a [unsigned char]
    # @return [void]
    [:rlClearColor, :rlClearColor, [:uchar, :uchar, :uchar, :uchar], :void],

    # rlClearScreenBuffers : Clear used screen buffers (color and depth)
    # @return [void]
    [:rlClearScreenBuffers, :rlClearScreenBuffers, [], :void],

    # rlCheckErrors : Check and log OpenGL error codes
    # @return [void]
    [:rlCheckErrors, :rlCheckErrors, [], :void],

    # rlSetBlendMode : Set blending mode
    # @param mode [int]
    # @return [void]
    [:rlSetBlendMode, :rlSetBlendMode, [:int], :void],

    # rlSetBlendFactors : Set blending mode factor and equation (using OpenGL factors)
    # @param glSrcFactor [int]
    # @param glDstFactor [int]
    # @param glEquation [int]
    # @return [void]
    [:rlSetBlendFactors, :rlSetBlendFactors, [:int, :int, :int], :void],

    # rlSetBlendFactorsSeparate : Set blending mode factors and equations separately (using OpenGL factors)
    # @param glSrcRGB [int]
    # @param glDstRGB [int]
    # @param glSrcAlpha [int]
    # @param glDstAlpha [int]
    # @param glEqRGB [int]
    # @param glEqAlpha [int]
    # @return [void]
    [:rlSetBlendFactorsSeparate, :rlSetBlendFactorsSeparate, [:int, :int, :int, :int, :int, :int], :void],

    # rlglInit : Initialize rlgl (buffers, shaders, textures, states)
    # @param width [int]
    # @param height [int]
    # @return [void]
    [:rlglInit, :rlglInit, [:int, :int], :void],

    # rlglClose : De-initialize rlgl (buffers, shaders, textures)
    # @return [void]
    [:rlglClose, :rlglClose, [], :void],

    # rlLoadExtensions : Load OpenGL extensions (loader function required)
    # @param loader [void *]
    # @return [void]
    [:rlLoadExtensions, :rlLoadExtensions, [:pointer], :void],

    # rlGetVersion : Get current OpenGL version
    # @return [int]
    [:rlGetVersion, :rlGetVersion, [], :int],

    # rlSetFramebufferWidth : Set current framebuffer width
    # @param width [int]
    # @return [void]
    [:rlSetFramebufferWidth, :rlSetFramebufferWidth, [:int], :void],

    # rlGetFramebufferWidth : Get default framebuffer width
    # @return [int]
    [:rlGetFramebufferWidth, :rlGetFramebufferWidth, [], :int],

    # rlSetFramebufferHeight : Set current framebuffer height
    # @param height [int]
    # @return [void]
    [:rlSetFramebufferHeight, :rlSetFramebufferHeight, [:int], :void],

    # rlGetFramebufferHeight : Get default framebuffer height
    # @return [int]
    [:rlGetFramebufferHeight, :rlGetFramebufferHeight, [], :int],

    # rlGetTextureIdDefault : Get default texture id
    # @return [unsigned int]
    [:rlGetTextureIdDefault, :rlGetTextureIdDefault, [], :uint],

    # rlGetShaderIdDefault : Get default shader id
    # @return [unsigned int]
    [:rlGetShaderIdDefault, :rlGetShaderIdDefault, [], :uint],

    # rlGetShaderLocsDefault : Get default shader locations
    # @return [int *]
    [:rlGetShaderLocsDefault, :rlGetShaderLocsDefault, [], :pointer],

    # rlLoadRenderBatch : Load a render batch system
    # @param numBuffers [int]
    # @param bufferElements [int]
    # @return [rlRenderBatch]
    [:rlLoadRenderBatch, :rlLoadRenderBatch, [:int, :int], RlRenderBatch.by_value],

    # rlUnloadRenderBatch : Unload render batch system
    # @param batch [rlRenderBatch]
    # @return [void]
    [:rlUnloadRenderBatch, :rlUnloadRenderBatch, [RlRenderBatch.by_value], :void],

    # rlDrawRenderBatch : Draw render batch data (Update->Draw->Reset)
    # @param batch [rlRenderBatch *]
    # @return [void]
    [:rlDrawRenderBatch, :rlDrawRenderBatch, [:pointer], :void],

    # rlSetRenderBatchActive : Set the active render batch for rlgl (NULL for default internal)
    # @param batch [rlRenderBatch *]
    # @return [void]
    [:rlSetRenderBatchActive, :rlSetRenderBatchActive, [:pointer], :void],

    # rlDrawRenderBatchActive : Update and draw internal render batch
    # @return [void]
    [:rlDrawRenderBatchActive, :rlDrawRenderBatchActive, [], :void],

    # rlCheckRenderBatchLimit : Check internal buffer overflow for a given number of vertex
    # @param vCount [int]
    # @return [bool]
    [:rlCheckRenderBatchLimit, :rlCheckRenderBatchLimit, [:int], :bool],

    # rlSetTexture : Set current texture for render batch and check buffers limits
    # @param id [unsigned int]
    # @return [void]
    [:rlSetTexture, :rlSetTexture, [:uint], :void],

    # rlLoadVertexArray : Load vertex array (vao) if supported
    # @return [unsigned int]
    [:rlLoadVertexArray, :rlLoadVertexArray, [], :uint],

    # rlLoadVertexBuffer : Load a vertex buffer attribute
    # @param buffer [const void *]
    # @param size [int]
    # @param dynamic [bool]
    # @return [unsigned int]
    [:rlLoadVertexBuffer, :rlLoadVertexBuffer, [:pointer, :int, :bool], :uint],

    # rlLoadVertexBufferElement : Load a new attributes element buffer
    # @param buffer [const void *]
    # @param size [int]
    # @param dynamic [bool]
    # @return [unsigned int]
    [:rlLoadVertexBufferElement, :rlLoadVertexBufferElement, [:pointer, :int, :bool], :uint],

    # rlUpdateVertexBuffer : Update GPU buffer with new data
    # @param bufferId [unsigned int]
    # @param data [const void *]
    # @param dataSize [int]
    # @param offset [int]
    # @return [void]
    [:rlUpdateVertexBuffer, :rlUpdateVertexBuffer, [:uint, :pointer, :int, :int], :void],

    # rlUpdateVertexBufferElements : Update vertex buffer elements with new data
    # @param id [unsigned int]
    # @param data [const void *]
    # @param dataSize [int]
    # @param offset [int]
    # @return [void]
    [:rlUpdateVertexBufferElements, :rlUpdateVertexBufferElements, [:uint, :pointer, :int, :int], :void],

    # rlUnloadVertexArray
    # @param vaoId [unsigned int]
    # @return [void]
    [:rlUnloadVertexArray, :rlUnloadVertexArray, [:uint], :void],

    # rlUnloadVertexBuffer
    # @param vboId [unsigned int]
    # @return [void]
    [:rlUnloadVertexBuffer, :rlUnloadVertexBuffer, [:uint], :void],

    # rlSetVertexAttribute
    # @param index [unsigned int]
    # @param compSize [int]
    # @param type [int]
    # @param normalized [bool]
    # @param stride [int]
    # @param pointer [const void *]
    # @return [void]
    [:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :pointer], :void],

    # rlSetVertexAttributeDivisor
    # @param index [unsigned int]
    # @param divisor [int]
    # @return [void]
    [:rlSetVertexAttributeDivisor, :rlSetVertexAttributeDivisor, [:uint, :int], :void],

    # rlSetVertexAttributeDefault : Set vertex attribute default value
    # @param locIndex [int]
    # @param value [const void *]
    # @param attribType [int]
    # @param count [int]
    # @return [void]
    [:rlSetVertexAttributeDefault, :rlSetVertexAttributeDefault, [:int, :pointer, :int, :int], :void],

    # rlDrawVertexArray
    # @param offset [int]
    # @param count [int]
    # @return [void]
    [:rlDrawVertexArray, :rlDrawVertexArray, [:int, :int], :void],

    # rlDrawVertexArrayElements
    # @param offset [int]
    # @param count [int]
    # @param buffer [const void *]
    # @return [void]
    [:rlDrawVertexArrayElements, :rlDrawVertexArrayElements, [:int, :int, :pointer], :void],

    # rlDrawVertexArrayInstanced
    # @param offset [int]
    # @param count [int]
    # @param instances [int]
    # @return [void]
    [:rlDrawVertexArrayInstanced, :rlDrawVertexArrayInstanced, [:int, :int, :int], :void],

    # rlDrawVertexArrayElementsInstanced
    # @param offset [int]
    # @param count [int]
    # @param buffer [const void *]
    # @param instances [int]
    # @return [void]
    [:rlDrawVertexArrayElementsInstanced, :rlDrawVertexArrayElementsInstanced, [:int, :int, :pointer, :int], :void],

    # rlLoadTexture : Load texture in GPU
    # @param data [const void *]
    # @param width [int]
    # @param height [int]
    # @param format [int]
    # @param mipmapCount [int]
    # @return [unsigned int]
    [:rlLoadTexture, :rlLoadTexture, [:pointer, :int, :int, :int, :int], :uint],

    # rlLoadTextureDepth : Load depth texture/renderbuffer (to be attached to fbo)
    # @param width [int]
    # @param height [int]
    # @param useRenderBuffer [bool]
    # @return [unsigned int]
    [:rlLoadTextureDepth, :rlLoadTextureDepth, [:int, :int, :bool], :uint],

    # rlLoadTextureCubemap : Load texture cubemap
    # @param data [const void *]
    # @param size [int]
    # @param format [int]
    # @return [unsigned int]
    [:rlLoadTextureCubemap, :rlLoadTextureCubemap, [:pointer, :int, :int], :uint],

    # rlUpdateTexture : Update GPU texture with new data
    # @param id [unsigned int]
    # @param offsetX [int]
    # @param offsetY [int]
    # @param width [int]
    # @param height [int]
    # @param format [int]
    # @param data [const void *]
    # @return [void]
    [:rlUpdateTexture, :rlUpdateTexture, [:uint, :int, :int, :int, :int, :int, :pointer], :void],

    # rlGetGlTextureFormats : Get OpenGL internal formats
    # @param format [int]
    # @param glInternalFormat [unsigned int *]
    # @param glFormat [unsigned int *]
    # @param glType [unsigned int *]
    # @return [void]
    [:rlGetGlTextureFormats, :rlGetGlTextureFormats, [:int, :pointer, :pointer, :pointer], :void],

    # rlGetPixelFormatName : Get name string for pixel format
    # @param format [unsigned int]
    # @return [const char *]
    [:rlGetPixelFormatName, :rlGetPixelFormatName, [:uint], :pointer],

    # rlUnloadTexture : Unload texture from GPU memory
    # @param id [unsigned int]
    # @return [void]
    [:rlUnloadTexture, :rlUnloadTexture, [:uint], :void],

    # rlGenTextureMipmaps : Generate mipmap data for selected texture
    # @param id [unsigned int]
    # @param width [int]
    # @param height [int]
    # @param format [int]
    # @param mipmaps [int *]
    # @return [void]
    [:rlGenTextureMipmaps, :rlGenTextureMipmaps, [:uint, :int, :int, :int, :pointer], :void],

    # rlReadTexturePixels : Read texture pixel data
    # @param id [unsigned int]
    # @param width [int]
    # @param height [int]
    # @param format [int]
    # @return [void *]
    [:rlReadTexturePixels, :rlReadTexturePixels, [:uint, :int, :int, :int], :pointer],

    # rlReadScreenPixels : Read screen pixel data (color buffer)
    # @param width [int]
    # @param height [int]
    # @return [unsigned char *]
    [:rlReadScreenPixels, :rlReadScreenPixels, [:int, :int], :pointer],

    # rlLoadFramebuffer : Load an empty framebuffer
    # @param width [int]
    # @param height [int]
    # @return [unsigned int]
    [:rlLoadFramebuffer, :rlLoadFramebuffer, [:int, :int], :uint],

    # rlFramebufferAttach : Attach texture/renderbuffer to a framebuffer
    # @param fboId [unsigned int]
    # @param texId [unsigned int]
    # @param attachType [int]
    # @param texType [int]
    # @param mipLevel [int]
    # @return [void]
    [:rlFramebufferAttach, :rlFramebufferAttach, [:uint, :uint, :int, :int, :int], :void],

    # rlFramebufferComplete : Verify framebuffer is complete
    # @param id [unsigned int]
    # @return [bool]
    [:rlFramebufferComplete, :rlFramebufferComplete, [:uint], :bool],

    # rlUnloadFramebuffer : Delete framebuffer from GPU
    # @param id [unsigned int]
    # @return [void]
    [:rlUnloadFramebuffer, :rlUnloadFramebuffer, [:uint], :void],

    # rlLoadShaderCode : Load shader from code strings
    # @param vsCode [const char *]
    # @param fsCode [const char *]
    # @return [unsigned int]
    [:rlLoadShaderCode, :rlLoadShaderCode, [:pointer, :pointer], :uint],

    # rlCompileShader : Compile custom shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER)
    # @param shaderCode [const char *]
    # @param type [int]
    # @return [unsigned int]
    [:rlCompileShader, :rlCompileShader, [:pointer, :int], :uint],

    # rlLoadShaderProgram : Load custom shader program
    # @param vShaderId [unsigned int]
    # @param fShaderId [unsigned int]
    # @return [unsigned int]
    [:rlLoadShaderProgram, :rlLoadShaderProgram, [:uint, :uint], :uint],

    # rlUnloadShaderProgram : Unload shader program
    # @param id [unsigned int]
    # @return [void]
    [:rlUnloadShaderProgram, :rlUnloadShaderProgram, [:uint], :void],

    # rlGetLocationUniform : Get shader location uniform
    # @param shaderId [unsigned int]
    # @param uniformName [const char *]
    # @return [int]
    [:rlGetLocationUniform, :rlGetLocationUniform, [:uint, :pointer], :int],

    # rlGetLocationAttrib : Get shader location attribute
    # @param shaderId [unsigned int]
    # @param attribName [const char *]
    # @return [int]
    [:rlGetLocationAttrib, :rlGetLocationAttrib, [:uint, :pointer], :int],

    # rlSetUniform : Set shader value uniform
    # @param locIndex [int]
    # @param value [const void *]
    # @param uniformType [int]
    # @param count [int]
    # @return [void]
    [:rlSetUniform, :rlSetUniform, [:int, :pointer, :int, :int], :void],

    # rlSetUniformMatrix : Set shader value matrix
    # @param locIndex [int]
    # @param mat [Matrix]
    # @return [void]
    [:rlSetUniformMatrix, :rlSetUniformMatrix, [:int, Matrix.by_value], :void],

    # rlSetUniformSampler : Set shader value sampler
    # @param locIndex [int]
    # @param textureId [unsigned int]
    # @return [void]
    [:rlSetUniformSampler, :rlSetUniformSampler, [:int, :uint], :void],

    # rlSetShader : Set shader currently active (id and locations)
    # @param id [unsigned int]
    # @param locs [int *]
    # @return [void]
    [:rlSetShader, :rlSetShader, [:uint, :pointer], :void],

    # rlLoadComputeShaderProgram : Load compute shader program
    # @param shaderId [unsigned int]
    # @return [unsigned int]
    [:rlLoadComputeShaderProgram, :rlLoadComputeShaderProgram, [:uint], :uint],

    # rlComputeShaderDispatch : Dispatch compute shader (equivalent to *draw* for graphics pipeline)
    # @param groupX [unsigned int]
    # @param groupY [unsigned int]
    # @param groupZ [unsigned int]
    # @return [void]
    [:rlComputeShaderDispatch, :rlComputeShaderDispatch, [:uint, :uint, :uint], :void],

    # rlLoadShaderBuffer : Load shader storage buffer object (SSBO)
    # @param size [unsigned int]
    # @param data [const void *]
    # @param usageHint [int]
    # @return [unsigned int]
    [:rlLoadShaderBuffer, :rlLoadShaderBuffer, [:uint, :pointer, :int], :uint],

    # rlUnloadShaderBuffer : Unload shader storage buffer object (SSBO)
    # @param ssboId [unsigned int]
    # @return [void]
    [:rlUnloadShaderBuffer, :rlUnloadShaderBuffer, [:uint], :void],

    # rlUpdateShaderBuffer : Update SSBO buffer data
    # @param id [unsigned int]
    # @param data [const void *]
    # @param dataSize [unsigned int]
    # @param offset [unsigned int]
    # @return [void]
    [:rlUpdateShaderBuffer, :rlUpdateShaderBuffer, [:uint, :pointer, :uint, :uint], :void],

    # rlBindShaderBuffer : Bind SSBO buffer
    # @param id [unsigned int]
    # @param index [unsigned int]
    # @return [void]
    [:rlBindShaderBuffer, :rlBindShaderBuffer, [:uint, :uint], :void],

    # rlReadShaderBuffer : Read SSBO buffer data (GPU->CPU)
    # @param id [unsigned int]
    # @param dest [void *]
    # @param count [unsigned int]
    # @param offset [unsigned int]
    # @return [void]
    [:rlReadShaderBuffer, :rlReadShaderBuffer, [:uint, :pointer, :uint, :uint], :void],

    # rlCopyShaderBuffer : Copy SSBO data between buffers
    # @param destId [unsigned int]
    # @param srcId [unsigned int]
    # @param destOffset [unsigned int]
    # @param srcOffset [unsigned int]
    # @param count [unsigned int]
    # @return [void]
    [:rlCopyShaderBuffer, :rlCopyShaderBuffer, [:uint, :uint, :uint, :uint, :uint], :void],

    # rlGetShaderBufferSize : Get SSBO buffer size
    # @param id [unsigned int]
    # @return [unsigned int]
    [:rlGetShaderBufferSize, :rlGetShaderBufferSize, [:uint], :uint],

    # rlBindImageTexture : Bind image texture
    # @param id [unsigned int]
    # @param index [unsigned int]
    # @param format [int]
    # @param readonly [bool]
    # @return [void]
    [:rlBindImageTexture, :rlBindImageTexture, [:uint, :uint, :int, :bool], :void],

    # rlGetMatrixModelview : Get internal modelview matrix
    # @return [Matrix]
    [:rlGetMatrixModelview, :rlGetMatrixModelview, [], Matrix.by_value],

    # rlGetMatrixProjection : Get internal projection matrix
    # @return [Matrix]
    [:rlGetMatrixProjection, :rlGetMatrixProjection, [], Matrix.by_value],

    # rlGetMatrixTransform : Get internal accumulated transform matrix
    # @return [Matrix]
    [:rlGetMatrixTransform, :rlGetMatrixTransform, [], Matrix.by_value],

    # rlGetMatrixProjectionStereo : Get internal projection matrix for stereo render (selected eye)
    # @param eye [int]
    # @return [Matrix]
    [:rlGetMatrixProjectionStereo, :rlGetMatrixProjectionStereo, [:int], Matrix.by_value],

    # rlGetMatrixViewOffsetStereo : Get internal view offset matrix for stereo render (selected eye)
    # @param eye [int]
    # @return [Matrix]
    [:rlGetMatrixViewOffsetStereo, :rlGetMatrixViewOffsetStereo, [:int], Matrix.by_value],

    # rlSetMatrixProjection : Set a custom projection matrix (replaces internal projection matrix)
    # @param proj [Matrix]
    # @return [void]
    [:rlSetMatrixProjection, :rlSetMatrixProjection, [Matrix.by_value], :void],

    # rlSetMatrixModelview : Set a custom modelview matrix (replaces internal modelview matrix)
    # @param view [Matrix]
    # @return [void]
    [:rlSetMatrixModelview, :rlSetMatrixModelview, [Matrix.by_value], :void],

    # rlSetMatrixProjectionStereo : Set eyes projection matrices for stereo rendering
    # @param right [Matrix]
    # @param left [Matrix]
    # @return [void]
    [:rlSetMatrixProjectionStereo, :rlSetMatrixProjectionStereo, [Matrix.by_value, Matrix.by_value], :void],

    # rlSetMatrixViewOffsetStereo : Set eyes view offsets matrices for stereo rendering
    # @param right [Matrix]
    # @param left [Matrix]
    # @return [void]
    [:rlSetMatrixViewOffsetStereo, :rlSetMatrixViewOffsetStereo, [Matrix.by_value, Matrix.by_value], :void],

    # rlLoadDrawCube : Load and draw a cube
    # @return [void]
    [:rlLoadDrawCube, :rlLoadDrawCube, [], :void],

    # rlLoadDrawQuad : Load and draw a quad
    # @return [void]
    [:rlLoadDrawQuad, :rlLoadDrawQuad, [], :void],
  ]
  entries.each do |entry|
    attach_function entry[0], entry[1], entry[2], entry[3]
  rescue FFI::NotFoundError => e
    warn "[Warning] Failed to import #{entry[0]} (#{e})."
  end
end

.setup_symbolsObject



32
33
34
35
36
37
# File 'lib/raylib.rb', line 32

def self.setup_symbols
  setup_raylib_symbols
  setup_raymath_symbols
  setup_rcamera_symbols
  setup_rlgl_symbols
end

.templateObject

Generate sample code



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/raylib.rb', line 42

def self.template
  # Copy template code to user's current directory
  example_path = "#{Gem::Specification.find_by_name('raylib-bindings').full_gem_path}/examples"
  template_code_src = "#{example_path}/template.rb"
  unless File.exist? template_code_src
    warn "[Error] Raylib.template : Template source #{template_code_src} not found"
    return false
  end

  template_code_dst = "#{Dir.getwd}/template.rb"
  if File.exist? template_code_dst
    warn "[Error] Raylib.template : Template destination #{template_code_dst} already exists"
    return false
  end

  warn "[Info] Raylib.template : #{template_code_src} => #{template_code_dst}"
  FileUtils.copy template_code_src, template_code_dst
  warn '[Info] Raylib.template : Done'
end

Instance Method Details

#DrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint) ⇒ void

This method returns an undefined value.

DrawModelEx : Draw a model with extended parameters

Parameters:



186
187
188
189
190
191
192
193
194
195
196
# File 'lib/raylib_helper.rb', line 186

def DrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint)
  # [NOTE] Fixing unintended matrix modification
  # - In C, DrawModelEx uses the whole copy of `model` on stack, which will never affect the content of original `model`.
  #   But Ruby FFI seems to pass the reference of `model` to DrawModelEx, which results in transform accumulation (e.g.:`model` get rotated by `rotationAngle` around `rotationAxis` every frame).
  #   So here I copy the transform into `mtx_clone` and copy back this to the original after finished calling DrawModelEx.
  # - Other DrawXXX members (DrawModel, DrawModelWires, DrawModelWiresEx) are free from this problem.
  #   - They call DrawModelEx in C layer, which will use the copy of `model` on stack.
  mtx_clone = model[:transform].clone
  internalDrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint)
  model[:transform] = mtx_clone
end

#LoadAndAllocateModelAnimations(fileName) ⇒ Object

LoadAndAllocateModelAnimations : (ruby raylib original)

Parameters:

  • fileName (const char *)

Returns:

  • array of ModelAnimation and pointer to loaded memory



291
292
293
294
295
296
297
298
299
# File 'lib/raylib_helper.rb', line 291

def LoadAndAllocateModelAnimations(fileName)
  animsCount_buf = FFI::MemoryPointer.new(:uint, 1)
  anim_ptrs = LoadModelAnimations(fileName, animsCount_buf)
  animsCount = animsCount_buf.read_uint
  anims = animsCount.times.map do |i|
    ModelAnimation.new(anim_ptrs + i * ModelAnimation.size)
  end
  return anims, anim_ptrs
end

#MatrixToFloat(mat) ⇒ Object



160
161
162
# File 'lib/raylib_helper.rb', line 160

def MatrixToFloat(mat)
  MatrixToFloatV(mat)[:v].to_a
end

#UnloadAndFreeModelAnimations(anims, anim_ptrs) ⇒ Object

UnloadAndFreeModelAnimations : (ruby raylib original)

Parameters:

  • anims (array of ModelAnimation)
  • anim_ptrs (pointer to loaded memory)


304
305
306
307
308
309
# File 'lib/raylib_helper.rb', line 304

def UnloadAndFreeModelAnimations(anims, anim_ptrs)
  anims.each do |anim|
    UnloadModelAnimation(anim)
  end
  MemFree(anim_ptrs)
end

#Vector3ToFloat(vec) ⇒ Object



156
157
158
# File 'lib/raylib_helper.rb', line 156

def Vector3ToFloat(vec)
  Vector3ToFloatV(vec)[:v].to_a
end