raylib-bindings 0.6.0-x64-mingw → 0.6.1-x64-mingw
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 +33 -0
- data/LICENSE.txt +1 -1
- data/README.md +29 -14
- data/examples/template.rb +2 -1
- data/lib/libraylib.dll +0 -0
- data/lib/physac.dll +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raylib_helper.rb +12 -0
- data/lib/raylib_main.rb +52 -15
- data/lib/rlgl.rb +32 -16
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c753116b4e7f53896206404872bac64019bb454155f6b9ceabafbfbf3ad0120
|
4
|
+
data.tar.gz: 20c17a4b249b5ab3639434079048862bca42c539773025db9ef66940b19e3118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73d691a6848116498d461c9a24c6e09ded4811e528da0b794d301cd3f7760726a26598f32005a84e7e461d6dc563ba01f42f53d46aacdfbdab43094639c001b5
|
7
|
+
data.tar.gz: 7d6e4fbecb8e86cede687ec05d29382a99b31cd597b5a09f324334b2799b8718bc67c31504e62921262736575a1ecca5e600c8413daf9bf68d2ad5245cf83926
|
data/ChangeLog
CHANGED
@@ -1,3 +1,36 @@
|
|
1
|
+
2024-01-07 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated README
|
4
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/be0ea89f830cce2fcb62acfedc69da4faca11b43 )
|
5
|
+
|
6
|
+
2024-01-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
7
|
+
|
8
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/eb6dcab308162037272edbad93ea1f10797c7352 ) and raygui ( https://github.com/raysan5/raygui/commit/e30a826909cefbce39bae4ceaee76da6b163e2b1 )
|
9
|
+
|
10
|
+
2023-12-30 vaiorabbit <http://twitter.com/vaiorabbit>
|
11
|
+
|
12
|
+
* examples/raylib_with_tileson.rb : Added
|
13
|
+
|
14
|
+
2023-12-17 vaiorabbit <http://twitter.com/vaiorabbit>
|
15
|
+
|
16
|
+
* examples/shaders_basic_pbr.rb : Added
|
17
|
+
|
18
|
+
2023-12-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
19
|
+
|
20
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/fd84ab3cf735a643a074780ba73559d125e35aad ) and raygui ( https://github.com/raysan5/raygui/commit/2c8dc854d4e585761c2d4c77b4abbc46d298d5be )
|
21
|
+
|
22
|
+
2023-12-09 vaiorabbit <http://twitter.com/vaiorabbit>
|
23
|
+
|
24
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/a9ba51aa72cfc9c75c2230726a49e1d9065b3c01 ) and raygui ( https://github.com/raysan5/raygui/commit/dc103715435a258c68b00a89ba48b95c146e5b87 )
|
25
|
+
|
26
|
+
2023-11-30 vaiorabbit <http://twitter.com/vaiorabbit>
|
27
|
+
|
28
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/e7a486fa81adac1833253c849ca73c5b3f7ef361 )
|
29
|
+
|
30
|
+
2023-11-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
31
|
+
|
32
|
+
* Removed unnecessary dependency
|
33
|
+
|
1
34
|
2023-11-18 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
35
|
|
3
36
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/ae50bfa2cc569c0f8d5bc4315d39db64005b1b08 ) and raygui ( https://github.com/raysan5/raygui/commit/141ae0cd312656b7764b01079e43fc887aaaf4ce )
|
data/LICENSE.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Ruby-raylib : Yet another raylib wrapper for Ruby
|
2
|
-
Copyright (c) 2021-
|
2
|
+
Copyright (c) 2021-2024 vaiorabbit <http://twitter.com/vaiorabbit>
|
3
3
|
|
4
4
|
This software is provided 'as-is', without any express or implied
|
5
5
|
warranty. In no event will the authors be held liable for any damages
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
4
4
|
|
5
5
|
* Created : 2021-10-17
|
6
|
-
* Last modified :
|
6
|
+
* Last modified : 2024-01-07
|
7
7
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
9
9
|
|
@@ -23,7 +23,7 @@ Provides Ruby bindings for raylib-related libraries including:
|
|
23
23
|
* Pre-built binaries are inside:
|
24
24
|
* Windows (x86_64)
|
25
25
|
* macOS (x86_64, ARM64)
|
26
|
-
* Linux (x86_64
|
26
|
+
* Linux (x86_64, ARM64)
|
27
27
|
|
28
28
|
## Quick Start ##
|
29
29
|
|
@@ -48,13 +48,13 @@ D:\> ruby template.rb
|
|
48
48
|
* Ruby interpreter
|
49
49
|
* Tested on:
|
50
50
|
* [macOS] https://rvm.io
|
51
|
-
* ruby 3.
|
51
|
+
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
|
52
52
|
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
53
|
-
* ruby 3.
|
53
|
+
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
|
54
54
|
* [Linux/x86_64 WSL] https://github.com/rvm/ubuntu_rvm
|
55
55
|
* ruby 3.2.0preview1 (2022-04-03 master f801386f0c) [x86_64-linux]
|
56
56
|
* [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
|
57
|
-
* ruby 3.
|
57
|
+
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [aarch64-linux]
|
58
58
|
|
59
59
|
* If you need to build DLLs/shared libralies for your own runtime envrioenment (Linux, etc.):
|
60
60
|
* CMake https://cmake.org/download/
|
@@ -63,19 +63,19 @@ D:\> ruby template.rb
|
|
63
63
|
* [macOS] clang
|
64
64
|
|
65
65
|
$ clang --version
|
66
|
-
Apple clang version
|
67
|
-
Target: arm64-apple-
|
66
|
+
Apple clang version 15.0.0 (clang-1500.0.40.1)
|
67
|
+
Target: arm64-apple-darwin23.0.0
|
68
68
|
Thread model: posix
|
69
69
|
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
70
70
|
|
71
71
|
* [Windows] gcc
|
72
72
|
|
73
|
-
gcc (
|
73
|
+
gcc (Rev3, Built by MSYS2 project) 13.2.0
|
74
74
|
|
75
75
|
* [Linux] gcc, clang
|
76
76
|
|
77
77
|
(x86_64) Ubuntu clang version 14.0.0-1ubuntu1
|
78
|
-
(arm64)
|
78
|
+
(arm64) Debian clang version 14.0.6
|
79
79
|
|
80
80
|
<details>
|
81
81
|
<summary>Older versions</summary>
|
@@ -83,19 +83,29 @@ D:\> ruby template.rb
|
|
83
83
|
* Ruby interpreter
|
84
84
|
* Tested on:
|
85
85
|
* [macOS]
|
86
|
+
* ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]
|
86
87
|
* ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
|
87
88
|
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
|
88
89
|
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
89
90
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
90
91
|
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
92
|
+
* ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
|
91
93
|
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
|
92
94
|
* ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
|
93
95
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
96
|
+
* [Linux/ARM64 Chromebook] https://github.com/rvm/ubuntu_rvm
|
97
|
+
* ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
|
94
98
|
|
95
99
|
* Compiler
|
96
100
|
* Tested on:
|
97
101
|
* [macOS] clang
|
98
102
|
|
103
|
+
$ clang --version
|
104
|
+
Apple clang version 14.0.0 (clang-1400.0.29.202)
|
105
|
+
Target: arm64-apple-darwin22.2.0
|
106
|
+
Thread model: posix
|
107
|
+
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
|
108
|
+
|
99
109
|
$ clang --version
|
100
110
|
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
|
101
111
|
Target: arm64-apple-darwin21.5.0
|
@@ -115,8 +125,9 @@ D:\> ruby template.rb
|
|
115
125
|
|
116
126
|
* [Windows] gcc
|
117
127
|
|
118
|
-
gcc (
|
128
|
+
gcc (Rev7, Built by MSYS2 project) 12.2.0
|
119
129
|
gcc (Rev10, Built by MSYS2 project) 11.2.0
|
130
|
+
gcc (Rev9, Built by MSYS2 project) 11.2.0
|
120
131
|
|
121
132
|
</details>
|
122
133
|
|
@@ -132,6 +143,10 @@ See the projects below to learn how to use this library:
|
|
132
143
|
* <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings-pacone/main/doc/screenshot_00.png" width="600">
|
133
144
|
* <https://github.com/vaiorabbit/raylib-bindings-pacone>
|
134
145
|
|
146
|
+
* flapper.rb : Ruby raylib bindings demo
|
147
|
+
* <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings-flapper/main/doc/screenshot_01.png" width="150">
|
148
|
+
* <https://github.com/vaiorabbit/raylib-bindings-flapper>
|
149
|
+
|
135
150
|
## Limitation ##
|
136
151
|
|
137
152
|
* `SetTraceLogCallback` and `TraceLogCallback` are unusable since Ruby-FFI does not support `:varargs` parameter in callbacks (`Proc`, etc.)
|
@@ -141,20 +156,20 @@ See the projects below to learn how to use this library:
|
|
141
156
|
|
142
157
|
Shared libraries in `lib` directory are built on top of these products and are available under the terms of these licenses:
|
143
158
|
|
144
|
-
* `libraylib.dylib`, `libraylib.dll`, `libraylib.aarch64.so`, `libraylib.x86_64.so`
|
159
|
+
* `libraylib.arm64.dylib`, `libraylib.x86_64.dylib`, `libraylib.dll`, `libraylib.aarch64.so`, `libraylib.x86_64.so`
|
145
160
|
* raylib ( https://github.com/raysan5/raylib )
|
146
161
|
* zlib License https://github.com/raysan5/raylib/blob/master/LICENSE
|
147
|
-
* `raygui.dylib`, `raygui.dll`, `raygui.aarch64.so`, `raygui.x86_64.so`
|
162
|
+
* `raygui.arm64.dylib`, `raygui.x86_64.dylib`, `raygui.dll`, `raygui.aarch64.so`, `raygui.x86_64.so`
|
148
163
|
* raygui ( https://github.com/raysan5/raygui )
|
149
164
|
* zlib License https://github.com/raysan5/raygui/blob/master/LICENSE
|
150
|
-
* `physac.dylib`, `physac.dll`, `physac.aarch64.so
|
165
|
+
* `physac.arm64.dylib`, `physac.x86_64.dylib`, `physac.dll`, `physac.aarch64.so`, `physac.x86_64.so`
|
151
166
|
* Physac ( https://github.com/raysan5/physac )
|
152
167
|
* LICENSE: zlib/libpng https://github.com/raysan5/physac/blob/4a8e17f263fb8e1150b3fbafc96f880c7d7a4833/src/physac.h#L51-L68
|
153
168
|
|
154
169
|
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
155
170
|
|
156
171
|
Ruby-raylib : Yet another raylib wrapper for Ruby
|
157
|
-
Copyright (c) 2021-
|
172
|
+
Copyright (c) 2021-2024 vaiorabbit <http://twitter.com/vaiorabbit>
|
158
173
|
|
159
174
|
This software is provided 'as-is', without any express or implied
|
160
175
|
warranty. In no event will the authors be held liable for any damages
|
data/examples/template.rb
CHANGED
@@ -19,7 +19,8 @@ case RUBY_PLATFORM
|
|
19
19
|
when /mswin|msys|mingw|cygwin/
|
20
20
|
Raylib.load_lib(shared_lib_path + 'libraylib.dll', raygui_libpath: shared_lib_path + 'raygui.dll', physac_libpath: shared_lib_path + 'physac.dll')
|
21
21
|
when /darwin/
|
22
|
-
|
22
|
+
arch = RUBY_PLATFORM.split('-')[0]
|
23
|
+
Raylib.load_lib(shared_lib_path + "libraylib.#{arch}.dylib", raygui_libpath: shared_lib_path + "raygui.#{arch}.dylib", physac_libpath: shared_lib_path + "physac.#{arch}.dylib")
|
23
24
|
when /linux/
|
24
25
|
arch = RUBY_PLATFORM.split('-')[0]
|
25
26
|
Raylib.load_lib(shared_lib_path + "libraylib.#{arch}.so", raygui_libpath: shared_lib_path + "raygui.#{arch}.so", physac_libpath: shared_lib_path + "physac.#{arch}.so")
|
data/lib/libraylib.dll
CHANGED
Binary file
|
data/lib/physac.dll
CHANGED
Binary file
|
data/lib/raygui.dll
CHANGED
Binary file
|
data/lib/raylib_helper.rb
CHANGED
@@ -76,6 +76,18 @@ module Raylib
|
|
76
76
|
self
|
77
77
|
end
|
78
78
|
|
79
|
+
def add(x, y)
|
80
|
+
self[:x] = self[:x] + x
|
81
|
+
self[:y] = self[:y] + y
|
82
|
+
self
|
83
|
+
end
|
84
|
+
|
85
|
+
def add_vector(v)
|
86
|
+
self[:x] = self[:x] + v[:x]
|
87
|
+
self[:y] = self[:y] + v[:y]
|
88
|
+
self
|
89
|
+
end
|
90
|
+
|
79
91
|
def to_a
|
80
92
|
[x, y]
|
81
93
|
end
|
data/lib/raylib_main.rb
CHANGED
@@ -12,9 +12,9 @@ module Raylib
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
14
|
RAYLIB_VERSION_MAJOR = 5
|
15
|
-
RAYLIB_VERSION_MINOR =
|
15
|
+
RAYLIB_VERSION_MINOR = 1
|
16
16
|
RAYLIB_VERSION_PATCH = 0
|
17
|
-
RAYLIB_VERSION = "5.
|
17
|
+
RAYLIB_VERSION = "5.1-dev"
|
18
18
|
|
19
19
|
# Enum
|
20
20
|
|
@@ -1019,7 +1019,6 @@ module Raylib
|
|
1019
1019
|
:vResolution, :int, # Vertical resolution in pixels
|
1020
1020
|
:hScreenSize, :float, # Horizontal size in meters
|
1021
1021
|
:vScreenSize, :float, # Vertical size in meters
|
1022
|
-
:vScreenCenter, :float, # Screen center in meters
|
1023
1022
|
:eyeToScreenDistance, :float, # Distance between eye and display in meters
|
1024
1023
|
:lensSeparationDistance, :float, # Lens separation distance in meters
|
1025
1024
|
:interpupillaryDistance, :float, # IPD (distance between pupils) in meters
|
@@ -1034,8 +1033,6 @@ module Raylib
|
|
1034
1033
|
def hScreenSize=(v) self[:hScreenSize] = v end
|
1035
1034
|
def vScreenSize = self[:vScreenSize]
|
1036
1035
|
def vScreenSize=(v) self[:vScreenSize] = v end
|
1037
|
-
def vScreenCenter = self[:vScreenCenter]
|
1038
|
-
def vScreenCenter=(v) self[:vScreenCenter] = v end
|
1039
1036
|
def eyeToScreenDistance = self[:eyeToScreenDistance]
|
1040
1037
|
def eyeToScreenDistance=(v) self[:eyeToScreenDistance] = v end
|
1041
1038
|
def lensSeparationDistance = self[:lensSeparationDistance]
|
@@ -2010,9 +2007,9 @@ module Raylib
|
|
2010
2007
|
|
2011
2008
|
# @!method UnloadAutomationEventList(list)
|
2012
2009
|
# UnloadAutomationEventList : Unload automation events list from file
|
2013
|
-
# @param list [AutomationEventList
|
2010
|
+
# @param list [AutomationEventList]
|
2014
2011
|
# @return [void]
|
2015
|
-
[:UnloadAutomationEventList, :UnloadAutomationEventList, [
|
2012
|
+
[:UnloadAutomationEventList, :UnloadAutomationEventList, [AutomationEventList.by_value], :void],
|
2016
2013
|
|
2017
2014
|
# @!method ExportAutomationEventList(list, fileName)
|
2018
2015
|
# ExportAutomationEventList : Export automation events list as text file
|
@@ -2332,6 +2329,16 @@ module Raylib
|
|
2332
2329
|
# @return [void]
|
2333
2330
|
[:SetShapesTexture, :SetShapesTexture, [Texture2D.by_value, Rectangle.by_value], :void],
|
2334
2331
|
|
2332
|
+
# @!method GetShapesTexture()
|
2333
|
+
# GetShapesTexture : Get texture that is used for shapes drawing
|
2334
|
+
# @return [Texture2D]
|
2335
|
+
[:GetShapesTexture, :GetShapesTexture, [], Texture2D.by_value],
|
2336
|
+
|
2337
|
+
# @!method GetShapesTextureRectangle()
|
2338
|
+
# GetShapesTextureRectangle : Get texture source rectangle that is used for shapes drawing
|
2339
|
+
# @return [Rectangle]
|
2340
|
+
[:GetShapesTextureRectangle, :GetShapesTextureRectangle, [], Rectangle.by_value],
|
2341
|
+
|
2335
2342
|
# @!method DrawPixel(posX, posY, color)
|
2336
2343
|
# DrawPixel : Draw a pixel
|
2337
2344
|
# @param posX [int]
|
@@ -2926,6 +2933,15 @@ module Raylib
|
|
2926
2933
|
# @return [Image]
|
2927
2934
|
[:LoadImageAnim, :LoadImageAnim, [:pointer, :pointer], Image.by_value],
|
2928
2935
|
|
2936
|
+
# @!method LoadImageAnimFromMemory(fileType, fileData, dataSize, frames)
|
2937
|
+
# LoadImageAnimFromMemory : Load image sequence from memory buffer
|
2938
|
+
# @param fileType [const char *]
|
2939
|
+
# @param fileData [const unsigned char *]
|
2940
|
+
# @param dataSize [int]
|
2941
|
+
# @param frames [int *]
|
2942
|
+
# @return [Image]
|
2943
|
+
[:LoadImageAnimFromMemory, :LoadImageAnimFromMemory, [:pointer, :pointer, :int, :pointer], Image.by_value],
|
2944
|
+
|
2929
2945
|
# @!method LoadImageFromMemory(fileType, fileData, dataSize)
|
2930
2946
|
# LoadImageFromMemory : Load image from memory buffer, fileType refers to extension: i.e. '.png'
|
2931
2947
|
# @param fileType [const char *]
|
@@ -3149,6 +3165,14 @@ module Raylib
|
|
3149
3165
|
# @return [void]
|
3150
3166
|
[:ImageBlurGaussian, :ImageBlurGaussian, [:pointer, :int], :void],
|
3151
3167
|
|
3168
|
+
# @!method ImageKernelConvolution(image, kernel, kernelSize)
|
3169
|
+
# ImageKernelConvolution : Apply Custom Square image convolution kernel
|
3170
|
+
# @param image [Image *]
|
3171
|
+
# @param kernel [float*]
|
3172
|
+
# @param kernelSize [int]
|
3173
|
+
# @return [void]
|
3174
|
+
[:ImageKernelConvolution, :ImageKernelConvolution, [:pointer, :pointer, :int], :void],
|
3175
|
+
|
3152
3176
|
# @!method ImageResize(image, newWidth, newHeight)
|
3153
3177
|
# ImageResize : Resize image (Bicubic scaling algorithm)
|
3154
3178
|
# @param image [Image *]
|
@@ -3994,7 +4018,7 @@ module Raylib
|
|
3994
4018
|
|
3995
4019
|
# @!method TextReplace(text, replace, by)
|
3996
4020
|
# TextReplace : Replace text string (WARNING: memory must be freed!)
|
3997
|
-
# @param text [char *]
|
4021
|
+
# @param text [const char *]
|
3998
4022
|
# @param replace [const char *]
|
3999
4023
|
# @param by [const char *]
|
4000
4024
|
# @return [char *]
|
@@ -4063,6 +4087,12 @@ module Raylib
|
|
4063
4087
|
# @return [int]
|
4064
4088
|
[:TextToInteger, :TextToInteger, [:pointer], :int],
|
4065
4089
|
|
4090
|
+
# @!method TextToFloat(text)
|
4091
|
+
# TextToFloat : Get float value from text (negative values not supported)
|
4092
|
+
# @param text [const char *]
|
4093
|
+
# @return [float]
|
4094
|
+
[:TextToFloat, :TextToFloat, [:pointer], :float],
|
4095
|
+
|
4066
4096
|
# @!method DrawLine3D(startPos, endPos, color)
|
4067
4097
|
# DrawLine3D : Draw a line in 3D world space
|
4068
4098
|
# @param startPos [Vector3]
|
@@ -4409,13 +4439,6 @@ module Raylib
|
|
4409
4439
|
# @return [void]
|
4410
4440
|
[:DrawMeshInstanced, :DrawMeshInstanced, [Mesh.by_value, Material.by_value, :pointer, :int], :void],
|
4411
4441
|
|
4412
|
-
# @!method ExportMesh(mesh, fileName)
|
4413
|
-
# ExportMesh : Export mesh data to file, returns true on success
|
4414
|
-
# @param mesh [Mesh]
|
4415
|
-
# @param fileName [const char *]
|
4416
|
-
# @return [bool]
|
4417
|
-
[:ExportMesh, :ExportMesh, [Mesh.by_value, :pointer], :bool],
|
4418
|
-
|
4419
4442
|
# @!method GetMeshBoundingBox(mesh)
|
4420
4443
|
# GetMeshBoundingBox : Compute mesh bounding box limits
|
4421
4444
|
# @param mesh [Mesh]
|
@@ -4428,6 +4451,20 @@ module Raylib
|
|
4428
4451
|
# @return [void]
|
4429
4452
|
[:GenMeshTangents, :GenMeshTangents, [:pointer], :void],
|
4430
4453
|
|
4454
|
+
# @!method ExportMesh(mesh, fileName)
|
4455
|
+
# ExportMesh : Export mesh data to file, returns true on success
|
4456
|
+
# @param mesh [Mesh]
|
4457
|
+
# @param fileName [const char *]
|
4458
|
+
# @return [bool]
|
4459
|
+
[:ExportMesh, :ExportMesh, [Mesh.by_value, :pointer], :bool],
|
4460
|
+
|
4461
|
+
# @!method ExportMeshAsCode(mesh, fileName)
|
4462
|
+
# ExportMeshAsCode : Export mesh as code file (.h) defining multiple arrays of vertex attributes
|
4463
|
+
# @param mesh [Mesh]
|
4464
|
+
# @param fileName [const char *]
|
4465
|
+
# @return [bool]
|
4466
|
+
[:ExportMeshAsCode, :ExportMeshAsCode, [Mesh.by_value, :pointer], :bool],
|
4467
|
+
|
4431
4468
|
# @!method GenMeshPoly(sides, radius)
|
4432
4469
|
# GenMeshPoly : Generate polygonal mesh
|
4433
4470
|
# @param sides [int]
|
data/lib/rlgl.rb
CHANGED
@@ -604,6 +604,13 @@ module Raylib
|
|
604
604
|
# @return [void]
|
605
605
|
[:rlBlitFramebuffer, :rlBlitFramebuffer, [:int, :int, :int, :int, :int, :int, :int, :int, :int], :void],
|
606
606
|
|
607
|
+
# @!method rlBindFramebuffer(target, framebuffer)
|
608
|
+
# rlBindFramebuffer : Bind framebuffer (FBO)
|
609
|
+
# @param target [unsigned int]
|
610
|
+
# @param framebuffer [unsigned int]
|
611
|
+
# @return [void]
|
612
|
+
[:rlBindFramebuffer, :rlBindFramebuffer, [:uint, :uint], :void],
|
613
|
+
|
607
614
|
# @!method rlEnableColorBlend()
|
608
615
|
# rlEnableColorBlend : Enable color blending
|
609
616
|
# @return [void]
|
@@ -644,6 +651,15 @@ module Raylib
|
|
644
651
|
# @return [void]
|
645
652
|
[:rlDisableBackfaceCulling, :rlDisableBackfaceCulling, [], :void],
|
646
653
|
|
654
|
+
# @!method rlColorMask(r, g, b, a)
|
655
|
+
# rlColorMask : Color mask control
|
656
|
+
# @param r [bool]
|
657
|
+
# @param g [bool]
|
658
|
+
# @param b [bool]
|
659
|
+
# @param a [bool]
|
660
|
+
# @return [void]
|
661
|
+
[:rlColorMask, :rlColorMask, [:bool, :bool, :bool, :bool], :void],
|
662
|
+
|
647
663
|
# @!method rlSetCullFace(mode)
|
648
664
|
# rlSetCullFace : Set face culling mode
|
649
665
|
# @param mode [int]
|
@@ -872,7 +888,7 @@ module Raylib
|
|
872
888
|
[:rlLoadVertexArray, :rlLoadVertexArray, [], :uint],
|
873
889
|
|
874
890
|
# @!method rlLoadVertexBuffer(buffer, size, dynamic)
|
875
|
-
# rlLoadVertexBuffer : Load a vertex buffer
|
891
|
+
# rlLoadVertexBuffer : Load a vertex buffer object
|
876
892
|
# @param buffer [const void *]
|
877
893
|
# @param size [int]
|
878
894
|
# @param dynamic [bool]
|
@@ -880,7 +896,7 @@ module Raylib
|
|
880
896
|
[:rlLoadVertexBuffer, :rlLoadVertexBuffer, [:pointer, :int, :bool], :uint],
|
881
897
|
|
882
898
|
# @!method rlLoadVertexBufferElement(buffer, size, dynamic)
|
883
|
-
# rlLoadVertexBufferElement : Load
|
899
|
+
# rlLoadVertexBufferElement : Load vertex buffer elements object
|
884
900
|
# @param buffer [const void *]
|
885
901
|
# @param size [int]
|
886
902
|
# @param dynamic [bool]
|
@@ -888,7 +904,7 @@ module Raylib
|
|
888
904
|
[:rlLoadVertexBufferElement, :rlLoadVertexBufferElement, [:pointer, :int, :bool], :uint],
|
889
905
|
|
890
906
|
# @!method rlUpdateVertexBuffer(bufferId, data, dataSize, offset)
|
891
|
-
# rlUpdateVertexBuffer : Update
|
907
|
+
# rlUpdateVertexBuffer : Update vertex buffer object data on GPU buffer
|
892
908
|
# @param bufferId [unsigned int]
|
893
909
|
# @param data [const void *]
|
894
910
|
# @param dataSize [int]
|
@@ -897,7 +913,7 @@ module Raylib
|
|
897
913
|
[:rlUpdateVertexBuffer, :rlUpdateVertexBuffer, [:uint, :pointer, :int, :int], :void],
|
898
914
|
|
899
915
|
# @!method rlUpdateVertexBufferElements(id, data, dataSize, offset)
|
900
|
-
# rlUpdateVertexBufferElements : Update vertex buffer elements
|
916
|
+
# rlUpdateVertexBufferElements : Update vertex buffer elements data on GPU buffer
|
901
917
|
# @param id [unsigned int]
|
902
918
|
# @param data [const void *]
|
903
919
|
# @param dataSize [int]
|
@@ -906,19 +922,19 @@ module Raylib
|
|
906
922
|
[:rlUpdateVertexBufferElements, :rlUpdateVertexBufferElements, [:uint, :pointer, :int, :int], :void],
|
907
923
|
|
908
924
|
# @!method rlUnloadVertexArray(vaoId)
|
909
|
-
# rlUnloadVertexArray
|
925
|
+
# rlUnloadVertexArray : Unload vertex array (vao)
|
910
926
|
# @param vaoId [unsigned int]
|
911
927
|
# @return [void]
|
912
928
|
[:rlUnloadVertexArray, :rlUnloadVertexArray, [:uint], :void],
|
913
929
|
|
914
930
|
# @!method rlUnloadVertexBuffer(vboId)
|
915
|
-
# rlUnloadVertexBuffer
|
931
|
+
# rlUnloadVertexBuffer : Unload vertex buffer object
|
916
932
|
# @param vboId [unsigned int]
|
917
933
|
# @return [void]
|
918
934
|
[:rlUnloadVertexBuffer, :rlUnloadVertexBuffer, [:uint], :void],
|
919
935
|
|
920
936
|
# @!method rlSetVertexAttribute(index, compSize, type, normalized, stride, pointer)
|
921
|
-
# rlSetVertexAttribute
|
937
|
+
# rlSetVertexAttribute : Set vertex attribute data configuration
|
922
938
|
# @param index [unsigned int]
|
923
939
|
# @param compSize [int]
|
924
940
|
# @param type [int]
|
@@ -929,14 +945,14 @@ module Raylib
|
|
929
945
|
[:rlSetVertexAttribute, :rlSetVertexAttribute, [:uint, :int, :int, :bool, :int, :pointer], :void],
|
930
946
|
|
931
947
|
# @!method rlSetVertexAttributeDivisor(index, divisor)
|
932
|
-
# rlSetVertexAttributeDivisor
|
948
|
+
# rlSetVertexAttributeDivisor : Set vertex attribute data divisor
|
933
949
|
# @param index [unsigned int]
|
934
950
|
# @param divisor [int]
|
935
951
|
# @return [void]
|
936
952
|
[:rlSetVertexAttributeDivisor, :rlSetVertexAttributeDivisor, [:uint, :int], :void],
|
937
953
|
|
938
954
|
# @!method rlSetVertexAttributeDefault(locIndex, value, attribType, count)
|
939
|
-
# rlSetVertexAttributeDefault : Set vertex attribute default value
|
955
|
+
# rlSetVertexAttributeDefault : Set vertex attribute default value, when attribute to provided
|
940
956
|
# @param locIndex [int]
|
941
957
|
# @param value [const void *]
|
942
958
|
# @param attribType [int]
|
@@ -945,14 +961,14 @@ module Raylib
|
|
945
961
|
[:rlSetVertexAttributeDefault, :rlSetVertexAttributeDefault, [:int, :pointer, :int, :int], :void],
|
946
962
|
|
947
963
|
# @!method rlDrawVertexArray(offset, count)
|
948
|
-
# rlDrawVertexArray
|
964
|
+
# rlDrawVertexArray : Draw vertex array (currently active vao)
|
949
965
|
# @param offset [int]
|
950
966
|
# @param count [int]
|
951
967
|
# @return [void]
|
952
968
|
[:rlDrawVertexArray, :rlDrawVertexArray, [:int, :int], :void],
|
953
969
|
|
954
970
|
# @!method rlDrawVertexArrayElements(offset, count, buffer)
|
955
|
-
# rlDrawVertexArrayElements
|
971
|
+
# rlDrawVertexArrayElements : Draw vertex array elements
|
956
972
|
# @param offset [int]
|
957
973
|
# @param count [int]
|
958
974
|
# @param buffer [const void *]
|
@@ -960,7 +976,7 @@ module Raylib
|
|
960
976
|
[:rlDrawVertexArrayElements, :rlDrawVertexArrayElements, [:int, :int, :pointer], :void],
|
961
977
|
|
962
978
|
# @!method rlDrawVertexArrayInstanced(offset, count, instances)
|
963
|
-
# rlDrawVertexArrayInstanced
|
979
|
+
# rlDrawVertexArrayInstanced : Draw vertex array (currently active vao) with instancing
|
964
980
|
# @param offset [int]
|
965
981
|
# @param count [int]
|
966
982
|
# @param instances [int]
|
@@ -968,7 +984,7 @@ module Raylib
|
|
968
984
|
[:rlDrawVertexArrayInstanced, :rlDrawVertexArrayInstanced, [:int, :int, :int], :void],
|
969
985
|
|
970
986
|
# @!method rlDrawVertexArrayElementsInstanced(offset, count, buffer, instances)
|
971
|
-
# rlDrawVertexArrayElementsInstanced
|
987
|
+
# rlDrawVertexArrayElementsInstanced : Draw vertex array elements with instancing
|
972
988
|
# @param offset [int]
|
973
989
|
# @param count [int]
|
974
990
|
# @param buffer [const void *]
|
@@ -977,7 +993,7 @@ module Raylib
|
|
977
993
|
[:rlDrawVertexArrayElementsInstanced, :rlDrawVertexArrayElementsInstanced, [:int, :int, :pointer, :int], :void],
|
978
994
|
|
979
995
|
# @!method rlLoadTexture(data, width, height, format, mipmapCount)
|
980
|
-
# rlLoadTexture : Load texture
|
996
|
+
# rlLoadTexture : Load texture data
|
981
997
|
# @param data [const void *]
|
982
998
|
# @param width [int]
|
983
999
|
# @param height [int]
|
@@ -995,7 +1011,7 @@ module Raylib
|
|
995
1011
|
[:rlLoadTextureDepth, :rlLoadTextureDepth, [:int, :int, :bool], :uint],
|
996
1012
|
|
997
1013
|
# @!method rlLoadTextureCubemap(data, size, format)
|
998
|
-
# rlLoadTextureCubemap : Load texture cubemap
|
1014
|
+
# rlLoadTextureCubemap : Load texture cubemap data
|
999
1015
|
# @param data [const void *]
|
1000
1016
|
# @param size [int]
|
1001
1017
|
# @param format [int]
|
@@ -1003,7 +1019,7 @@ module Raylib
|
|
1003
1019
|
[:rlLoadTextureCubemap, :rlLoadTextureCubemap, [:pointer, :int, :int], :uint],
|
1004
1020
|
|
1005
1021
|
# @!method rlUpdateTexture(id, offsetX, offsetY, width, height, format, data)
|
1006
|
-
# rlUpdateTexture : Update
|
1022
|
+
# rlUpdateTexture : Update texture with new data on GPU
|
1007
1023
|
# @param id [unsigned int]
|
1008
1024
|
# @param offsetX [int]
|
1009
1025
|
# @param offsetY [int]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raylib-bindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: x64-mingw
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.16'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: opengl-bindings2
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '2'
|
41
27
|
description: 'Ruby bindings for raylib ( https://github.com/raysan5/raylib ), raygui
|
42
28
|
( https://github.com/raysan5/raygui ) and Physac ( https://github.com/raysan5/physac
|
43
29
|
).
|
@@ -85,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
71
|
- !ruby/object:Gem::Version
|
86
72
|
version: '0'
|
87
73
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
74
|
+
rubygems_version: 3.5.3
|
89
75
|
signing_key:
|
90
76
|
specification_version: 4
|
91
77
|
summary: Ruby bindings for raylib, raygui and Physac
|