sdl2-bindings 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +83 -79
- data/LICENSE.txt +1 -1
- data/README.md +49 -49
- data/lib/sdl2.rb +170 -170
- data/lib/sdl2_audio.rb +219 -201
- data/lib/sdl2_blendmode.rb +69 -69
- data/lib/sdl2_clipboard.rb +51 -51
- data/lib/sdl2_cpuinfo.rb +106 -106
- data/lib/sdl2_error.rb +64 -64
- data/lib/sdl2_events.rb +530 -530
- data/lib/sdl2_filesystem.rb +48 -48
- data/lib/sdl2_framerate.rb +67 -67
- data/lib/sdl2_gamecontroller.rb +254 -254
- data/lib/sdl2_gesture.rb +55 -55
- data/lib/sdl2_gfxPrimitives.rb +222 -222
- data/lib/sdl2_haptic.rb +269 -269
- data/lib/sdl2_hints.rb +174 -174
- data/lib/sdl2_image.rb +185 -185
- data/lib/sdl2_imageFilter.rb +132 -132
- data/lib/sdl2_joystick.rb +230 -230
- data/lib/sdl2_keyboard.rb +99 -99
- data/lib/sdl2_keycode.rb +304 -304
- data/lib/sdl2_log.rb +115 -115
- data/lib/sdl2_main.rb +67 -67
- data/lib/sdl2_messagebox.rb +98 -98
- data/lib/sdl2_mixer.rb +317 -307
- data/lib/sdl2_mouse.rb +117 -117
- data/lib/sdl2_pixels.rb +224 -224
- data/lib/sdl2_platform.rb +45 -45
- data/lib/sdl2_power.rb +51 -51
- data/lib/sdl2_rect.rb +102 -102
- data/lib/sdl2_render.rb +290 -290
- data/lib/sdl2_rotozoom.rb +66 -66
- data/lib/sdl2_rwops.rb +208 -208
- data/lib/sdl2_scancode.rb +287 -287
- data/lib/sdl2_shape.rb +77 -77
- data/lib/sdl2_stdinc.rb +393 -393
- data/lib/sdl2_surface.rb +182 -182
- data/lib/sdl2_syswm.rb +154 -154
- data/lib/sdl2_timer.rb +62 -62
- data/lib/sdl2_touch.rb +73 -73
- data/lib/sdl2_ttf.rb +202 -190
- data/lib/sdl2_version.rb +62 -62
- data/lib/sdl2_video.rb +411 -411
- data/lib/sdl2_vulkan.rb +64 -64
- metadata +6 -6
data/lib/sdl2_vulkan.rb
CHANGED
@@ -1,64 +1,64 @@
|
|
1
|
-
# Ruby-SDL2 : Yet another SDL2 wrapper for Ruby
|
2
|
-
#
|
3
|
-
# * https://github.com/vaiorabbit/sdl2-bindings
|
4
|
-
#
|
5
|
-
# [NOTICE] This is an automatically generated file.
|
6
|
-
|
7
|
-
require 'ffi'
|
8
|
-
|
9
|
-
module SDL2
|
10
|
-
extend FFI::Library
|
11
|
-
# Define/Macro
|
12
|
-
|
13
|
-
|
14
|
-
# Enum
|
15
|
-
|
16
|
-
|
17
|
-
# Typedef
|
18
|
-
|
19
|
-
typedef :pointer, :VkInstance
|
20
|
-
typedef :pointer, :VkSurfaceKHR
|
21
|
-
typedef :pointer, :SDL_vulkanInstance
|
22
|
-
typedef :pointer, :SDL_vulkanSurface
|
23
|
-
|
24
|
-
# Struct
|
25
|
-
|
26
|
-
|
27
|
-
# Function
|
28
|
-
|
29
|
-
def self.setup_vulkan_symbols()
|
30
|
-
symbols = [
|
31
|
-
:SDL_Vulkan_LoadLibrary,
|
32
|
-
:SDL_Vulkan_GetVkGetInstanceProcAddr,
|
33
|
-
:SDL_Vulkan_UnloadLibrary,
|
34
|
-
:SDL_Vulkan_GetInstanceExtensions,
|
35
|
-
:SDL_Vulkan_CreateSurface,
|
36
|
-
:SDL_Vulkan_GetDrawableSize,
|
37
|
-
]
|
38
|
-
args = {
|
39
|
-
:SDL_Vulkan_LoadLibrary => [:pointer],
|
40
|
-
:SDL_Vulkan_GetVkGetInstanceProcAddr => [],
|
41
|
-
:SDL_Vulkan_UnloadLibrary => [],
|
42
|
-
:SDL_Vulkan_GetInstanceExtensions => [:pointer, :pointer, :pointer],
|
43
|
-
:SDL_Vulkan_CreateSurface => [:pointer, :pointer, :pointer],
|
44
|
-
:SDL_Vulkan_GetDrawableSize => [:pointer, :pointer, :pointer],
|
45
|
-
}
|
46
|
-
retvals = {
|
47
|
-
:SDL_Vulkan_LoadLibrary => :int,
|
48
|
-
:SDL_Vulkan_GetVkGetInstanceProcAddr => :pointer,
|
49
|
-
:SDL_Vulkan_UnloadLibrary => :void,
|
50
|
-
:SDL_Vulkan_GetInstanceExtensions => :int,
|
51
|
-
:SDL_Vulkan_CreateSurface => :int,
|
52
|
-
:SDL_Vulkan_GetDrawableSize => :void,
|
53
|
-
}
|
54
|
-
symbols.each do |sym|
|
55
|
-
begin
|
56
|
-
attach_function sym, args[sym], retvals[sym]
|
57
|
-
rescue FFI::NotFoundError => error
|
58
|
-
$stderr.puts("[Warning] Failed to import #{sym} (#{error}).")
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|
1
|
+
# Ruby-SDL2 : Yet another SDL2 wrapper for Ruby
|
2
|
+
#
|
3
|
+
# * https://github.com/vaiorabbit/sdl2-bindings
|
4
|
+
#
|
5
|
+
# [NOTICE] This is an automatically generated file.
|
6
|
+
|
7
|
+
require 'ffi'
|
8
|
+
|
9
|
+
module SDL2
|
10
|
+
extend FFI::Library
|
11
|
+
# Define/Macro
|
12
|
+
|
13
|
+
|
14
|
+
# Enum
|
15
|
+
|
16
|
+
|
17
|
+
# Typedef
|
18
|
+
|
19
|
+
typedef :pointer, :VkInstance
|
20
|
+
typedef :pointer, :VkSurfaceKHR
|
21
|
+
typedef :pointer, :SDL_vulkanInstance
|
22
|
+
typedef :pointer, :SDL_vulkanSurface
|
23
|
+
|
24
|
+
# Struct
|
25
|
+
|
26
|
+
|
27
|
+
# Function
|
28
|
+
|
29
|
+
def self.setup_vulkan_symbols()
|
30
|
+
symbols = [
|
31
|
+
:SDL_Vulkan_LoadLibrary,
|
32
|
+
:SDL_Vulkan_GetVkGetInstanceProcAddr,
|
33
|
+
:SDL_Vulkan_UnloadLibrary,
|
34
|
+
:SDL_Vulkan_GetInstanceExtensions,
|
35
|
+
:SDL_Vulkan_CreateSurface,
|
36
|
+
:SDL_Vulkan_GetDrawableSize,
|
37
|
+
]
|
38
|
+
args = {
|
39
|
+
:SDL_Vulkan_LoadLibrary => [:pointer],
|
40
|
+
:SDL_Vulkan_GetVkGetInstanceProcAddr => [],
|
41
|
+
:SDL_Vulkan_UnloadLibrary => [],
|
42
|
+
:SDL_Vulkan_GetInstanceExtensions => [:pointer, :pointer, :pointer],
|
43
|
+
:SDL_Vulkan_CreateSurface => [:pointer, :pointer, :pointer],
|
44
|
+
:SDL_Vulkan_GetDrawableSize => [:pointer, :pointer, :pointer],
|
45
|
+
}
|
46
|
+
retvals = {
|
47
|
+
:SDL_Vulkan_LoadLibrary => :int,
|
48
|
+
:SDL_Vulkan_GetVkGetInstanceProcAddr => :pointer,
|
49
|
+
:SDL_Vulkan_UnloadLibrary => :void,
|
50
|
+
:SDL_Vulkan_GetInstanceExtensions => :int,
|
51
|
+
:SDL_Vulkan_CreateSurface => :int,
|
52
|
+
:SDL_Vulkan_GetDrawableSize => :void,
|
53
|
+
}
|
54
|
+
symbols.each do |sym|
|
55
|
+
begin
|
56
|
+
attach_function sym, args[sym], retvals[sym]
|
57
|
+
rescue FFI::NotFoundError => error
|
58
|
+
$stderr.puts("[Warning] Failed to import #{sym} (#{error}).")
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sdl2-bindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Ruby bindings for SDL2.
|
14
14
|
|
@@ -68,7 +68,7 @@ homepage: https://github.com/vaiorabbit/sdl2-bindings
|
|
68
68
|
licenses:
|
69
69
|
- Zlib
|
70
70
|
metadata: {}
|
71
|
-
post_install_message:
|
71
|
+
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
74
74
|
- lib
|
@@ -83,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
87
|
-
signing_key:
|
86
|
+
rubygems_version: 3.2.3
|
87
|
+
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Bindings for SDL2
|
90
90
|
test_files: []
|