raylib 4.5.0.alpha1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +16 -0
  3. data/README.md +97 -0
  4. data/lib/raylib/core/callbacks.rb +19 -0
  5. data/lib/raylib/core/colors.rb +32 -0
  6. data/lib/raylib/core/enums.rb +694 -0
  7. data/lib/raylib/core/functions.rb +1552 -0
  8. data/lib/raylib/core/structs/audio_stream.rb +71 -0
  9. data/lib/raylib/core/structs/bone_info.rb +38 -0
  10. data/lib/raylib/core/structs/bounding_box.rb +38 -0
  11. data/lib/raylib/core/structs/camera2_d.rb +60 -0
  12. data/lib/raylib/core/structs/camera3_d.rb +74 -0
  13. data/lib/raylib/core/structs/color.rb +60 -0
  14. data/lib/raylib/core/structs/file_path_list.rb +51 -0
  15. data/lib/raylib/core/structs/font.rb +82 -0
  16. data/lib/raylib/core/structs/glyph_info.rb +71 -0
  17. data/lib/raylib/core/structs/image.rb +71 -0
  18. data/lib/raylib/core/structs/material.rb +49 -0
  19. data/lib/raylib/core/structs/material_map.rb +49 -0
  20. data/lib/raylib/core/structs/matrix.rb +192 -0
  21. data/lib/raylib/core/structs/mesh.rb +181 -0
  22. data/lib/raylib/core/structs/model.rb +115 -0
  23. data/lib/raylib/core/structs/model_animation.rb +60 -0
  24. data/lib/raylib/core/structs/music.rb +71 -0
  25. data/lib/raylib/core/structs/n_patch_info.rb +82 -0
  26. data/lib/raylib/core/structs/ray.rb +38 -0
  27. data/lib/raylib/core/structs/ray_collision.rb +60 -0
  28. data/lib/raylib/core/structs/rectangle.rb +60 -0
  29. data/lib/raylib/core/structs/render_texture.rb +52 -0
  30. data/lib/raylib/core/structs/shader.rb +38 -0
  31. data/lib/raylib/core/structs/sound.rb +38 -0
  32. data/lib/raylib/core/structs/texture.rb +77 -0
  33. data/lib/raylib/core/structs/transform.rb +49 -0
  34. data/lib/raylib/core/structs/vector2.rb +38 -0
  35. data/lib/raylib/core/structs/vector3.rb +49 -0
  36. data/lib/raylib/core/structs/vector4.rb +63 -0
  37. data/lib/raylib/core/structs/vr_device_info.rb +126 -0
  38. data/lib/raylib/core/structs/vr_stereo_config.rb +104 -0
  39. data/lib/raylib/core/structs/wave.rb +71 -0
  40. data/lib/raylib/core/structs.rb +32 -0
  41. data/lib/raylib/core.rb +5 -0
  42. data/lib/raylib/dsl.rb +2 -0
  43. data/lib/raylib/raymath/functions.rb +337 -0
  44. data/lib/raylib/raymath/structs/float16.rb +27 -0
  45. data/lib/raylib/raymath/structs/float3.rb +27 -0
  46. data/lib/raylib/raymath/structs.rb +2 -0
  47. data/lib/raylib/raymath.rb +2 -0
  48. data/lib/raylib/rlgl/callbacks.rb +4 -0
  49. data/lib/raylib/rlgl/enums.rb +270 -0
  50. data/lib/raylib/rlgl/functions.rb +448 -0
  51. data/lib/raylib/rlgl/structs/rl_draw_call.rb +60 -0
  52. data/lib/raylib/rlgl/structs/rl_render_batch.rb +82 -0
  53. data/lib/raylib/rlgl/structs/rl_vertex_buffer.rb +93 -0
  54. data/lib/raylib/rlgl/structs.rb +3 -0
  55. data/lib/raylib/rlgl.rb +4 -0
  56. data/lib/raylib/version.rb +5 -0
  57. data/lib/raylib.rb +12 -0
  58. metadata +162 -0
