sdl2-bindings 0.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +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
+
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sdl2-bindings
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0.pre
5
+ platform: ruby
6
+ authors:
7
+ - vaiorabbit
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-31 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'Ruby bindings for SDL2.
14
+
15
+ '
16
+ email:
17
+ - vaiorabbit@gmail.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - ChangeLog
23
+ - LICENSE.txt
24
+ - README.md
25
+ - lib/sdl2.rb
26
+ - lib/sdl2_audio.rb
27
+ - lib/sdl2_blendmode.rb
28
+ - lib/sdl2_clipboard.rb
29
+ - lib/sdl2_cpuinfo.rb
30
+ - lib/sdl2_error.rb
31
+ - lib/sdl2_events.rb
32
+ - lib/sdl2_filesystem.rb
33
+ - lib/sdl2_framerate.rb
34
+ - lib/sdl2_gamecontroller.rb
35
+ - lib/sdl2_gesture.rb
36
+ - lib/sdl2_gfxPrimitives.rb
37
+ - lib/sdl2_haptic.rb
38
+ - lib/sdl2_hints.rb
39
+ - lib/sdl2_image.rb
40
+ - lib/sdl2_imageFilter.rb
41
+ - lib/sdl2_joystick.rb
42
+ - lib/sdl2_keyboard.rb
43
+ - lib/sdl2_keycode.rb
44
+ - lib/sdl2_log.rb
45
+ - lib/sdl2_main.rb
46
+ - lib/sdl2_messagebox.rb
47
+ - lib/sdl2_mixer.rb
48
+ - lib/sdl2_mouse.rb
49
+ - lib/sdl2_pixels.rb
50
+ - lib/sdl2_platform.rb
51
+ - lib/sdl2_power.rb
52
+ - lib/sdl2_rect.rb
53
+ - lib/sdl2_render.rb
54
+ - lib/sdl2_rotozoom.rb
55
+ - lib/sdl2_rwops.rb
56
+ - lib/sdl2_scancode.rb
57
+ - lib/sdl2_shape.rb
58
+ - lib/sdl2_surface.rb
59
+ - lib/sdl2_timer.rb
60
+ - lib/sdl2_touch.rb
61
+ - lib/sdl2_ttf.rb
62
+ - lib/sdl2_version.rb
63
+ - lib/sdl2_video.rb
64
+ - lib/sdl2_vulkan.rb
65
+ homepage: https://github.com/vaiorabbit/sdl2-bindings
66
+ licenses:
67
+ - Zlib
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 2.6.0
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.3.1
83
+ requirements: []
84
+ rubygems_version: 3.0.3
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: Bindings for SDL2
88
+ test_files: []