rbsdl3 0.2.0 → 0.3.0
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.md +5 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/lib/rbsdl3/image.rb +61 -13
- data/lib/rbsdl3/sdl.rb +0 -0
- data/lib/rbsdl3/ttf.rb +0 -0
- data/lib/rbsdl3/version.rb +1 -1
- data/lib/rbsdl3.rb +0 -0
- data/sig/sdl3.rbs +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 735ceabe7394f50d29b5dc1b5693991a27f033391562f12fa47018a529dbafd8
|
|
4
|
+
data.tar.gz: 0d3d0c7887c6bc2f5d65fe7d0b3f52d1291491808442ec7669daba4761f1da39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f178fc6ec1dc4632841a4b634b21e843169c6fdf036c3f6c7becedb5047322c36931bff88cdd36759411b2c4b2adeb1bfa9d4f14b2aa227d65371f58983d193
|
|
7
|
+
data.tar.gz: 05bef4a70e285975a806f0216945cd0a1e75dbff6ef7490f81296721737a2b52bf3ce4bec7f1faa05f128672a8d11be977a767a7bce3a0a15a462d777e8f1fdd
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.3.0] - 2026-01-24
|
|
6
|
+
|
|
7
|
+
### Updated
|
|
8
|
+
- Target SDL_image version to 3.4.0 (from 3.2.6). Regenerated `rbsdl3/image.rb`; newly added APIs in SDL_image 3.4 are now available via the bindings (see the SDL_image 3.4.0 release notes for the full upstream change list).
|
|
9
|
+
|
|
5
10
|
## [0.2.0] - 2026-01-02
|
|
6
11
|
|
|
7
12
|
### Updated
|
data/LICENSE
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/lib/rbsdl3/image.rb
CHANGED
|
@@ -8,43 +8,48 @@ module SDL3
|
|
|
8
8
|
# Ruby wrappers for SDL_image macros
|
|
9
9
|
#
|
|
10
10
|
const_set :SDL_IMAGE_MAJOR_VERSION, 3
|
|
11
|
-
const_set :SDL_IMAGE_MINOR_VERSION,
|
|
12
|
-
const_set :SDL_IMAGE_MICRO_VERSION,
|
|
11
|
+
const_set :SDL_IMAGE_MINOR_VERSION, 4
|
|
12
|
+
const_set :SDL_IMAGE_MICRO_VERSION, 0
|
|
13
13
|
const_set :SDL_IMAGE_VERSION, SDL_VERSIONNUM(SDL_IMAGE_MAJOR_VERSION, SDL_IMAGE_MINOR_VERSION, SDL_IMAGE_MICRO_VERSION)
|
|
14
14
|
module_function def SDL_IMAGE_VERSION_ATLEAST(x, y, z) = ((SDL_IMAGE_MAJOR_VERSION >= x) && (SDL_IMAGE_MAJOR_VERSION > x || SDL_IMAGE_MINOR_VERSION >= y) && (SDL_IMAGE_MAJOR_VERSION > x || SDL_IMAGE_MINOR_VERSION > y || SDL_IMAGE_MICRO_VERSION >= z))
|
|
15
15
|
|
|
16
16
|
# Fiddle declarations for SDL_image functions, structs, and enums
|
|
17
17
|
#
|
|
18
18
|
extern "int IMG_Version(void)"
|
|
19
|
-
extern "SDL_Surface * IMG_LoadTyped_IO(SDL_IOStream *, bool, char *)"
|
|
20
19
|
extern "SDL_Surface * IMG_Load(char *)"
|
|
21
20
|
extern "SDL_Surface * IMG_Load_IO(SDL_IOStream *, bool)"
|
|
21
|
+
extern "SDL_Surface * IMG_LoadTyped_IO(SDL_IOStream *, bool, char *)"
|
|
22
22
|
extern "SDL_Texture * IMG_LoadTexture(SDL_Renderer *, char *)"
|
|
23
23
|
extern "SDL_Texture * IMG_LoadTexture_IO(SDL_Renderer *, SDL_IOStream *, bool)"
|
|
24
24
|
extern "SDL_Texture * IMG_LoadTextureTyped_IO(SDL_Renderer *, SDL_IOStream *, bool, char *)"
|
|
25
|
+
extern "SDL_GPUTexture * IMG_LoadGPUTexture(SDL_GPUDevice *, SDL_GPUCopyPass *, char *, int *, int *)"
|
|
26
|
+
extern "SDL_GPUTexture * IMG_LoadGPUTexture_IO(SDL_GPUDevice *, SDL_GPUCopyPass *, SDL_IOStream *, bool, int *, int *)"
|
|
27
|
+
extern "SDL_GPUTexture * IMG_LoadGPUTextureTyped_IO(SDL_GPUDevice *, SDL_GPUCopyPass *, SDL_IOStream *, bool, char *, int *, int *)"
|
|
28
|
+
extern "SDL_Surface * IMG_GetClipboardImage(void)"
|
|
29
|
+
extern "bool IMG_isANI(SDL_IOStream *)"
|
|
25
30
|
extern "bool IMG_isAVIF(SDL_IOStream *)"
|
|
26
|
-
extern "bool IMG_isICO(SDL_IOStream *)"
|
|
27
31
|
extern "bool IMG_isCUR(SDL_IOStream *)"
|
|
28
32
|
extern "bool IMG_isBMP(SDL_IOStream *)"
|
|
29
33
|
extern "bool IMG_isGIF(SDL_IOStream *)"
|
|
34
|
+
extern "bool IMG_isICO(SDL_IOStream *)"
|
|
30
35
|
extern "bool IMG_isJPG(SDL_IOStream *)"
|
|
31
36
|
extern "bool IMG_isJXL(SDL_IOStream *)"
|
|
32
37
|
extern "bool IMG_isLBM(SDL_IOStream *)"
|
|
33
38
|
extern "bool IMG_isPCX(SDL_IOStream *)"
|
|
34
39
|
extern "bool IMG_isPNG(SDL_IOStream *)"
|
|
35
40
|
extern "bool IMG_isPNM(SDL_IOStream *)"
|
|
36
|
-
extern "bool IMG_isSVG(SDL_IOStream *)"
|
|
37
41
|
extern "bool IMG_isQOI(SDL_IOStream *)"
|
|
42
|
+
extern "bool IMG_isSVG(SDL_IOStream *)"
|
|
38
43
|
extern "bool IMG_isTIF(SDL_IOStream *)"
|
|
44
|
+
extern "bool IMG_isWEBP(SDL_IOStream *)"
|
|
39
45
|
extern "bool IMG_isXCF(SDL_IOStream *)"
|
|
40
46
|
extern "bool IMG_isXPM(SDL_IOStream *)"
|
|
41
47
|
extern "bool IMG_isXV(SDL_IOStream *)"
|
|
42
|
-
extern "bool IMG_isWEBP(SDL_IOStream *)"
|
|
43
48
|
extern "SDL_Surface * IMG_LoadAVIF_IO(SDL_IOStream *)"
|
|
44
|
-
extern "SDL_Surface * IMG_LoadICO_IO(SDL_IOStream *)"
|
|
45
|
-
extern "SDL_Surface * IMG_LoadCUR_IO(SDL_IOStream *)"
|
|
46
49
|
extern "SDL_Surface * IMG_LoadBMP_IO(SDL_IOStream *)"
|
|
50
|
+
extern "SDL_Surface * IMG_LoadCUR_IO(SDL_IOStream *)"
|
|
47
51
|
extern "SDL_Surface * IMG_LoadGIF_IO(SDL_IOStream *)"
|
|
52
|
+
extern "SDL_Surface * IMG_LoadICO_IO(SDL_IOStream *)"
|
|
48
53
|
extern "SDL_Surface * IMG_LoadJPG_IO(SDL_IOStream *)"
|
|
49
54
|
extern "SDL_Surface * IMG_LoadJXL_IO(SDL_IOStream *)"
|
|
50
55
|
extern "SDL_Surface * IMG_LoadLBM_IO(SDL_IOStream *)"
|
|
@@ -52,22 +57,36 @@ module SDL3
|
|
|
52
57
|
extern "SDL_Surface * IMG_LoadPNG_IO(SDL_IOStream *)"
|
|
53
58
|
extern "SDL_Surface * IMG_LoadPNM_IO(SDL_IOStream *)"
|
|
54
59
|
extern "SDL_Surface * IMG_LoadSVG_IO(SDL_IOStream *)"
|
|
60
|
+
extern "SDL_Surface * IMG_LoadSizedSVG_IO(SDL_IOStream *, int, int)"
|
|
55
61
|
extern "SDL_Surface * IMG_LoadQOI_IO(SDL_IOStream *)"
|
|
56
62
|
extern "SDL_Surface * IMG_LoadTGA_IO(SDL_IOStream *)"
|
|
57
63
|
extern "SDL_Surface * IMG_LoadTIF_IO(SDL_IOStream *)"
|
|
64
|
+
extern "SDL_Surface * IMG_LoadWEBP_IO(SDL_IOStream *)"
|
|
58
65
|
extern "SDL_Surface * IMG_LoadXCF_IO(SDL_IOStream *)"
|
|
59
66
|
extern "SDL_Surface * IMG_LoadXPM_IO(SDL_IOStream *)"
|
|
60
67
|
extern "SDL_Surface * IMG_LoadXV_IO(SDL_IOStream *)"
|
|
61
|
-
extern "SDL_Surface * IMG_LoadWEBP_IO(SDL_IOStream *)"
|
|
62
|
-
extern "SDL_Surface * IMG_LoadSizedSVG_IO(SDL_IOStream *, int, int)"
|
|
63
68
|
extern "SDL_Surface * IMG_ReadXPMFromArray(char **)"
|
|
64
69
|
extern "SDL_Surface * IMG_ReadXPMFromArrayToRGB888(char **)"
|
|
70
|
+
extern "bool IMG_Save(SDL_Surface *, char *)"
|
|
71
|
+
extern "bool IMG_SaveTyped_IO(SDL_Surface *, SDL_IOStream *, bool, char *)"
|
|
65
72
|
extern "bool IMG_SaveAVIF(SDL_Surface *, char *, int)"
|
|
66
73
|
extern "bool IMG_SaveAVIF_IO(SDL_Surface *, SDL_IOStream *, bool, int)"
|
|
67
|
-
extern "bool
|
|
68
|
-
extern "bool
|
|
74
|
+
extern "bool IMG_SaveBMP(SDL_Surface *, char *)"
|
|
75
|
+
extern "bool IMG_SaveBMP_IO(SDL_Surface *, SDL_IOStream *, bool)"
|
|
76
|
+
extern "bool IMG_SaveCUR(SDL_Surface *, char *)"
|
|
77
|
+
extern "bool IMG_SaveCUR_IO(SDL_Surface *, SDL_IOStream *, bool)"
|
|
78
|
+
extern "bool IMG_SaveGIF(SDL_Surface *, char *)"
|
|
79
|
+
extern "bool IMG_SaveGIF_IO(SDL_Surface *, SDL_IOStream *, bool)"
|
|
80
|
+
extern "bool IMG_SaveICO(SDL_Surface *, char *)"
|
|
81
|
+
extern "bool IMG_SaveICO_IO(SDL_Surface *, SDL_IOStream *, bool)"
|
|
69
82
|
extern "bool IMG_SaveJPG(SDL_Surface *, char *, int)"
|
|
70
83
|
extern "bool IMG_SaveJPG_IO(SDL_Surface *, SDL_IOStream *, bool, int)"
|
|
84
|
+
extern "bool IMG_SavePNG(SDL_Surface *, char *)"
|
|
85
|
+
extern "bool IMG_SavePNG_IO(SDL_Surface *, SDL_IOStream *, bool)"
|
|
86
|
+
extern "bool IMG_SaveTGA(SDL_Surface *, char *)"
|
|
87
|
+
extern "bool IMG_SaveTGA_IO(SDL_Surface *, SDL_IOStream *, bool)"
|
|
88
|
+
extern "bool IMG_SaveWEBP(SDL_Surface *, char *, float)"
|
|
89
|
+
extern "bool IMG_SaveWEBP_IO(SDL_Surface *, SDL_IOStream *, bool, float)"
|
|
71
90
|
const_set :IMG_Animation, struct(
|
|
72
91
|
[
|
|
73
92
|
"int w",
|
|
@@ -80,9 +99,38 @@ module SDL3
|
|
|
80
99
|
extern "IMG_Animation * IMG_LoadAnimation(char *)"
|
|
81
100
|
extern "IMG_Animation * IMG_LoadAnimation_IO(SDL_IOStream *, bool)"
|
|
82
101
|
extern "IMG_Animation * IMG_LoadAnimationTyped_IO(SDL_IOStream *, bool, char *)"
|
|
83
|
-
extern "
|
|
102
|
+
extern "IMG_Animation * IMG_LoadANIAnimation_IO(SDL_IOStream *)"
|
|
103
|
+
extern "IMG_Animation * IMG_LoadAPNGAnimation_IO(SDL_IOStream *)"
|
|
104
|
+
extern "IMG_Animation * IMG_LoadAVIFAnimation_IO(SDL_IOStream *)"
|
|
84
105
|
extern "IMG_Animation * IMG_LoadGIFAnimation_IO(SDL_IOStream *)"
|
|
85
106
|
extern "IMG_Animation * IMG_LoadWEBPAnimation_IO(SDL_IOStream *)"
|
|
107
|
+
extern "bool IMG_SaveAnimation(IMG_Animation *, char *)"
|
|
108
|
+
extern "bool IMG_SaveAnimationTyped_IO(IMG_Animation *, SDL_IOStream *, bool, char *)"
|
|
109
|
+
extern "bool IMG_SaveANIAnimation_IO(IMG_Animation *, SDL_IOStream *, bool)"
|
|
110
|
+
extern "bool IMG_SaveAPNGAnimation_IO(IMG_Animation *, SDL_IOStream *, bool)"
|
|
111
|
+
extern "bool IMG_SaveAVIFAnimation_IO(IMG_Animation *, SDL_IOStream *, bool, int)"
|
|
112
|
+
extern "bool IMG_SaveGIFAnimation_IO(IMG_Animation *, SDL_IOStream *, bool)"
|
|
113
|
+
extern "bool IMG_SaveWEBPAnimation_IO(IMG_Animation *, SDL_IOStream *, bool, int)"
|
|
114
|
+
extern "SDL_Cursor * IMG_CreateAnimatedCursor(IMG_Animation *, int, int)"
|
|
115
|
+
extern "void IMG_FreeAnimation(IMG_Animation *)"
|
|
116
|
+
extern "IMG_AnimationEncoder * IMG_CreateAnimationEncoder(char *)"
|
|
117
|
+
extern "IMG_AnimationEncoder * IMG_CreateAnimationEncoder_IO(SDL_IOStream *, bool, char *)"
|
|
118
|
+
extern "IMG_AnimationEncoder * IMG_CreateAnimationEncoderWithProperties(SDL_PropertiesID)"
|
|
119
|
+
extern "bool IMG_AddAnimationEncoderFrame(IMG_AnimationEncoder *, SDL_Surface *, Uint64)"
|
|
120
|
+
extern "bool IMG_CloseAnimationEncoder(IMG_AnimationEncoder *)"
|
|
121
|
+
const_set :IMG_DECODER_STATUS_INVALID, 4294967295
|
|
122
|
+
const_set :IMG_DECODER_STATUS_OK, 0
|
|
123
|
+
const_set :IMG_DECODER_STATUS_FAILED, 1
|
|
124
|
+
const_set :IMG_DECODER_STATUS_COMPLETE, 2
|
|
125
|
+
typealias "IMG_AnimationDecoderStatus", "enum"
|
|
126
|
+
extern "IMG_AnimationDecoder * IMG_CreateAnimationDecoder(char *)"
|
|
127
|
+
extern "IMG_AnimationDecoder * IMG_CreateAnimationDecoder_IO(SDL_IOStream *, bool, char *)"
|
|
128
|
+
extern "IMG_AnimationDecoder * IMG_CreateAnimationDecoderWithProperties(SDL_PropertiesID)"
|
|
129
|
+
extern "SDL_PropertiesID IMG_GetAnimationDecoderProperties(IMG_AnimationDecoder *)"
|
|
130
|
+
extern "bool IMG_GetAnimationDecoderFrame(IMG_AnimationDecoder *, SDL_Surface **, Uint64 *)"
|
|
131
|
+
extern "IMG_AnimationDecoderStatus IMG_GetAnimationDecoderStatus(IMG_AnimationDecoder *)"
|
|
132
|
+
extern "bool IMG_ResetAnimationDecoder(IMG_AnimationDecoder *)"
|
|
133
|
+
extern "bool IMG_CloseAnimationDecoder(IMG_AnimationDecoder *)"
|
|
86
134
|
}
|
|
87
135
|
private_constant :SDL_image
|
|
88
136
|
|
data/lib/rbsdl3/sdl.rb
CHANGED
|
File without changes
|
data/lib/rbsdl3/ttf.rb
CHANGED
|
File without changes
|
data/lib/rbsdl3/version.rb
CHANGED
data/lib/rbsdl3.rb
CHANGED
|
File without changes
|
data/sig/sdl3.rbs
CHANGED
|
File without changes
|