@@ -0,0 +1,694 @@
1
+ module Raylib
2
+ # ----------------------------------------------------------------------------------------------------
3
+ # ConfigFlags - System/Window config flags
4
+ # ----------------------------------------------------------------------------------------------------
5
+
6
+ # Set to try enabling V-Sync on GPU
7
+ FLAG_VSYNC_HINT = 64
8
+ # Set to run program in fullscreen
9
+ FLAG_FULLSCREEN_MODE = 2
10
+ # Set to allow resizable window
11
+ FLAG_WINDOW_RESIZABLE = 4
12
+ # Set to disable window decoration (frame and buttons)
13
+ FLAG_WINDOW_UNDECORATED = 8
14
+ # Set to hide window
15
+ FLAG_WINDOW_HIDDEN = 128
16
+ # Set to minimize window (iconify)
17
+ FLAG_WINDOW_MINIMIZED = 512
18
+ # Set to maximize window (expanded to monitor)
19
+ FLAG_WINDOW_MAXIMIZED = 1024
20
+ # Set to window non focused
21
+ FLAG_WINDOW_UNFOCUSED = 2048
22
+ # Set to window always on top
23
+ FLAG_WINDOW_TOPMOST = 4096
24
+ # Set to allow windows running while minimized
25
+ FLAG_WINDOW_ALWAYS_RUN = 256
26
+ # Set to allow transparent framebuffer
27
+ FLAG_WINDOW_TRANSPARENT = 16
28
+ # Set to support HighDPI
29
+ FLAG_WINDOW_HIGHDPI = 8192
30
+ # Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED
31
+ FLAG_WINDOW_MOUSE_PASSTHROUGH = 16384
32
+ # Set to try enabling MSAA 4X
33
+ FLAG_MSAA_4X_HINT = 32
34
+ # Set to try enabling interlaced video format (for V3D)
35
+ FLAG_INTERLACED_HINT = 65536
36
+
37
+ # ----------------------------------------------------------------------------------------------------
38
+ # TraceLogLevel - Trace log level
39
+ # ----------------------------------------------------------------------------------------------------
40
+
41
+ # Display all logs
42
+ LOG_ALL = 0
43
+ # Trace logging, intended for internal use only
44
+ LOG_TRACE = 1
45
+ # Debug logging, used for internal debugging, it should be disabled on release builds
46
+ LOG_DEBUG = 2
47
+ # Info logging, used for program execution info
48
+ LOG_INFO = 3
49
+ # Warning logging, used on recoverable failures
50
+ LOG_WARNING = 4
51
+ # Error logging, used on unrecoverable failures
52
+ LOG_ERROR = 5
53
+ # Fatal logging, used to abort program: exit(EXIT_FAILURE)
54
+ LOG_FATAL = 6
55
+ # Disable logging
56
+ LOG_NONE = 7
57
+
58
+ # ----------------------------------------------------------------------------------------------------
59
+ # KeyboardKey - Keyboard keys (US keyboard layout)
60
+ # ----------------------------------------------------------------------------------------------------
61
+
62
+ # Key: NULL, used for no key pressed
63
+ KEY_NULL = 0
64
+ # Key: '
65
+ KEY_APOSTROPHE = 39
66
+ # Key: ,
67
+ KEY_COMMA = 44
68
+ # Key: -
69
+ KEY_MINUS = 45
70
+ # Key: .
71
+ KEY_PERIOD = 46
72
+ # Key: /
73
+ KEY_SLASH = 47
74
+ # Key: 0
75
+ KEY_ZERO = 48
76
+ # Key: 1
77
+ KEY_ONE = 49
78
+ # Key: 2
79
+ KEY_TWO = 50
80
+ # Key: 3
81
+ KEY_THREE = 51
82
+ # Key: 4
83
+ KEY_FOUR = 52
84
+ # Key: 5
85
+ KEY_FIVE = 53
86
+ # Key: 6
87
+ KEY_SIX = 54
88
+ # Key: 7
89
+ KEY_SEVEN = 55
90
+ # Key: 8
91
+ KEY_EIGHT = 56
92
+ # Key: 9
93
+ KEY_NINE = 57
94
+ # Key: ;
95
+ KEY_SEMICOLON = 59
96
+ # Key: =
97
+ KEY_EQUAL = 61
98
+ # Key: A | a
99
+ KEY_A = 65
100
+ # Key: B | b
101
+ KEY_B = 66
102
+ # Key: C | c
103
+ KEY_C = 67
104
+ # Key: D | d
105
+ KEY_D = 68
106
+ # Key: E | e
107
+ KEY_E = 69
108
+ # Key: F | f
109
+ KEY_F = 70
110
+ # Key: G | g
111
+ KEY_G = 71
112
+ # Key: H | h
113
+ KEY_H = 72
114
+ # Key: I | i
115
+ KEY_I = 73
116
+ # Key: J | j
117
+ KEY_J = 74
118
+ # Key: K | k
119
+ KEY_K = 75
120
+ # Key: L | l
121
+ KEY_L = 76
122
+ # Key: M | m
123
+ KEY_M = 77
124
+ # Key: N | n
125
+ KEY_N = 78
126
+ # Key: O | o
127
+ KEY_O = 79
128
+ # Key: P | p
129
+ KEY_P = 80
130
+ # Key: Q | q
131
+ KEY_Q = 81
132
+ # Key: R | r
133
+ KEY_R = 82
134
+ # Key: S | s
135
+ KEY_S = 83
136
+ # Key: T | t
137
+ KEY_T = 84
138
+ # Key: U | u
139
+ KEY_U = 85
140
+ # Key: V | v
141
+ KEY_V = 86
142
+ # Key: W | w
143
+ KEY_W = 87
144
+ # Key: X | x
145
+ KEY_X = 88
146
+ # Key: Y | y
147
+ KEY_Y = 89
148
+ # Key: Z | z
149
+ KEY_Z = 90
150
+ # Key: [
151
+ KEY_LEFT_BRACKET = 91
152
+ # Key: '\'
153
+ KEY_BACKSLASH = 92
154
+ # Key: ]
155
+ KEY_RIGHT_BRACKET = 93
156
+ # Key: `
157
+ KEY_GRAVE = 96
158
+ # Key: Space
159
+ KEY_SPACE = 32
160
+ # Key: Esc
161
+ KEY_ESCAPE = 256
162
+ # Key: Enter
163
+ KEY_ENTER = 257
164
+ # Key: Tab
165
+ KEY_TAB = 258
166
+ # Key: Backspace
167
+ KEY_BACKSPACE = 259
168
+ # Key: Ins
169
+ KEY_INSERT = 260
170
+ # Key: Del
171
+ KEY_DELETE = 261
172
+ # Key: Cursor right
173
+ KEY_RIGHT = 262
174
+ # Key: Cursor left
175
+ KEY_LEFT = 263
176
+ # Key: Cursor down
177
+ KEY_DOWN = 264
178
+ # Key: Cursor up
179
+ KEY_UP = 265
180
+ # Key: Page up
181
+ KEY_PAGE_UP = 266
182
+ # Key: Page down
183
+ KEY_PAGE_DOWN = 267
184
+ # Key: Home
185
+ KEY_HOME = 268
186
+ # Key: End
187
+ KEY_END = 269
188
+ # Key: Caps lock
189
+ KEY_CAPS_LOCK = 280
190
+ # Key: Scroll down
191
+ KEY_SCROLL_LOCK = 281
192
+ # Key: Num lock
193
+ KEY_NUM_LOCK = 282
194
+ # Key: Print screen
195
+ KEY_PRINT_SCREEN = 283
196
+ # Key: Pause
197
+ KEY_PAUSE = 284
198
+ # Key: F1
199
+ KEY_F1 = 290
200
+ # Key: F2
201
+ KEY_F2 = 291
202
+ # Key: F3
203
+ KEY_F3 = 292
204
+ # Key: F4
205
+ KEY_F4 = 293
206
+ # Key: F5
207
+ KEY_F5 = 294
208
+ # Key: F6
209
+ KEY_F6 = 295
210
+ # Key: F7
211
+ KEY_F7 = 296
212
+ # Key: F8
213
+ KEY_F8 = 297
214
+ # Key: F9
215
+ KEY_F9 = 298
216
+ # Key: F10
217
+ KEY_F10 = 299
218
+ # Key: F11
219
+ KEY_F11 = 300
220
+ # Key: F12
221
+ KEY_F12 = 301
222
+ # Key: Shift left
223
+ KEY_LEFT_SHIFT = 340
224
+ # Key: Control left
225
+ KEY_LEFT_CONTROL = 341
226
+ # Key: Alt left
227
+ KEY_LEFT_ALT = 342
228
+ # Key: Super left
229
+ KEY_LEFT_SUPER = 343
230
+ # Key: Shift right
231
+ KEY_RIGHT_SHIFT = 344
232
+ # Key: Control right
233
+ KEY_RIGHT_CONTROL = 345
234
+ # Key: Alt right
235
+ KEY_RIGHT_ALT = 346
236
+ # Key: Super right
237
+ KEY_RIGHT_SUPER = 347
238
+ # Key: KB menu
239
+ KEY_KB_MENU = 348
240
+ # Key: Keypad 0
241
+ KEY_KP_0 = 320
242
+ # Key: Keypad 1
243
+ KEY_KP_1 = 321
244
+ # Key: Keypad 2
245
+ KEY_KP_2 = 322
246
+ # Key: Keypad 3
247
+ KEY_KP_3 = 323
248
+ # Key: Keypad 4
249
+ KEY_KP_4 = 324
250
+ # Key: Keypad 5
251
+ KEY_KP_5 = 325
252
+ # Key: Keypad 6
253
+ KEY_KP_6 = 326
254
+ # Key: Keypad 7
255
+ KEY_KP_7 = 327
256
+ # Key: Keypad 8
257
+ KEY_KP_8 = 328
258
+ # Key: Keypad 9
259
+ KEY_KP_9 = 329
260
+ # Key: Keypad .
261
+ KEY_KP_DECIMAL = 330
262
+ # Key: Keypad /
263
+ KEY_KP_DIVIDE = 331
264
+ # Key: Keypad *
265
+ KEY_KP_MULTIPLY = 332
266
+ # Key: Keypad -
267
+ KEY_KP_SUBTRACT = 333
268
+ # Key: Keypad +
269
+ KEY_KP_ADD = 334
270
+ # Key: Keypad Enter
271
+ KEY_KP_ENTER = 335
272
+ # Key: Keypad =
273
+ KEY_KP_EQUAL = 336
274
+ # Key: Android back button
275
+ KEY_BACK = 4
276
+ # Key: Android menu button
277
+ KEY_MENU = 82
278
+ # Key: Android volume up button
279
+ KEY_VOLUME_UP = 24
280
+ # Key: Android volume down button
281
+ KEY_VOLUME_DOWN = 25
282
+
283
+ # ----------------------------------------------------------------------------------------------------
284
+ # MouseButton - Mouse buttons
285
+ # ----------------------------------------------------------------------------------------------------
286
+
287
+ # Mouse button left
288
+ MOUSE_BUTTON_LEFT = 0
289
+ # Mouse button right
290
+ MOUSE_BUTTON_RIGHT = 1
291
+ # Mouse button middle (pressed wheel)
292
+ MOUSE_BUTTON_MIDDLE = 2
293
+ # Mouse button side (advanced mouse device)
294
+ MOUSE_BUTTON_SIDE = 3
295
+ # Mouse button extra (advanced mouse device)
296
+ MOUSE_BUTTON_EXTRA = 4
297
+ # Mouse button forward (advanced mouse device)
298
+ MOUSE_BUTTON_FORWARD = 5
299
+ # Mouse button back (advanced mouse device)
300
+ MOUSE_BUTTON_BACK = 6
301
+
302
+ # ----------------------------------------------------------------------------------------------------
303
+ # MouseCursor - Mouse cursor
304
+ # ----------------------------------------------------------------------------------------------------
305
+
306
+ # Default pointer shape
307
+ MOUSE_CURSOR_DEFAULT = 0
308
+ # Arrow shape
309
+ MOUSE_CURSOR_ARROW = 1
310
+ # Text writing cursor shape
311
+ MOUSE_CURSOR_IBEAM = 2
312
+ # Cross shape
313
+ MOUSE_CURSOR_CROSSHAIR = 3
314
+ # Pointing hand cursor
315
+ MOUSE_CURSOR_POINTING_HAND = 4
316
+ # Horizontal resize/move arrow shape
317
+ MOUSE_CURSOR_RESIZE_EW = 5
318
+ # Vertical resize/move arrow shape
319
+ MOUSE_CURSOR_RESIZE_NS = 6
320
+ # Top-left to bottom-right diagonal resize/move arrow shape
321
+ MOUSE_CURSOR_RESIZE_NWSE = 7
322
+ # The top-right to bottom-left diagonal resize/move arrow shape
323
+ MOUSE_CURSOR_RESIZE_NESW = 8
324
+ # The omnidirectional resize/move cursor shape
325
+ MOUSE_CURSOR_RESIZE_ALL = 9
326
+ # The operation-not-allowed shape
327
+ MOUSE_CURSOR_NOT_ALLOWED = 10
328
+
329
+ # ----------------------------------------------------------------------------------------------------
330
+ # GamepadButton - Gamepad buttons
331
+ # ----------------------------------------------------------------------------------------------------
332
+
333
+ # Unknown button, just for error checking
334
+ GAMEPAD_BUTTON_UNKNOWN = 0
335
+ # Gamepad left DPAD up button
336
+ GAMEPAD_BUTTON_LEFT_FACE_UP = 1
337
+ # Gamepad left DPAD right button
338
+ GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2
339
+ # Gamepad left DPAD down button
340
+ GAMEPAD_BUTTON_LEFT_FACE_DOWN = 3
341
+ # Gamepad left DPAD left button
342
+ GAMEPAD_BUTTON_LEFT_FACE_LEFT = 4
343
+ # Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)
344
+ GAMEPAD_BUTTON_RIGHT_FACE_UP = 5
345
+ # Gamepad right button right (i.e. PS3: Square, Xbox: X)
346
+ GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6
347
+ # Gamepad right button down (i.e. PS3: Cross, Xbox: A)
348
+ GAMEPAD_BUTTON_RIGHT_FACE_DOWN = 7
349
+ # Gamepad right button left (i.e. PS3: Circle, Xbox: B)
350
+ GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8
351
+ # Gamepad top/back trigger left (first), it could be a trailing button
352
+ GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9
353
+ # Gamepad top/back trigger left (second), it could be a trailing button
354
+ GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10
355
+ # Gamepad top/back trigger right (one), it could be a trailing button
356
+ GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11
357
+ # Gamepad top/back trigger right (second), it could be a trailing button
358
+ GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = 12
359
+ # Gamepad center buttons, left one (i.e. PS3: Select)
360
+ GAMEPAD_BUTTON_MIDDLE_LEFT = 13
361
+ # Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)
362
+ GAMEPAD_BUTTON_MIDDLE = 14
363
+ # Gamepad center buttons, right one (i.e. PS3: Start)
364
+ GAMEPAD_BUTTON_MIDDLE_RIGHT = 15
365
+ # Gamepad joystick pressed button left
366
+ GAMEPAD_BUTTON_LEFT_THUMB = 16
367
+ # Gamepad joystick pressed button right
368
+ GAMEPAD_BUTTON_RIGHT_THUMB = 17
369
+
370
+ # ----------------------------------------------------------------------------------------------------
371
+ # GamepadAxis - Gamepad axis
372
+ # ----------------------------------------------------------------------------------------------------
373
+
374
+ # Gamepad left stick X axis
375
+ GAMEPAD_AXIS_LEFT_X = 0
376
+ # Gamepad left stick Y axis
377
+ GAMEPAD_AXIS_LEFT_Y = 1
378
+ # Gamepad right stick X axis
379
+ GAMEPAD_AXIS_RIGHT_X = 2
380
+ # Gamepad right stick Y axis
381
+ GAMEPAD_AXIS_RIGHT_Y = 3
382
+ # Gamepad back trigger left, pressure level: [1..-1]
383
+ GAMEPAD_AXIS_LEFT_TRIGGER = 4
384
+ # Gamepad back trigger right, pressure level: [1..-1]
385
+ GAMEPAD_AXIS_RIGHT_TRIGGER = 5
386
+
387
+ # ----------------------------------------------------------------------------------------------------
388
+ # MaterialMapIndex - Material map index
389
+ # ----------------------------------------------------------------------------------------------------
390
+
391
+ # Albedo material (same as: MATERIAL_MAP_DIFFUSE)
392
+ MATERIAL_MAP_ALBEDO = 0
393
+ # Metalness material (same as: MATERIAL_MAP_SPECULAR)
394
+ MATERIAL_MAP_METALNESS = 1
395
+ # Normal material
396
+ MATERIAL_MAP_NORMAL = 2
397
+ # Roughness material
398
+ MATERIAL_MAP_ROUGHNESS = 3
399
+ # Ambient occlusion material
400
+ MATERIAL_MAP_OCCLUSION = 4
401
+ # Emission material
402
+ MATERIAL_MAP_EMISSION = 5
403
+ # Heightmap material
404
+ MATERIAL_MAP_HEIGHT = 6
405
+ # Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
406
+ MATERIAL_MAP_CUBEMAP = 7
407
+ # Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
408
+ MATERIAL_MAP_IRRADIANCE = 8
409
+ # Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP)
410
+ MATERIAL_MAP_PREFILTER = 9
411
+ # Brdf material
412
+ MATERIAL_MAP_BRDF = 10
413
+
414
+ # ----------------------------------------------------------------------------------------------------
415
+ # ShaderLocationIndex - Shader location index
416
+ # ----------------------------------------------------------------------------------------------------
417
+
418
+ # Shader location: vertex attribute: position
419
+ SHADER_LOC_VERTEX_POSITION = 0
420
+ # Shader location: vertex attribute: texcoord01
421
+ SHADER_LOC_VERTEX_TEXCOORD01 = 1
422
+ # Shader location: vertex attribute: texcoord02
423
+ SHADER_LOC_VERTEX_TEXCOORD02 = 2
424
+ # Shader location: vertex attribute: normal
425
+ SHADER_LOC_VERTEX_NORMAL = 3
426
+ # Shader location: vertex attribute: tangent
427
+ SHADER_LOC_VERTEX_TANGENT = 4
428
+ # Shader location: vertex attribute: color
429
+ SHADER_LOC_VERTEX_COLOR = 5
430
+ # Shader location: matrix uniform: model-view-projection
431
+ SHADER_LOC_MATRIX_MVP = 6
432
+ # Shader location: matrix uniform: view (camera transform)
433
+ SHADER_LOC_MATRIX_VIEW = 7
434
+ # Shader location: matrix uniform: projection
435
+ SHADER_LOC_MATRIX_PROJECTION = 8
436
+ # Shader location: matrix uniform: model (transform)
437
+ SHADER_LOC_MATRIX_MODEL = 9
438
+ # Shader location: matrix uniform: normal
439
+ SHADER_LOC_MATRIX_NORMAL = 10
440
+ # Shader location: vector uniform: view
441
+ SHADER_LOC_VECTOR_VIEW = 11
442
+ # Shader location: vector uniform: diffuse color
443
+ SHADER_LOC_COLOR_DIFFUSE = 12
444
+ # Shader location: vector uniform: specular color
445
+ SHADER_LOC_COLOR_SPECULAR = 13
446
+ # Shader location: vector uniform: ambient color
447
+ SHADER_LOC_COLOR_AMBIENT = 14
448
+ # Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)
449
+ SHADER_LOC_MAP_ALBEDO = 15
450
+ # Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)
451
+ SHADER_LOC_MAP_METALNESS = 16
452
+ # Shader location: sampler2d texture: normal
453
+ SHADER_LOC_MAP_NORMAL = 17
454
+ # Shader location: sampler2d texture: roughness
455
+ SHADER_LOC_MAP_ROUGHNESS = 18
456
+ # Shader location: sampler2d texture: occlusion
457
+ SHADER_LOC_MAP_OCCLUSION = 19
458
+ # Shader location: sampler2d texture: emission
459
+ SHADER_LOC_MAP_EMISSION = 20
460
+ # Shader location: sampler2d texture: height
461
+ SHADER_LOC_MAP_HEIGHT = 21
462
+ # Shader location: samplerCube texture: cubemap
463
+ SHADER_LOC_MAP_CUBEMAP = 22
464
+ # Shader location: samplerCube texture: irradiance
465
+ SHADER_LOC_MAP_IRRADIANCE = 23
466
+ # Shader location: samplerCube texture: prefilter
467
+ SHADER_LOC_MAP_PREFILTER = 24
468
+ # Shader location: sampler2d texture: brdf
469
+ SHADER_LOC_MAP_BRDF = 25
470
+
471
+ # ----------------------------------------------------------------------------------------------------
472
+ # ShaderUniformDataType - Shader uniform data type
473
+ # ----------------------------------------------------------------------------------------------------
474
+
475
+ # Shader uniform type: float
476
+ SHADER_UNIFORM_FLOAT = 0
477
+ # Shader uniform type: vec2 (2 float)
478
+ SHADER_UNIFORM_VEC2 = 1
479
+ # Shader uniform type: vec3 (3 float)
480
+ SHADER_UNIFORM_VEC3 = 2
481
+ # Shader uniform type: vec4 (4 float)
482
+ SHADER_UNIFORM_VEC4 = 3
483
+ # Shader uniform type: int
484
+ SHADER_UNIFORM_INT = 4
485
+ # Shader uniform type: ivec2 (2 int)
486
+ SHADER_UNIFORM_IVEC2 = 5
487
+ # Shader uniform type: ivec3 (3 int)
488
+ SHADER_UNIFORM_IVEC3 = 6
489
+ # Shader uniform type: ivec4 (4 int)
490
+ SHADER_UNIFORM_IVEC4 = 7
491
+ # Shader uniform type: sampler2d
492
+ SHADER_UNIFORM_SAMPLER2D = 8
493
+
494
+ # ----------------------------------------------------------------------------------------------------
495
+ # ShaderAttributeDataType - Shader attribute data types
496
+ # ----------------------------------------------------------------------------------------------------
497
+
498
+ # Shader attribute type: float
499
+ SHADER_ATTRIB_FLOAT = 0
500
+ # Shader attribute type: vec2 (2 float)
501
+ SHADER_ATTRIB_VEC2 = 1
502
+ # Shader attribute type: vec3 (3 float)
503
+ SHADER_ATTRIB_VEC3 = 2
504
+ # Shader attribute type: vec4 (4 float)
505
+ SHADER_ATTRIB_VEC4 = 3
506
+
507
+ # ----------------------------------------------------------------------------------------------------
508
+ # PixelFormat - Pixel formats
509
+ # ----------------------------------------------------------------------------------------------------
510
+
511
+ # 8 bit per pixel (no alpha)
512
+ PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1
513
+ # 8*2 bpp (2 channels)
514
+ PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2
515
+ # 16 bpp
516
+ PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3
517
+ # 24 bpp
518
+ PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4
519
+ # 16 bpp (1 bit alpha)
520
+ PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5
521
+ # 16 bpp (4 bit alpha)
522
+ PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6
523
+ # 32 bpp
524
+ PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7
525
+ # 32 bpp (1 channel - float)
526
+ PIXELFORMAT_UNCOMPRESSED_R32 = 8
527
+ # 32*3 bpp (3 channels - float)
528
+ PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9
529
+ # 32*4 bpp (4 channels - float)
530
+ PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10
531
+ # 4 bpp (no alpha)
532
+ PIXELFORMAT_COMPRESSED_DXT1_RGB = 11
533
+ # 4 bpp (1 bit alpha)
534
+ PIXELFORMAT_COMPRESSED_DXT1_RGBA = 12
535
+ # 8 bpp
536
+ PIXELFORMAT_COMPRESSED_DXT3_RGBA = 13
537
+ # 8 bpp
538
+ PIXELFORMAT_COMPRESSED_DXT5_RGBA = 14
539
+ # 4 bpp
540
+ PIXELFORMAT_COMPRESSED_ETC1_RGB = 15
541
+ # 4 bpp
542
+ PIXELFORMAT_COMPRESSED_ETC2_RGB = 16
543
+ # 8 bpp
544
+ PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 17
545
+ # 4 bpp
546
+ PIXELFORMAT_COMPRESSED_PVRT_RGB = 18
547
+ # 4 bpp
548
+ PIXELFORMAT_COMPRESSED_PVRT_RGBA = 19
549
+ # 8 bpp
550
+ PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 20
551
+ # 2 bpp
552
+ PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 21
553
+
554
+ # ----------------------------------------------------------------------------------------------------
555
+ # TextureFilter - Texture parameters: filter mode
556
+ # ----------------------------------------------------------------------------------------------------
557
+
558
+ # No filter, just pixel approximation
559
+ TEXTURE_FILTER_POINT = 0
560
+ # Linear filtering
561
+ TEXTURE_FILTER_BILINEAR = 1
562
+ # Trilinear filtering (linear with mipmaps)
563
+ TEXTURE_FILTER_TRILINEAR = 2
564
+ # Anisotropic filtering 4x
565
+ TEXTURE_FILTER_ANISOTROPIC_4X = 3
566
+ # Anisotropic filtering 8x
567
+ TEXTURE_FILTER_ANISOTROPIC_8X = 4
568
+ # Anisotropic filtering 16x
569
+ TEXTURE_FILTER_ANISOTROPIC_16X = 5
570
+
571
+ # ----------------------------------------------------------------------------------------------------
572
+ # TextureWrap - Texture parameters: wrap mode
573
+ # ----------------------------------------------------------------------------------------------------
574
+
575
+ # Repeats texture in tiled mode
576
+ TEXTURE_WRAP_REPEAT = 0
577
+ # Clamps texture to edge pixel in tiled mode
578
+ TEXTURE_WRAP_CLAMP = 1
579
+ # Mirrors and repeats the texture in tiled mode
580
+ TEXTURE_WRAP_MIRROR_REPEAT = 2
581
+ # Mirrors and clamps to border the texture in tiled mode
582
+ TEXTURE_WRAP_MIRROR_CLAMP = 3
583
+
584
+ # ----------------------------------------------------------------------------------------------------
585
+ # CubemapLayout - Cubemap layouts
586
+ # ----------------------------------------------------------------------------------------------------
587
+
588
+ # Automatically detect layout type
589
+ CUBEMAP_LAYOUT_AUTO_DETECT = 0
590
+ # Layout is defined by a vertical line with faces
591
+ CUBEMAP_LAYOUT_LINE_VERTICAL = 1
592
+ # Layout is defined by a horizontal line with faces
593
+ CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2
594
+ # Layout is defined by a 3x4 cross with cubemap faces
595
+ CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = 3
596
+ # Layout is defined by a 4x3 cross with cubemap faces
597
+ CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4
598
+ # Layout is defined by a panorama image (equirrectangular map)
599
+ CUBEMAP_LAYOUT_PANORAMA = 5
600
+
601
+ # ----------------------------------------------------------------------------------------------------
602
+ # FontType - Font type, defines generation method
603
+ # ----------------------------------------------------------------------------------------------------
604
+
605
+ # Default font generation, anti-aliased
606
+ FONT_DEFAULT = 0
607
+ # Bitmap font generation, no anti-aliasing
608
+ FONT_BITMAP = 1
609
+ # SDF font generation, requires external shader
610
+ FONT_SDF = 2
611
+
612
+ # ----------------------------------------------------------------------------------------------------
613
+ # BlendMode - Color blending modes (pre-defined)
614
+ # ----------------------------------------------------------------------------------------------------
615
+
616
+ # Blend textures considering alpha (default)
617
+ BLEND_ALPHA = 0
618
+ # Blend textures adding colors
619
+ BLEND_ADDITIVE = 1
620
+ # Blend textures multiplying colors
621
+ BLEND_MULTIPLIED = 2
622
+ # Blend textures adding colors (alternative)
623
+ BLEND_ADD_COLORS = 3
624
+ # Blend textures subtracting colors (alternative)
625
+ BLEND_SUBTRACT_COLORS = 4
626
+ # Blend premultiplied textures considering alpha
627
+ BLEND_ALPHA_PREMULTIPLY = 5
628
+ # Blend textures using custom src/dst factors (use rlSetBlendFactors())
629
+ BLEND_CUSTOM = 6
630
+ # Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
631
+ BLEND_CUSTOM_SEPARATE = 7
632
+
633
+ # ----------------------------------------------------------------------------------------------------
634
+ # Gesture - Gesture
635
+ # ----------------------------------------------------------------------------------------------------
636
+
637
+ # No gesture
638
+ GESTURE_NONE = 0
639
+ # Tap gesture
640
+ GESTURE_TAP = 1
641
+ # Double tap gesture
642
+ GESTURE_DOUBLETAP = 2
643
+ # Hold gesture
644
+ GESTURE_HOLD = 4
645
+ # Drag gesture
646
+ GESTURE_DRAG = 8
647
+ # Swipe right gesture
648
+ GESTURE_SWIPE_RIGHT = 16
649
+ # Swipe left gesture
650
+ GESTURE_SWIPE_LEFT = 32
651
+ # Swipe up gesture
652
+ GESTURE_SWIPE_UP = 64
653
+ # Swipe down gesture
654
+ GESTURE_SWIPE_DOWN = 128
655
+ # Pinch in gesture
656
+ GESTURE_PINCH_IN = 256
657
+ # Pinch out gesture
658
+ GESTURE_PINCH_OUT = 512
659
+
660
+ # ----------------------------------------------------------------------------------------------------
661
+ # CameraMode - Camera system modes
662
+ # ----------------------------------------------------------------------------------------------------
663
+
664
+ # Custom camera
665
+ CAMERA_CUSTOM = 0
666
+ # Free camera
667
+ CAMERA_FREE = 1
668
+ # Orbital camera
669
+ CAMERA_ORBITAL = 2
670
+ # First person camera
671
+ CAMERA_FIRST_PERSON = 3
672
+ # Third person camera
673
+ CAMERA_THIRD_PERSON = 4
674
+
675
+ # ----------------------------------------------------------------------------------------------------
676
+ # CameraProjection - Camera projection
677
+ # ----------------------------------------------------------------------------------------------------
678
+
679
+ # Perspective projection
680
+ CAMERA_PERSPECTIVE = 0
681
+ # Orthographic projection
682
+ CAMERA_ORTHOGRAPHIC = 1
683
+
684
+ # ----------------------------------------------------------------------------------------------------
685
+ # NPatchLayout - N-patch layout
686
+ # ----------------------------------------------------------------------------------------------------
687
+
688
+ # Npatch layout: 3x3 tiles
689
+ NPATCH_NINE_PATCH = 0
690
+ # Npatch layout: 1x3 tiles
691
+ NPATCH_THREE_PATCH_VERTICAL = 1
692
+ # Npatch layout: 3x1 tiles
693
+ NPATCH_THREE_PATCH_HORIZONTAL = 2
694
+ end