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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +83 -79
  3. data/LICENSE.txt +1 -1
  4. data/README.md +49 -49
  5. data/lib/sdl2.rb +170 -170
  6. data/lib/sdl2_audio.rb +219 -201
  7. data/lib/sdl2_blendmode.rb +69 -69
  8. data/lib/sdl2_clipboard.rb +51 -51
  9. data/lib/sdl2_cpuinfo.rb +106 -106
  10. data/lib/sdl2_error.rb +64 -64
  11. data/lib/sdl2_events.rb +530 -530
  12. data/lib/sdl2_filesystem.rb +48 -48
  13. data/lib/sdl2_framerate.rb +67 -67
  14. data/lib/sdl2_gamecontroller.rb +254 -254
  15. data/lib/sdl2_gesture.rb +55 -55
  16. data/lib/sdl2_gfxPrimitives.rb +222 -222
  17. data/lib/sdl2_haptic.rb +269 -269
  18. data/lib/sdl2_hints.rb +174 -174
  19. data/lib/sdl2_image.rb +185 -185
  20. data/lib/sdl2_imageFilter.rb +132 -132
  21. data/lib/sdl2_joystick.rb +230 -230
  22. data/lib/sdl2_keyboard.rb +99 -99
  23. data/lib/sdl2_keycode.rb +304 -304
  24. data/lib/sdl2_log.rb +115 -115
  25. data/lib/sdl2_main.rb +67 -67
  26. data/lib/sdl2_messagebox.rb +98 -98
  27. data/lib/sdl2_mixer.rb +317 -307
  28. data/lib/sdl2_mouse.rb +117 -117
  29. data/lib/sdl2_pixels.rb +224 -224
  30. data/lib/sdl2_platform.rb +45 -45
  31. data/lib/sdl2_power.rb +51 -51
  32. data/lib/sdl2_rect.rb +102 -102
  33. data/lib/sdl2_render.rb +290 -290
  34. data/lib/sdl2_rotozoom.rb +66 -66
  35. data/lib/sdl2_rwops.rb +208 -208
  36. data/lib/sdl2_scancode.rb +287 -287
  37. data/lib/sdl2_shape.rb +77 -77
  38. data/lib/sdl2_stdinc.rb +393 -393
  39. data/lib/sdl2_surface.rb +182 -182
  40. data/lib/sdl2_syswm.rb +154 -154
  41. data/lib/sdl2_timer.rb +62 -62
  42. data/lib/sdl2_touch.rb +73 -73
  43. data/lib/sdl2_ttf.rb +202 -190
  44. data/lib/sdl2_version.rb +62 -62
  45. data/lib/sdl2_video.rb +411 -411
  46. data/lib/sdl2_vulkan.rb +64 -64
  47. 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.5
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: 2020-12-29 00:00:00.000000000 Z
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.1.2
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: []