sdl3-bindings 1.0.0.beta.1 → 1.0.0.beta.3
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 +15 -0
- data/README.md +27 -12
- data/lib/sdl3_audio.rb +2 -0
- data/lib/sdl3_hints.rb +1 -0
- data/lib/sdl3_image.rb +2 -2
- data/lib/sdl3_keycode.rb +4 -0
- data/lib/sdl3_mixer.rb +5 -6
- data/lib/sdl3_pixels.rb +1 -0
- data/lib/sdl3_revision.rb +1 -1
- data/lib/sdl3_stdinc.rb +1 -0
- data/lib/sdl3_surface.rb +3 -0
- data/lib/sdl3_touch.rb +2 -0
- data/lib/sdl3_ttf.rb +43 -16
- data/lib/sdl3_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b5b3e330ccec9918b3181a03b2c8741de68cd3d1ae0515d2ee9db42aec2bfd7
|
4
|
+
data.tar.gz: 56864b60dada96c786b391860320c3700de112634a39fb0991a473470c68d612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4b9db8db3527c82cfcc6dc31721e7cc972d4dbc26ee5b01c7638e4f8050248127a00612dff637a176190058faf864b4f3ad350dd17f59f82da576175f5ec62e
|
7
|
+
data.tar.gz: 87c83ef2ca9af0d20d9d33dc76ccd43dc57a9a3779f976e9b02fc8c08f44bd0fb71909f93cdba121b783c7f07493e0ae496d288658f6cf4cf020c0e8791aabef
|
data/ChangeLog
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
2025-03-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* SDL 3.2.8 ( https://github.com/libsdl-org/SDL/releases/tag/release-3.2.8 )
|
4
|
+
* SDL_image 3.2.4 ( https://github.com/libsdl-org/SDL_image/releases/tag/release-3.2.4 )
|
5
|
+
* SDL_mixer 698aaa2e2fd18900f0e28132a8de9b48538d4857 ( https://github.com/libsdl-org/SDL_mixer/commit/698aaa2e2fd18900f0e28132a8de9b48538d4857 )
|
6
|
+
* SDL_sound f2705793331771fc584c34c3b26581462a3e95f4 ( https://github.com/icculus/SDL_sound/commit/f2705793331771fc584c34c3b26581462a3e95f4 )
|
7
|
+
* SDL_ttf 3.2.0 ( https://github.com/libsdl-org/SDL_ttf/releases/tag/prerelease-3.2.0 )
|
8
|
+
|
9
|
+
2025-02-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* SDL 3.2.4 ( https://github.com/libsdl-org/SDL/releases/tag/release-3.2.4 )
|
12
|
+
* SDL_image 3.2.0 ( https://github.com/libsdl-org/SDL_image/releases/tag/release-3.2.0 )
|
13
|
+
* SDL_ttf 3.1.2 ( https://github.com/libsdl-org/SDL_ttf/releases/tag/prerelease-3.1.2 )
|
14
|
+
* SDL_mixer 863f8c0c0a1f3d8efe9b9cdb7f474efdfac54b76 ( https://github.com/libsdl-org/SDL_mixer/commit/863f8c0c0a1f3d8efe9b9cdb7f474efdfac54b76 )
|
15
|
+
|
1
16
|
2025-01-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
17
|
|
3
18
|
* SDL 3.2.0 ( https://github.com/libsdl-org/SDL/releases/tag/release-3.2.0 )
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# sdl3-bindings : SDL3 wrapper for Ruby #
|
4
4
|
|
5
5
|
* Created : 2015-09-19
|
6
|
-
* Last modified : 2025-
|
6
|
+
* Last modified : 2025-03-29
|
7
7
|
|
8
8
|
## Features ##
|
9
9
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
See the project below to learn how to use this library:
|
15
15
|
|
16
16
|
* Whac-a-Mole! : Ruby SDL2 bindings demo
|
17
|
-
* <https://github.com/vaiorabbit/sdl2-bindings-whacamole>
|
17
|
+
* <https://github.com/vaiorabbit/sdl2-bindings-whacamole/tree/feature/sdl3>
|
18
18
|
* [](https://www.youtube.com/watch?v=HroP-_EWcg8)
|
19
19
|
|
20
20
|
## Limitations ##
|
@@ -23,12 +23,12 @@ See the project below to learn how to use this library:
|
|
23
23
|
|
24
24
|
## Target version ##
|
25
25
|
|
26
|
-
* [2025-
|
27
|
-
* SDL : 3.2.
|
28
|
-
* SDL_image : 3.
|
29
|
-
* SDL_mixer :
|
30
|
-
* SDL_ttf : 3.
|
31
|
-
* SDL_sound :
|
26
|
+
* [2025-03-29]
|
27
|
+
* SDL : 3.2.8
|
28
|
+
* SDL_image : 3.2.4
|
29
|
+
* SDL_mixer : 698aaa2e2fd18900f0e28132a8de9b48538d4857
|
30
|
+
* SDL_ttf : 3.2.0
|
31
|
+
* SDL_sound : f2705793331771fc584c34c3b26581462a3e95f4
|
32
32
|
|
33
33
|
<details>
|
34
34
|
<summary>Older versions</summary>
|
@@ -89,16 +89,23 @@ See the project below to learn how to use this library:
|
|
89
89
|
* SDL_ttf : 2.20.1
|
90
90
|
* SDL2_gfx : 1.0.4
|
91
91
|
* SDL_sound : 2.0.1
|
92
|
+
* [2025-01-26]
|
93
|
+
* SDL : 3.2.4
|
94
|
+
* SDL_image : 3.2.0
|
95
|
+
* SDL_mixer : 3.0.0
|
96
|
+
* SDL_ttf : 3.1.2
|
97
|
+
* SDL_sound : 3.0.0
|
92
98
|
|
93
99
|
</details>
|
94
100
|
|
95
101
|
## Tested Environments ##
|
96
102
|
|
97
|
-
* [2025-
|
103
|
+
* [2025-03-29] Windows 11 (24H2), ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x64-mingw-ucrt]
|
98
104
|
|
99
105
|
<details>
|
100
106
|
<summary>Older Environments</summary>
|
101
107
|
|
108
|
+
* [2025-01-26] Windows 11 (24H2), ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x64-mingw-ucrt]
|
102
109
|
* [2023-02-05] Ubuntu Linux 22.04 LTS (jammy) on WSL/Windows 11, ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
|
103
110
|
* [2023-01-07] Windows 11 (22H2), ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
|
104
111
|
* [2023-01-07] macOS Ventura (13.1) ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
|
@@ -120,9 +127,6 @@ See the project below to learn how to use this library:
|
|
120
127
|
|
121
128
|
The zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
122
129
|
|
123
|
-
sdl3-bindings : SDL3 wrapper for Ruby
|
124
|
-
Copyright (c) 2015-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
125
|
-
|
126
130
|
This software is provided 'as-is', without any express or implied
|
127
131
|
warranty. In no event will the authors be held liable for any damages
|
128
132
|
arising from the use of this software.
|
@@ -130,3 +134,14 @@ The zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
|
130
134
|
Permission is granted to anyone to use this software for any purpose,
|
131
135
|
including commercial applications, and to alter it and redistribute it
|
132
136
|
freely, subject to the following restrictions:
|
137
|
+
|
138
|
+
1. The origin of this software must not be misrepresented; you must not
|
139
|
+
claim that you wrote the original software. If you use this software
|
140
|
+
in a product, an acknowledgment in the product documentation would be
|
141
|
+
appreciated but is not required.
|
142
|
+
|
143
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
144
|
+
misrepresented as being the original software.
|
145
|
+
|
146
|
+
3. This notice may not be removed or altered from any source
|
147
|
+
distribution.
|
data/lib/sdl3_audio.rb
CHANGED
data/lib/sdl3_hints.rb
CHANGED
@@ -131,6 +131,7 @@ module SDL
|
|
131
131
|
HINT_JOYSTICK_WHEEL_DEVICES = "SDL_JOYSTICK_WHEEL_DEVICES"
|
132
132
|
HINT_JOYSTICK_WHEEL_DEVICES_EXCLUDED = "SDL_JOYSTICK_WHEEL_DEVICES_EXCLUDED"
|
133
133
|
HINT_JOYSTICK_ZERO_CENTERED_DEVICES = "SDL_JOYSTICK_ZERO_CENTERED_DEVICES"
|
134
|
+
HINT_JOYSTICK_HAPTIC_AXES = "SDL_JOYSTICK_HAPTIC_AXES"
|
134
135
|
HINT_KEYCODE_OPTIONS = "SDL_KEYCODE_OPTIONS"
|
135
136
|
HINT_KMSDRM_DEVICE_INDEX = "SDL_KMSDRM_DEVICE_INDEX"
|
136
137
|
HINT_KMSDRM_REQUIRE_DRM_MASTER = "SDL_KMSDRM_REQUIRE_DRM_MASTER"
|
data/lib/sdl3_image.rb
CHANGED
data/lib/sdl3_keycode.rb
CHANGED
@@ -282,6 +282,10 @@ module SDL
|
|
282
282
|
KMOD_CAPS = 0x2000
|
283
283
|
KMOD_MODE = 0x4000
|
284
284
|
KMOD_SCROLL = 0x8000
|
285
|
+
KMOD_CTRL = (KMOD_LCTRL | KMOD_RCTRL)
|
286
|
+
KMOD_SHIFT = (KMOD_LSHIFT | KMOD_RSHIFT)
|
287
|
+
KMOD_ALT = (KMOD_LALT | KMOD_RALT)
|
288
|
+
KMOD_GUI = (KMOD_LGUI | KMOD_RGUI)
|
285
289
|
|
286
290
|
# Enum
|
287
291
|
|
data/lib/sdl3_mixer.rb
CHANGED
@@ -17,6 +17,7 @@ module SDL
|
|
17
17
|
MIX_INIT_MOD = 0x00000002
|
18
18
|
MIX_INIT_MP3 = 0x00000008
|
19
19
|
MIX_INIT_OGG = 0x00000010
|
20
|
+
MIX_INIT_MID = 0x00000020
|
20
21
|
MIX_INIT_OPUS = 0x00000040
|
21
22
|
MIX_INIT_WAVPACK = 0x00000080
|
22
23
|
MIX_CHANNELS = 8
|
@@ -37,12 +38,10 @@ module SDL
|
|
37
38
|
MUS_MID = 3
|
38
39
|
MUS_OGG = 4
|
39
40
|
MUS_MP3 = 5
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
MUS_WAVPACK = 10
|
45
|
-
MUS_GME = 11
|
41
|
+
MUS_FLAC = 6
|
42
|
+
MUS_OPUS = 7
|
43
|
+
MUS_WAVPACK = 8
|
44
|
+
MUS_GME = 9
|
46
45
|
|
47
46
|
# Typedef
|
48
47
|
|
data/lib/sdl3_pixels.rb
CHANGED
@@ -122,6 +122,7 @@ module SDL
|
|
122
122
|
PIXELFORMAT_NV21 = 825382478
|
123
123
|
PIXELFORMAT_P010 = 808530000
|
124
124
|
PIXELFORMAT_EXTERNAL_OES = 542328143
|
125
|
+
PIXELFORMAT_MJPG = 1196444237
|
125
126
|
PIXELFORMAT_RGBA32 = 376840196
|
126
127
|
PIXELFORMAT_ARGB32 = 377888772
|
127
128
|
PIXELFORMAT_BGRA32 = 372645892
|
data/lib/sdl3_revision.rb
CHANGED
data/lib/sdl3_stdinc.rb
CHANGED
data/lib/sdl3_surface.rb
CHANGED
@@ -18,6 +18,8 @@ module SDL
|
|
18
18
|
PROP_SURFACE_SDR_WHITE_POINT_FLOAT = "SDL.surface.SDR_white_point"
|
19
19
|
PROP_SURFACE_HDR_HEADROOM_FLOAT = "SDL.surface.HDR_headroom"
|
20
20
|
PROP_SURFACE_TONEMAP_OPERATOR_STRING = "SDL.surface.tonemap"
|
21
|
+
PROP_SURFACE_HOTSPOT_X_NUMBER = "SDL.surface.hotspot.x"
|
22
|
+
PROP_SURFACE_HOTSPOT_Y_NUMBER = "SDL.surface.hotspot.y"
|
21
23
|
|
22
24
|
# Enum
|
23
25
|
|
@@ -101,6 +103,7 @@ module SDL
|
|
101
103
|
[:BlitSurfaceUnchecked, :SDL_BlitSurfaceUnchecked, [:pointer, :pointer, :pointer, :pointer], :bool],
|
102
104
|
[:BlitSurfaceScaled, :SDL_BlitSurfaceScaled, [:pointer, :pointer, :pointer, :pointer, :int], :bool],
|
103
105
|
[:BlitSurfaceUncheckedScaled, :SDL_BlitSurfaceUncheckedScaled, [:pointer, :pointer, :pointer, :pointer, :int], :bool],
|
106
|
+
[:StretchSurface, :SDL_StretchSurface, [:pointer, :pointer, :pointer, :pointer, :int], :bool],
|
104
107
|
[:BlitSurfaceTiled, :SDL_BlitSurfaceTiled, [:pointer, :pointer, :pointer, :pointer], :bool],
|
105
108
|
[:BlitSurfaceTiledWithScale, :SDL_BlitSurfaceTiledWithScale, [:pointer, :pointer, :float, :int, :pointer, :pointer], :bool],
|
106
109
|
[:BlitSurface9Grid, :SDL_BlitSurface9Grid, [:pointer, :pointer, :int, :int, :int, :int, :float, :int, :pointer, :pointer], :bool],
|
data/lib/sdl3_touch.rb
CHANGED
data/lib/sdl3_ttf.rb
CHANGED
@@ -12,7 +12,7 @@ module SDL
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
14
|
TTF_MAJOR_VERSION = 3
|
15
|
-
TTF_MINOR_VERSION =
|
15
|
+
TTF_MINOR_VERSION = 2
|
16
16
|
TTF_MICRO_VERSION = 0
|
17
17
|
TTF_PROP_FONT_CREATE_FILENAME_STRING = "SDL_ttf.font.create.filename"
|
18
18
|
TTF_PROP_FONT_CREATE_IOSTREAM_POINTER = "SDL_ttf.font.create.iostream"
|
@@ -22,6 +22,7 @@ module SDL
|
|
22
22
|
TTF_PROP_FONT_CREATE_FACE_NUMBER = "SDL_ttf.font.create.face"
|
23
23
|
TTF_PROP_FONT_CREATE_HORIZONTAL_DPI_NUMBER = "SDL_ttf.font.create.hdpi"
|
24
24
|
TTF_PROP_FONT_CREATE_VERTICAL_DPI_NUMBER = "SDL_ttf.font.create.vdpi"
|
25
|
+
TTF_PROP_FONT_CREATE_EXISTING_FONT = "SDL_ttf.font.create.existing_font"
|
25
26
|
TTF_PROP_FONT_OUTLINE_LINE_CAP_NUMBER = "SDL_ttf.font.outline.line_cap"
|
26
27
|
TTF_PROP_FONT_OUTLINE_LINE_JOIN_NUMBER = "SDL_ttf.font.outline.line_join"
|
27
28
|
TTF_PROP_FONT_OUTLINE_MITER_LIMIT_NUMBER = "SDL_ttf.font.outline.miter_limit"
|
@@ -30,10 +31,15 @@ module SDL
|
|
30
31
|
TTF_STYLE_ITALIC = 0x02
|
31
32
|
TTF_STYLE_UNDERLINE = 0x04
|
32
33
|
TTF_STYLE_STRIKETHROUGH = 0x08
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
TTF_PROP_RENDERER_TEXT_ENGINE_RENDERER = "SDL_ttf.renderer_text_engine.create.renderer"
|
35
|
+
TTF_PROP_RENDERER_TEXT_ENGINE_ATLAS_TEXTURE_SIZE = "SDL_ttf.renderer_text_engine.create.atlas_texture_size"
|
36
|
+
TTF_PROP_GPU_TEXT_ENGINE_DEVICE = "SDL_ttf.gpu_text_engine.create.device"
|
37
|
+
TTF_PROP_GPU_TEXT_ENGINE_ATLAS_TEXTURE_SIZE = "SDL_ttf.gpu_text_engine.create.atlas_texture_size"
|
38
|
+
TTF_SUBSTRING_DIRECTION_MASK = 0x000000FF
|
39
|
+
TTF_SUBSTRING_TEXT_START = 0x00000100
|
40
|
+
TTF_SUBSTRING_LINE_START = 0x00000200
|
41
|
+
TTF_SUBSTRING_LINE_END = 0x00000400
|
42
|
+
TTF_SUBSTRING_TEXT_END = 0x00000800
|
37
43
|
|
38
44
|
# Enum
|
39
45
|
|
@@ -46,10 +52,15 @@ module SDL
|
|
46
52
|
TTF_HORIZONTAL_ALIGN_LEFT = 0
|
47
53
|
TTF_HORIZONTAL_ALIGN_CENTER = 1
|
48
54
|
TTF_HORIZONTAL_ALIGN_RIGHT = 2
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
55
|
+
TTF_DIRECTION_INVALID = 0
|
56
|
+
TTF_DIRECTION_LTR = 4
|
57
|
+
TTF_DIRECTION_RTL = 5
|
58
|
+
TTF_DIRECTION_TTB = 6
|
59
|
+
TTF_DIRECTION_BTT = 7
|
60
|
+
TTF_IMAGE_INVALID = 0
|
61
|
+
TTF_IMAGE_ALPHA = 1
|
62
|
+
TTF_IMAGE_COLOR = 2
|
63
|
+
TTF_IMAGE_SDF = 3
|
53
64
|
TTF_GPU_TEXTENGINE_WINDING_INVALID = -1
|
54
65
|
TTF_GPU_TEXTENGINE_WINDING_CLOCKWISE = 0
|
55
66
|
TTF_GPU_TEXTENGINE_WINDING_COUNTER_CLOCKWISE = 1
|
@@ -60,6 +71,7 @@ module SDL
|
|
60
71
|
typedef :int, :TTF_HintingFlags
|
61
72
|
typedef :int, :TTF_HorizontalAlignment
|
62
73
|
typedef :int, :TTF_Direction
|
74
|
+
typedef :int, :TTF_ImageType
|
63
75
|
typedef :int, :TTF_GPUTextEngineWinding
|
64
76
|
typedef :uint, :TTF_SubStringFlags
|
65
77
|
|
@@ -82,6 +94,7 @@ module SDL
|
|
82
94
|
:num_vertices, :int,
|
83
95
|
:indices, :pointer,
|
84
96
|
:num_indices, :int,
|
97
|
+
:image_type, :int,
|
85
98
|
:next, :pointer,
|
86
99
|
)
|
87
100
|
end
|
@@ -109,8 +122,12 @@ module SDL
|
|
109
122
|
[:TTF_OpenFont, :TTF_OpenFont, [:pointer, :float], :pointer],
|
110
123
|
[:TTF_OpenFontIO, :TTF_OpenFontIO, [:pointer, :bool, :float], :pointer],
|
111
124
|
[:TTF_OpenFontWithProperties, :TTF_OpenFontWithProperties, [:uint], :pointer],
|
125
|
+
[:TTF_CopyFont, :TTF_CopyFont, [:pointer], :pointer],
|
112
126
|
[:TTF_GetFontProperties, :TTF_GetFontProperties, [:pointer], :uint],
|
113
127
|
[:TTF_GetFontGeneration, :TTF_GetFontGeneration, [:pointer], :uint],
|
128
|
+
[:TTF_AddFallbackFont, :TTF_AddFallbackFont, [:pointer, :pointer], :bool],
|
129
|
+
[:TTF_RemoveFallbackFont, :TTF_RemoveFallbackFont, [:pointer, :pointer], :void],
|
130
|
+
[:TTF_ClearFallbackFonts, :TTF_ClearFallbackFonts, [:pointer], :void],
|
114
131
|
[:TTF_SetFontSize, :TTF_SetFontSize, [:pointer, :float], :bool],
|
115
132
|
[:TTF_SetFontSizeDPI, :TTF_SetFontSizeDPI, [:pointer, :float, :int, :int], :bool],
|
116
133
|
[:TTF_GetFontSize, :TTF_GetFontSize, [:pointer], :float],
|
@@ -120,6 +137,7 @@ module SDL
|
|
120
137
|
[:TTF_SetFontOutline, :TTF_SetFontOutline, [:pointer, :int], :bool],
|
121
138
|
[:TTF_GetFontOutline, :TTF_GetFontOutline, [:pointer], :int],
|
122
139
|
[:TTF_SetFontHinting, :TTF_SetFontHinting, [:pointer, :int], :void],
|
140
|
+
[:TTF_GetNumFontFaces, :TTF_GetNumFontFaces, [:pointer], :int],
|
123
141
|
[:TTF_GetFontHinting, :TTF_GetFontHinting, [:pointer], :int],
|
124
142
|
[:TTF_SetFontSDF, :TTF_SetFontSDF, [:pointer, :bool], :bool],
|
125
143
|
[:TTF_GetFontSDF, :TTF_GetFontSDF, [:pointer], :bool],
|
@@ -136,22 +154,25 @@ module SDL
|
|
136
154
|
[:TTF_FontIsScalable, :TTF_FontIsScalable, [:pointer], :bool],
|
137
155
|
[:TTF_GetFontFamilyName, :TTF_GetFontFamilyName, [:pointer], :pointer],
|
138
156
|
[:TTF_GetFontStyleName, :TTF_GetFontStyleName, [:pointer], :pointer],
|
139
|
-
[:TTF_RenderText_Solid, :TTF_RenderText_Solid, [:pointer, :pointer, :ulong_long, Color.by_value], :pointer],
|
140
|
-
[:TTF_RenderText_Solid_Wrapped, :TTF_RenderText_Solid_Wrapped, [:pointer, :pointer, :ulong_long, Color.by_value, :int], :pointer],
|
141
|
-
[:TTF_RenderGlyph_Solid, :TTF_RenderGlyph_Solid, [:pointer, :uint, Color.by_value], :pointer],
|
142
157
|
[:TTF_SetFontDirection, :TTF_SetFontDirection, [:pointer, :int], :bool],
|
143
158
|
[:TTF_GetFontDirection, :TTF_GetFontDirection, [:pointer], :int],
|
144
|
-
[:
|
145
|
-
[:
|
159
|
+
[:TTF_StringToTag, :TTF_StringToTag, [:pointer], :uint],
|
160
|
+
[:TTF_TagToString, :TTF_TagToString, [:uint, :pointer, :ulong_long], :void],
|
161
|
+
[:TTF_SetFontScript, :TTF_SetFontScript, [:pointer, :uint], :bool],
|
162
|
+
[:TTF_GetFontScript, :TTF_GetFontScript, [:pointer], :uint],
|
163
|
+
[:TTF_GetGlyphScript, :TTF_GetGlyphScript, [:uint], :uint],
|
146
164
|
[:TTF_SetFontLanguage, :TTF_SetFontLanguage, [:pointer, :pointer], :bool],
|
147
165
|
[:TTF_FontHasGlyph, :TTF_FontHasGlyph, [:pointer, :uint], :bool],
|
148
|
-
[:TTF_GetGlyphImage, :TTF_GetGlyphImage, [:pointer, :uint], :pointer],
|
149
|
-
[:TTF_GetGlyphImageForIndex, :TTF_GetGlyphImageForIndex, [:pointer, :uint], :pointer],
|
166
|
+
[:TTF_GetGlyphImage, :TTF_GetGlyphImage, [:pointer, :uint, :pointer], :pointer],
|
167
|
+
[:TTF_GetGlyphImageForIndex, :TTF_GetGlyphImageForIndex, [:pointer, :uint, :pointer], :pointer],
|
150
168
|
[:TTF_GetGlyphMetrics, :TTF_GetGlyphMetrics, [:pointer, :uint, :pointer, :pointer, :pointer, :pointer, :pointer], :bool],
|
151
169
|
[:TTF_GetGlyphKerning, :TTF_GetGlyphKerning, [:pointer, :uint, :uint, :pointer], :bool],
|
152
170
|
[:TTF_GetStringSize, :TTF_GetStringSize, [:pointer, :pointer, :ulong_long, :pointer, :pointer], :bool],
|
153
171
|
[:TTF_GetStringSizeWrapped, :TTF_GetStringSizeWrapped, [:pointer, :pointer, :ulong_long, :int, :pointer, :pointer], :bool],
|
154
172
|
[:TTF_MeasureString, :TTF_MeasureString, [:pointer, :pointer, :ulong_long, :int, :pointer, :pointer], :bool],
|
173
|
+
[:TTF_RenderText_Solid, :TTF_RenderText_Solid, [:pointer, :pointer, :ulong_long, Color.by_value], :pointer],
|
174
|
+
[:TTF_RenderText_Solid_Wrapped, :TTF_RenderText_Solid_Wrapped, [:pointer, :pointer, :ulong_long, Color.by_value, :int], :pointer],
|
175
|
+
[:TTF_RenderGlyph_Solid, :TTF_RenderGlyph_Solid, [:pointer, :uint, Color.by_value], :pointer],
|
155
176
|
[:TTF_RenderText_Shaded, :TTF_RenderText_Shaded, [:pointer, :pointer, :ulong_long, Color.by_value, Color.by_value], :pointer],
|
156
177
|
[:TTF_RenderText_Shaded_Wrapped, :TTF_RenderText_Shaded_Wrapped, [:pointer, :pointer, :ulong_long, Color.by_value, Color.by_value, :int], :pointer],
|
157
178
|
[:TTF_RenderGlyph_Shaded, :TTF_RenderGlyph_Shaded, [:pointer, :uint, Color.by_value, Color.by_value], :pointer],
|
@@ -165,9 +186,11 @@ module SDL
|
|
165
186
|
[:TTF_DrawSurfaceText, :TTF_DrawSurfaceText, [:pointer, :int, :int, :pointer], :bool],
|
166
187
|
[:TTF_DestroySurfaceTextEngine, :TTF_DestroySurfaceTextEngine, [:pointer], :void],
|
167
188
|
[:TTF_CreateRendererTextEngine, :TTF_CreateRendererTextEngine, [:pointer], :pointer],
|
189
|
+
[:TTF_CreateRendererTextEngineWithProperties, :TTF_CreateRendererTextEngineWithProperties, [:uint], :pointer],
|
168
190
|
[:TTF_DrawRendererText, :TTF_DrawRendererText, [:pointer, :float, :float], :bool],
|
169
191
|
[:TTF_DestroyRendererTextEngine, :TTF_DestroyRendererTextEngine, [:pointer], :void],
|
170
192
|
[:TTF_CreateGPUTextEngine, :TTF_CreateGPUTextEngine, [:pointer], :pointer],
|
193
|
+
[:TTF_CreateGPUTextEngineWithProperties, :TTF_CreateGPUTextEngineWithProperties, [:uint], :pointer],
|
171
194
|
[:TTF_GetGPUTextDrawData, :TTF_GetGPUTextDrawData, [:pointer], :pointer],
|
172
195
|
[:TTF_DestroyGPUTextEngine, :TTF_DestroyGPUTextEngine, [:pointer], :void],
|
173
196
|
[:TTF_SetGPUTextEngineWinding, :TTF_SetGPUTextEngineWinding, [:pointer, :int], :void],
|
@@ -178,6 +201,10 @@ module SDL
|
|
178
201
|
[:TTF_GetTextEngine, :TTF_GetTextEngine, [:pointer], :pointer],
|
179
202
|
[:TTF_SetTextFont, :TTF_SetTextFont, [:pointer, :pointer], :bool],
|
180
203
|
[:TTF_GetTextFont, :TTF_GetTextFont, [:pointer], :pointer],
|
204
|
+
[:TTF_SetTextDirection, :TTF_SetTextDirection, [:pointer, :int], :bool],
|
205
|
+
[:TTF_GetTextDirection, :TTF_GetTextDirection, [:pointer], :int],
|
206
|
+
[:TTF_SetTextScript, :TTF_SetTextScript, [:pointer, :uint], :bool],
|
207
|
+
[:TTF_GetTextScript, :TTF_GetTextScript, [:pointer], :uint],
|
181
208
|
[:TTF_SetTextColor, :TTF_SetTextColor, [:pointer, :uchar, :uchar, :uchar, :uchar], :bool],
|
182
209
|
[:TTF_SetTextColorFloat, :TTF_SetTextColorFloat, [:pointer, :float, :float, :float, :float], :bool],
|
183
210
|
[:TTF_GetTextColor, :TTF_GetTextColor, [:pointer, :pointer, :pointer, :pointer, :pointer], :bool],
|
data/lib/sdl3_version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sdl3-bindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.beta.
|
4
|
+
version: 1.0.0.beta.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-29 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: ffi
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.6.
|
115
|
+
rubygems_version: 3.6.5
|
116
116
|
specification_version: 4
|
117
117
|
summary: Bindings for SDL3
|
118
118
|
test_files: []
|