raylib-bindings 0.7.18 → 0.8.1
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.
- checksums.yaml +4 -4
- data/ChangeLog +23 -0
- data/README.md +50 -27
- data/lib/config.rb +20 -65
- data/lib/libraylib.aarch64.so +0 -0
- data/lib/libraylib.arm64.dylib +0 -0
- data/lib/libraylib.dll +0 -0
- data/lib/libraylib.x86_64.dylib +0 -0
- data/lib/libraylib.x86_64.so +0 -0
- data/lib/physac.aarch64.so +0 -0
- data/lib/physac.arm64.dylib +0 -0
- data/lib/physac.dll +0 -0
- data/lib/physac.x86_64.dylib +0 -0
- data/lib/physac.x86_64.so +0 -0
- data/lib/raygui.aarch64.so +0 -0
- data/lib/raygui.arm64.dylib +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui.x86_64.dylib +0 -0
- data/lib/raygui.x86_64.so +0 -0
- data/lib/raygui_main.rb +18 -9
- data/lib/raylib_helper.rb +6 -6
- data/lib/raylib_main.rb +281 -255
- data/lib/raymath.rb +7 -0
- data/lib/rlgl.rb +112 -104
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 196a5c659a18e76e08aecdeff2609dc915f1f4d0992336c41ddb350f213081a7
|
|
4
|
+
data.tar.gz: 3ef6aa18b938166d109077eca9f221724e5fc7a12ebe1ac1030abecc99417233
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fc7720c6ae2f45b0a80ab0b5184064c0a8b3d21034afdd15cf078c0bbedafe120824d6275e6c447694264f425c2baac6b6baf0c18f12f5b325576087d09b0d2
|
|
7
|
+
data.tar.gz: 1c437efd367e4d80d24508c6633c4920791237722f19d8193d495390c4da3c3eed346523d3114c0a302fccbafc85e8589bd74b36ecdccd6766f4352c95b06252
|
data/ChangeLog
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
|
+
2026-06-06 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
|
+
|
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/ca46387b64d7c1d7505828b2c67d234d1ed0b81d ) and raygui ( https://github.com/raysan5/raygui/commit/d2d1feed5ce8bf89d7e8ff0e7868a063867b486a )
|
|
4
|
+
|
|
5
|
+
2026-05-03 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
6
|
+
|
|
7
|
+
* examples/toon_character_sprites.rb : Added
|
|
8
|
+
|
|
9
|
+
2026-05-02 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
10
|
+
|
|
11
|
+
* examples/flocking_plain.rb, examples/flocking_optimized.rb : Added
|
|
12
|
+
|
|
13
|
+
2026-04-25 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
14
|
+
|
|
15
|
+
* raylib v6.0 ( https://github.com/raysan5/raylib/releases/tag/6.0 )
|
|
16
|
+
|
|
17
|
+
2026-03-21 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
18
|
+
|
|
19
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/8a685877eb321fe0eaeabab7b8ec69d2f8a0064d ) and raygui ( https://github.com/raysan5/raygui/commit/3b2855842ab578a034f827c38cf8f62c042fc983 )
|
|
20
|
+
* Updated GitHub Actions scripts
|
|
21
|
+
* Added smoke test
|
|
22
|
+
|
|
1
23
|
2026-02-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
24
|
|
|
3
25
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/11e3e6e0b994d0543cb83e253438e08402dba014 ) and raygui ( https://github.com/raysan5/raygui/commit/960f13b6e07ab9876fbba572fa5f17eed268d6b4 )
|
|
26
|
+
* examples/models_animation_blending.cpu.rb, examples/models_animation_blending.gpu.rb : Added
|
|
4
27
|
|
|
5
28
|
2026-01-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
6
29
|
|
data/README.md
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
|
4
4
|
|
|
5
5
|
* Created : 2021-10-17
|
|
6
|
-
* Last modified : 2026-
|
|
6
|
+
* Last modified : 2026-06-06
|
|
7
7
|
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
|
9
9
|
|
|
10
|
-
* [raylib](https://github.com/raysan5/raylib) version [
|
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [6.1-dev]( https://github.com/raysan5/raylib/commit/ca46387b64d7c1d7505828b2c67d234d1ed0b81d )
|
|
11
11
|
* raylib
|
|
12
12
|
* raymath
|
|
13
13
|
* rlgl
|
|
14
|
-
* [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/
|
|
14
|
+
* [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/d2d1feed5ce8bf89d7e8ff0e7868a063867b486a )
|
|
15
15
|
* [Physac](https://github.com/raysan5/physac) version [1.1]( https://github.com/raysan5/physac/commit/4a8e17f263fb8e1150b3fbafc96f880c7d7a4833 )
|
|
16
16
|
|
|
17
17
|
<img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/bitmap_font_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/game_of_life_simple_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/lissajous_curve_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/procedural_texture_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/reversi_board_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/utf8_font_rb.png" width="125">
|
|
@@ -20,10 +20,7 @@ Provides Ruby bindings for raylib-related libraries including:
|
|
|
20
20
|
|
|
21
21
|
* Generated semi-automatically
|
|
22
22
|
* Based on Ruby/FFI ( https://github.com/ffi/ffi )
|
|
23
|
-
* Pre-built binaries are inside
|
|
24
|
-
* Windows (x86_64)
|
|
25
|
-
* macOS (x86_64, ARM64)
|
|
26
|
-
* Linux (x86_64, ARM64)
|
|
23
|
+
* Pre-built binaries are inside
|
|
27
24
|
|
|
28
25
|
## Quick Start ##
|
|
29
26
|
|
|
@@ -43,46 +40,55 @@ D:\> ruby template.rb
|
|
|
43
40
|
|
|
44
41
|
<img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/template_screenshot.png" width="400">
|
|
45
42
|
|
|
43
|
+
## Example Smoke Test ##
|
|
44
|
+
|
|
45
|
+
Run curated examples one by one for a short duration, terminate them, and report status:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
# cross-platform
|
|
49
|
+
ruby script/examples_smoke_test.rb
|
|
50
|
+
|
|
51
|
+
# Windows helper
|
|
52
|
+
script\examples_smoke_test.cmd
|
|
53
|
+
|
|
54
|
+
# POSIX helper
|
|
55
|
+
sh script/examples_smoke_test.sh
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Options:
|
|
59
|
+
|
|
60
|
+
* `--timeout 5` : per-example runtime in seconds before termination
|
|
61
|
+
* `--allowlist examples/smoke_allowlist.txt` : explicit list of runnable examples
|
|
62
|
+
* `--list` : print resolved allowlist and exit
|
|
63
|
+
* `--verbose` : print execution details and child output on failures
|
|
64
|
+
|
|
65
|
+
Exit code policy:
|
|
66
|
+
|
|
67
|
+
* `0` when all examples either exit successfully or are timeout-terminated
|
|
68
|
+
* non-zero when any example fails to spawn or exits with non-zero status before timeout
|
|
69
|
+
|
|
46
70
|
## Prerequisites ##
|
|
47
71
|
|
|
48
72
|
* Ruby interpreter
|
|
49
73
|
* Tested on:
|
|
50
|
-
* [macOS] https://rvm.io
|
|
51
|
-
* ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
|
|
52
74
|
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
|
53
|
-
* ruby 4.0.
|
|
54
|
-
* [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
|
|
55
|
-
* ruby 3.4.0dev (2024-12-25 master f450108330) +PRISM [x86_64-linux]
|
|
56
|
-
* [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
|
|
57
|
-
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [aarch64-linux]
|
|
75
|
+
* ruby 4.0.2 (2026-03-17 revision d3da9fec82) +PRISM [x64-mingw-ucrt]
|
|
58
76
|
|
|
59
77
|
* If you need to build DLLs/shared libralies for your own runtime envrioenment (Linux, etc.):
|
|
60
78
|
* CMake https://cmake.org/download/
|
|
61
79
|
* C Compiler
|
|
62
80
|
* Tested compilers:
|
|
63
|
-
* [macOS] clang
|
|
64
|
-
|
|
65
|
-
$ clang --version
|
|
66
|
-
Apple clang version 16.0.0 (clang-1600.0.26.6)
|
|
67
|
-
Target: arm64-apple-darwin24.2.0
|
|
68
|
-
Thread model: posix
|
|
69
|
-
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
|
70
|
-
|
|
71
81
|
* [Windows] gcc
|
|
72
82
|
|
|
73
83
|
gcc (Rev8, Built by MSYS2 project) 15.2.0
|
|
74
84
|
|
|
75
|
-
* [Linux] gcc, clang
|
|
76
|
-
|
|
77
|
-
(x86_64) Ubuntu clang version 14.0.0-1ubuntu1
|
|
78
|
-
(arm64) Debian clang version 14.0.6
|
|
79
|
-
|
|
80
85
|
<details>
|
|
81
86
|
<summary>Older versions</summary>
|
|
82
87
|
|
|
83
88
|
* Ruby interpreter
|
|
84
89
|
* Tested on:
|
|
85
90
|
* [macOS]
|
|
91
|
+
* ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
|
|
86
92
|
* ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [arm64-darwin23]
|
|
87
93
|
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
|
|
88
94
|
* ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]
|
|
@@ -91,6 +97,7 @@ D:\> ruby template.rb
|
|
|
91
97
|
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
|
92
98
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
|
93
99
|
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
|
100
|
+
* ruby 4.0.1 (2026-01-13 revision e04267a14b) +PRISM [x64-mingw-ucrt]
|
|
94
101
|
* ruby 4.0.0 (2025-12-25 revision 553f1675f3) +PRISM [x64-mingw-ucrt]
|
|
95
102
|
* ruby 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [x64-mingw-ucrt]
|
|
96
103
|
* ruby 3.4.4 (2025-05-14 revision a38531fd3f) +PRISM [x64-mingw-ucrt]
|
|
@@ -102,8 +109,10 @@ D:\> ruby template.rb
|
|
|
102
109
|
* ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
|
|
103
110
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
|
104
111
|
* [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
|
|
112
|
+
* ruby 3.4.0dev (2024-12-25 master f450108330) +PRISM [x86_64-linux]
|
|
105
113
|
* ruby 3.2.0preview1 (2022-04-03 master f801386f0c) [x86_64-linux]
|
|
106
114
|
* [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
|
|
115
|
+
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [aarch64-linux]
|
|
107
116
|
* ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
|
|
108
117
|
|
|
109
118
|
* Compiler
|
|
@@ -147,11 +156,17 @@ D:\> ruby template.rb
|
|
|
147
156
|
|
|
148
157
|
* [Windows] gcc
|
|
149
158
|
|
|
159
|
+
gcc (Rev8, Built by MSYS2 project) 15.2.0
|
|
150
160
|
gcc (Rev3, Built by MSYS2 project) 13.2.0
|
|
151
161
|
gcc (Rev7, Built by MSYS2 project) 12.2.0
|
|
152
162
|
gcc (Rev10, Built by MSYS2 project) 11.2.0
|
|
153
163
|
gcc (Rev9, Built by MSYS2 project) 11.2.0
|
|
154
164
|
|
|
165
|
+
* [Linux] gcc, clang
|
|
166
|
+
|
|
167
|
+
(x86_64) Ubuntu clang version 14.0.0-1ubuntu1
|
|
168
|
+
(arm64) Debian clang version 14.0.6
|
|
169
|
+
|
|
155
170
|
</details>
|
|
156
171
|
|
|
157
172
|
## Projects ##
|
|
@@ -172,12 +187,20 @@ See the projects below to learn how to use this library:
|
|
|
172
187
|
* <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings-flapper/main/doc/screenshot_01.png" width="150">
|
|
173
188
|
* <https://github.com/vaiorabbit/raylib-bindings-flapper>
|
|
174
189
|
|
|
190
|
+
* Animal Tower : Ruby raylib bindings demo
|
|
191
|
+
* <img src="https://github.com/vaiorabbit/raylib-bindings-animal-tower/blob/bfda0f669e7f7f43938adb08a04aeaa0aeeb6958/doc/screenshot_00.png" width="600">
|
|
192
|
+
* <https://github.com/vaiorabbit/raylib-bindings-animal-tower>
|
|
193
|
+
|
|
175
194
|
### Libraries ###
|
|
176
195
|
|
|
177
196
|
* raylib-bindings-tileson : Provides Ruby bindings for raylib-tileson ( https://github.com/RobLoach/raylib-tileson )
|
|
178
197
|
* <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings-tileson/main/doc/screenshot_00.png" width="600">
|
|
179
198
|
* <https://github.com/vaiorabbit/raylib-bindings-tileson>
|
|
180
199
|
|
|
200
|
+
## Projects using raylib-bindings
|
|
201
|
+
|
|
202
|
+
See <https://github.com/vaiorabbit/raylib-bindings/tree/main/doc/gallery/gallery.md>
|
|
203
|
+
|
|
181
204
|
## Limitation ##
|
|
182
205
|
|
|
183
206
|
* `SetTraceLogCallback` and `TraceLogCallback` are unusable since Ruby-FFI does not support `:varargs` parameter in callbacks (`Proc`, etc.)
|
data/lib/config.rb
CHANGED
|
@@ -13,10 +13,9 @@ module Raylib
|
|
|
13
13
|
|
|
14
14
|
SUPPORT_MODULE_RSHAPES = 1
|
|
15
15
|
SUPPORT_MODULE_RTEXTURES = 1
|
|
16
|
-
SUPPORT_MODULE_RTEXT = 1
|
|
16
|
+
SUPPORT_MODULE_RTEXT = 1 # WARNING: It requires SUPPORT_MODULE_RTEXTURES to load sprite font textures
|
|
17
17
|
SUPPORT_MODULE_RMODELS = 1
|
|
18
18
|
SUPPORT_MODULE_RAUDIO = 1
|
|
19
|
-
SUPPORT_STANDARD_FILEIO = 1
|
|
20
19
|
SUPPORT_TRACELOG = 1
|
|
21
20
|
SUPPORT_CAMERA_SYSTEM = 1
|
|
22
21
|
SUPPORT_GESTURES_SYSTEM = 1
|
|
@@ -24,76 +23,36 @@ module Raylib
|
|
|
24
23
|
SUPPORT_MOUSE_GESTURES = 1
|
|
25
24
|
SUPPORT_SSH_KEYBOARD_RPI = 1
|
|
26
25
|
SUPPORT_WINMM_HIGHRES_TIMER = 1
|
|
26
|
+
SUPPORT_BUSY_WAIT_LOOP = 0 # Disabled by default
|
|
27
27
|
SUPPORT_PARTIALBUSY_WAIT_LOOP = 1
|
|
28
28
|
SUPPORT_SCREEN_CAPTURE = 1
|
|
29
29
|
SUPPORT_COMPRESSION_API = 1
|
|
30
30
|
SUPPORT_AUTOMATION_EVENTS = 1
|
|
31
|
+
SUPPORT_CUSTOM_FRAME_CONTROL = 0 # Disabled by default
|
|
31
32
|
SUPPORT_CLIPBOARD_IMAGE = 1
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
SUPPORT_FILEFORMAT_JPG = 1
|
|
35
|
-
MAX_TRACELOG_MSG_LENGTH = 256 # Max length of one trace-log message
|
|
36
|
-
MAX_FILEPATH_CAPACITY = 8192 # Maximum file paths capacity
|
|
37
|
-
MAX_FILEPATH_LENGTH = 4096 # Maximum length for filepaths (Linux PATH_MAX default value)
|
|
38
|
-
MAX_KEYBOARD_KEYS = 512 # Maximum number of keyboard keys supported
|
|
39
|
-
MAX_MOUSE_BUTTONS = 8 # Maximum number of mouse buttons supported
|
|
40
|
-
MAX_GAMEPADS = 4 # Maximum number of gamepads supported
|
|
41
|
-
MAX_GAMEPAD_AXES = 8 # Maximum number of axes supported (per gamepad)
|
|
42
|
-
MAX_GAMEPAD_BUTTONS = 32 # Maximum number of buttons supported (per gamepad)
|
|
43
|
-
MAX_GAMEPAD_VIBRATION_TIME = 2.0 # Maximum vibration time in seconds
|
|
44
|
-
MAX_TOUCH_POINTS = 10 # Maximum number of touch points supported
|
|
45
|
-
MAX_KEY_PRESSED_QUEUE = 16 # Maximum number of keys in the key input queue
|
|
46
|
-
MAX_CHAR_PRESSED_QUEUE = 16 # Maximum number of characters in the char input queue
|
|
47
|
-
MAX_DECOMPRESSION_SIZE = 64 # Max size allocated for decompression in MB
|
|
48
|
-
MAX_AUTOMATION_EVENTS = 16384 # Maximum number of automation events to record
|
|
49
|
-
RL_SUPPORT_MESH_GPU_SKINNING = 1 # GPU skinning, comment if your GPU does not support more than 8 VBOs
|
|
50
|
-
RL_DEFAULT_BATCH_BUFFERS = 1 # Default number of batch buffers (multi-buffering)
|
|
51
|
-
RL_DEFAULT_BATCH_DRAWCALLS = 256 # Default number of batch draw calls (by state changes: mode, texture)
|
|
52
|
-
RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS = 4 # Maximum number of textures units that can be activated on batch drawing (SetShaderValueTexture())
|
|
53
|
-
RL_MAX_MATRIX_STACK_SIZE = 32 # Maximum size of internal Matrix stack
|
|
54
|
-
RL_MAX_SHADER_LOCATIONS = 32 # Maximum number of shader locations supported
|
|
55
|
-
RL_CULL_DISTANCE_NEAR = 0.05 # Default projection matrix near cull distance
|
|
56
|
-
RL_CULL_DISTANCE_FAR = 4000.0 # Default projection matrix far cull distance
|
|
57
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION = 0
|
|
58
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD = 1
|
|
59
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL = 2
|
|
60
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR = 3
|
|
61
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT = 4
|
|
62
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 = 5
|
|
63
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES = 6
|
|
64
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS = 7
|
|
65
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS = 8
|
|
66
|
-
RL_DEFAULT_SHADER_ATTRIB_LOCATION_INSTANCE_TX = 9
|
|
67
|
-
RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION = "vertexPosition" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION
|
|
68
|
-
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD = "vertexTexCoord" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD
|
|
69
|
-
RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL = "vertexNormal" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL
|
|
70
|
-
RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR = "vertexColor" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR
|
|
71
|
-
RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT = "vertexTangent" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT
|
|
72
|
-
RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 = "vertexTexCoord2" # Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2
|
|
73
|
-
RL_DEFAULT_SHADER_UNIFORM_NAME_MVP = "mvp" # model-view-projection matrix
|
|
74
|
-
RL_DEFAULT_SHADER_UNIFORM_NAME_VIEW = "matView" # view matrix
|
|
75
|
-
RL_DEFAULT_SHADER_UNIFORM_NAME_PROJECTION = "matProjection" # projection matrix
|
|
76
|
-
RL_DEFAULT_SHADER_UNIFORM_NAME_MODEL = "matModel" # model matrix
|
|
77
|
-
RL_DEFAULT_SHADER_UNIFORM_NAME_NORMAL = "matNormal" # normal matrix (transpose(inverse(matModelView))
|
|
78
|
-
RL_DEFAULT_SHADER_UNIFORM_NAME_COLOR = "colDiffuse" # color diffuse (base tint color, multiplied by texture color)
|
|
79
|
-
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE0 = "texture0" # texture0 (texture slot active 0)
|
|
80
|
-
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE1 = "texture1" # texture1 (texture slot active 1)
|
|
81
|
-
RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE2 = "texture2" # texture2 (texture slot active 2)
|
|
33
|
+
RLGL_ENABLE_OPENGL_DEBUG_CONTEXT = 0
|
|
34
|
+
RLGL_SHOW_GL_DETAILS_INFO = 0
|
|
82
35
|
SUPPORT_QUADS_DRAW_MODE = 1
|
|
83
|
-
|
|
36
|
+
SUPPORT_FILEFORMAT_PNG = 1
|
|
37
|
+
SUPPORT_FILEFORMAT_BMP = 1
|
|
38
|
+
SUPPORT_FILEFORMAT_TGA = 0 # Disabled by default
|
|
39
|
+
SUPPORT_FILEFORMAT_JPG = 0 # Disabled by default
|
|
84
40
|
SUPPORT_FILEFORMAT_GIF = 1
|
|
85
41
|
SUPPORT_FILEFORMAT_QOI = 1
|
|
42
|
+
SUPPORT_FILEFORMAT_PSD = 0 # Disabled by default
|
|
86
43
|
SUPPORT_FILEFORMAT_DDS = 1
|
|
44
|
+
SUPPORT_FILEFORMAT_HDR = 0 # Disabled by default
|
|
45
|
+
SUPPORT_FILEFORMAT_PIC = 0 # Disabled by default
|
|
46
|
+
SUPPORT_FILEFORMAT_PNM = 0 # Disabled by default
|
|
47
|
+
SUPPORT_FILEFORMAT_KTX = 0 # Disabled by default
|
|
48
|
+
SUPPORT_FILEFORMAT_ASTC = 0 # Disabled by default
|
|
49
|
+
SUPPORT_FILEFORMAT_PKM = 0 # Disabled by default
|
|
50
|
+
SUPPORT_FILEFORMAT_PVR = 0 # Disabled by default
|
|
87
51
|
SUPPORT_IMAGE_EXPORT = 1
|
|
88
52
|
SUPPORT_IMAGE_GENERATION = 1
|
|
89
|
-
SUPPORT_IMAGE_MANIPULATION = 1
|
|
90
|
-
SUPPORT_DEFAULT_FONT = 1
|
|
91
53
|
SUPPORT_FILEFORMAT_TTF = 1
|
|
92
54
|
SUPPORT_FILEFORMAT_FNT = 1
|
|
93
|
-
|
|
94
|
-
SUPPORT_FONT_ATLAS_WHITE_REC = 1
|
|
95
|
-
MAX_TEXT_BUFFER_LENGTH = 1024 # Size of internal static buffers used on some functions:
|
|
96
|
-
MAX_TEXTSPLIT_COUNT = 128 # Maximum number of substrings to split: TextSplit()
|
|
55
|
+
SUPPORT_FILEFORMAT_BDF = 0 # Disabled by default
|
|
97
56
|
SUPPORT_FILEFORMAT_OBJ = 1
|
|
98
57
|
SUPPORT_FILEFORMAT_MTL = 1
|
|
99
58
|
SUPPORT_FILEFORMAT_IQM = 1
|
|
@@ -101,17 +60,13 @@ module Raylib
|
|
|
101
60
|
SUPPORT_FILEFORMAT_VOX = 1
|
|
102
61
|
SUPPORT_FILEFORMAT_M3D = 1
|
|
103
62
|
SUPPORT_MESH_GENERATION = 1
|
|
104
|
-
|
|
105
|
-
MAX_MESH_VERTEX_BUFFERS = 9 # Maximum vertex buffers (VBO) per mesh
|
|
63
|
+
SUPPORT_GPU_SKINNING = 0
|
|
106
64
|
SUPPORT_FILEFORMAT_WAV = 1
|
|
107
65
|
SUPPORT_FILEFORMAT_OGG = 1
|
|
108
66
|
SUPPORT_FILEFORMAT_MP3 = 1
|
|
109
67
|
SUPPORT_FILEFORMAT_QOA = 1
|
|
68
|
+
SUPPORT_FILEFORMAT_FLAC = 0 # Disabled by default
|
|
110
69
|
SUPPORT_FILEFORMAT_XM = 1
|
|
111
70
|
SUPPORT_FILEFORMAT_MOD = 1
|
|
112
|
-
AUDIO_DEVICE_CHANNELS = 2 # Device output channels: stereo
|
|
113
|
-
AUDIO_DEVICE_SAMPLE_RATE = 0 # Device sample rate (device default)
|
|
114
|
-
AUDIO_DEVICE_PERIOD_SIZE_IN_FRAMES = 0 # Device period size (controls latency, 0 defaults to 10ms)
|
|
115
|
-
MAX_AUDIO_BUFFER_POOL_CHANNELS = 16 # Maximum number of audio pool channels
|
|
116
71
|
|
|
117
72
|
end
|
data/lib/libraylib.aarch64.so
CHANGED
|
Binary file
|
data/lib/libraylib.arm64.dylib
CHANGED
|
Binary file
|
data/lib/libraylib.dll
CHANGED
|
Binary file
|
data/lib/libraylib.x86_64.dylib
CHANGED
|
Binary file
|
data/lib/libraylib.x86_64.so
CHANGED
|
Binary file
|
data/lib/physac.aarch64.so
CHANGED
|
Binary file
|
data/lib/physac.arm64.dylib
CHANGED
|
Binary file
|
data/lib/physac.dll
CHANGED
|
Binary file
|
data/lib/physac.x86_64.dylib
CHANGED
|
Binary file
|
data/lib/physac.x86_64.so
CHANGED
|
Binary file
|
data/lib/raygui.aarch64.so
CHANGED
|
Binary file
|
data/lib/raygui.arm64.dylib
CHANGED
|
Binary file
|
data/lib/raygui.dll
CHANGED
|
Binary file
|
data/lib/raygui.x86_64.dylib
CHANGED
|
Binary file
|
data/lib/raygui.x86_64.so
CHANGED
|
Binary file
|
data/lib/raygui_main.rb
CHANGED
|
@@ -11,8 +11,8 @@ module Raylib
|
|
|
11
11
|
|
|
12
12
|
# Define/Macro
|
|
13
13
|
|
|
14
|
-
RAYGUI_VERSION_MAJOR =
|
|
15
|
-
RAYGUI_VERSION_MINOR =
|
|
14
|
+
RAYGUI_VERSION_MAJOR = 5
|
|
15
|
+
RAYGUI_VERSION_MINOR = 0
|
|
16
16
|
RAYGUI_VERSION_PATCH = 0
|
|
17
17
|
RAYGUI_VERSION = "5.0-dev"
|
|
18
18
|
SCROLLBAR_LEFT_SIDE = 0
|
|
@@ -104,6 +104,7 @@ module Raylib
|
|
|
104
104
|
# enum GuiProgressBarProperty
|
|
105
105
|
# ProgressBar
|
|
106
106
|
PROGRESS_PADDING = 16 # ProgressBar internal padding
|
|
107
|
+
PROGRESS_SIDE = 17 # ProgressBar increment side: 0-left->right, 1-right-left
|
|
107
108
|
|
|
108
109
|
# enum GuiScrollBarProperty
|
|
109
110
|
# ScrollBar
|
|
@@ -408,12 +409,13 @@ module Raylib
|
|
|
408
409
|
ICON_CONE = 247
|
|
409
410
|
ICON_ELLIPSOID = 248
|
|
410
411
|
ICON_CAPSULE = 249
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
412
|
+
ICON_FILETYPE_FONT = 250
|
|
413
|
+
ICON_FILETYPE_3D = 251
|
|
414
|
+
ICON_FILETYPE_CODE_XML = 252
|
|
415
|
+
ICON_FILETYPE_CODE_C = 253
|
|
416
|
+
ICON_FILETYPE_CODE_PYTHON = 254
|
|
417
|
+
ICON_FILETYPE_CODE_JS = 255
|
|
418
|
+
ICON_FILETYPE_ICON = 256
|
|
417
419
|
|
|
418
420
|
|
|
419
421
|
# Typedef
|
|
@@ -535,6 +537,13 @@ module Raylib
|
|
|
535
537
|
# @return [void]
|
|
536
538
|
[:GuiLoadStyle, :GuiLoadStyle, [:pointer], :void],
|
|
537
539
|
|
|
540
|
+
# @!method GuiLoadStyleFromMemory(fileData, dataSize)
|
|
541
|
+
# GuiLoadStyleFromMemory : Load style from memory (binary only)
|
|
542
|
+
# @param fileData [const unsigned char *]
|
|
543
|
+
# @param dataSize [int]
|
|
544
|
+
# @return [void]
|
|
545
|
+
[:GuiLoadStyleFromMemory, :GuiLoadStyleFromMemory, [:pointer, :int], :void],
|
|
546
|
+
|
|
538
547
|
# @!method GuiLoadStyleDefault()
|
|
539
548
|
# GuiLoadStyleDefault : Load style default over global style
|
|
540
549
|
# @return [void]
|
|
@@ -822,7 +831,7 @@ module Raylib
|
|
|
822
831
|
[:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
|
|
823
832
|
|
|
824
833
|
# @!method GuiListViewEx(bounds, text, count, scrollIndex, active, focus)
|
|
825
|
-
# GuiListViewEx : List View
|
|
834
|
+
# GuiListViewEx : List View using text entries list and returning focus entry
|
|
826
835
|
# @param bounds [Rectangle]
|
|
827
836
|
# @param text [char **]
|
|
828
837
|
# @param count [int]
|
data/lib/raylib_helper.rb
CHANGED
|
@@ -363,12 +363,12 @@ module Raylib
|
|
|
363
363
|
def initialize
|
|
364
364
|
@anims = nil
|
|
365
365
|
@anim_ptrs = nil
|
|
366
|
-
@
|
|
366
|
+
@keyframePoses = nil # array of Transform**
|
|
367
367
|
end
|
|
368
368
|
|
|
369
369
|
def anim(index) = @anims[index]
|
|
370
370
|
def anims_count = @anims.length
|
|
371
|
-
def frame_count(index) = @anims[index][:
|
|
371
|
+
def frame_count(index) = @anims[index][:keyframeCount]
|
|
372
372
|
|
|
373
373
|
# @return BoneInfo
|
|
374
374
|
def bone_info(anim_index, bone_index)
|
|
@@ -377,7 +377,7 @@ module Raylib
|
|
|
377
377
|
|
|
378
378
|
# @return Transform*
|
|
379
379
|
def frame_pose(index, frame)
|
|
380
|
-
@
|
|
380
|
+
@keyframePoses[index] + frame * FFI::NativeType::POINTER.size # Transform*
|
|
381
381
|
end
|
|
382
382
|
|
|
383
383
|
# @return Transform
|
|
@@ -393,9 +393,9 @@ module Raylib
|
|
|
393
393
|
# @return self
|
|
394
394
|
def setup(fileName)
|
|
395
395
|
@anims, @anim_ptrs = LoadAndAllocateModelAnimations(fileName)
|
|
396
|
-
@
|
|
396
|
+
@keyframePoses = []
|
|
397
397
|
@anims.each do |anim|
|
|
398
|
-
@
|
|
398
|
+
@keyframePoses << anim[:keyframePoses]
|
|
399
399
|
end
|
|
400
400
|
self
|
|
401
401
|
end
|
|
@@ -423,7 +423,7 @@ module Raylib
|
|
|
423
423
|
# @param anim_ptrs [pointer to loaded memory]
|
|
424
424
|
def UnloadAndFreeModelAnimations(anims, anim_ptrs)
|
|
425
425
|
anims.each do |anim|
|
|
426
|
-
|
|
426
|
+
UnloadModelAnimations(anim, 1)
|
|
427
427
|
end
|
|
428
428
|
MemFree(anim_ptrs)
|
|
429
429
|
end
|