sdl2-bindings 0.0.1 → 0.0.6

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.
data/lib/sdl2_timer.rb CHANGED
@@ -38,7 +38,7 @@ module SDL2
38
38
  :SDL_GetPerformanceCounter => [],
39
39
  :SDL_GetPerformanceFrequency => [],
40
40
  :SDL_Delay => [:uint],
41
- :SDL_AddTimer => [:uint, :pointer, :pointer],
41
+ :SDL_AddTimer => [:uint, :SDL_TimerCallback, :pointer],
42
42
  :SDL_RemoveTimer => [:int],
43
43
  }
44
44
  retvals = {
data/lib/sdl2_ttf.rb CHANGED
@@ -14,6 +14,18 @@ module SDL2
14
14
  SDL_TTF_MAJOR_VERSION = 2
15
15
  SDL_TTF_MINOR_VERSION = 0
16
16
  SDL_TTF_PATCHLEVEL = 15
17
+ TTF_MAJOR_VERSION = SDL_TTF_MAJOR_VERSION
18
+ TTF_MINOR_VERSION = SDL_TTF_MINOR_VERSION
19
+ TTF_PATCHLEVEL = SDL_TTF_PATCHLEVEL
20
+ TTF_STYLE_NORMAL = 0x00
21
+ TTF_STYLE_BOLD = 0x01
22
+ TTF_STYLE_ITALIC = 0x02
23
+ TTF_STYLE_UNDERLINE = 0x04
24
+ TTF_STYLE_STRIKETHROUGH = 0x08
25
+ TTF_HINTING_NORMAL = 0
26
+ TTF_HINTING_LIGHT = 1
27
+ TTF_HINTING_MONO = 2
28
+ TTF_HINTING_NONE = 3
17
29
 
18
30
  # Enum
19
31
 
data/lib/sdl2_version.rb CHANGED
@@ -12,7 +12,7 @@ module SDL2
12
12
 
13
13
  SDL_MAJOR_VERSION = 2
14
14
  SDL_MINOR_VERSION = 0
15
- SDL_PATCHLEVEL = 10
15
+ SDL_PATCHLEVEL = 14
16
16
 
17
17
  # Enum
18
18
 
data/lib/sdl2_video.rb CHANGED
@@ -36,6 +36,7 @@ module SDL2
36
36
  SDL_WINDOW_TOOLTIP = 262144
37
37
  SDL_WINDOW_POPUP_MENU = 524288
38
38
  SDL_WINDOW_VULKAN = 268435456
39
+ SDL_WINDOW_METAL = 536870912
39
40
  SDL_WINDOWEVENT_NONE = 0
40
41
  SDL_WINDOWEVENT_SHOWN = 1
41
42
  SDL_WINDOWEVENT_HIDDEN = 2
@@ -55,6 +56,8 @@ module SDL2
55
56
  SDL_WINDOWEVENT_HIT_TEST = 16
56
57
  SDL_DISPLAYEVENT_NONE = 0
57
58
  SDL_DISPLAYEVENT_ORIENTATION = 1
59
+ SDL_DISPLAYEVENT_CONNECTED = 2
60
+ SDL_DISPLAYEVENT_DISCONNECTED = 3
58
61
  SDL_ORIENTATION_UNKNOWN = 0
59
62
  SDL_ORIENTATION_LANDSCAPE = 1
60
63
  SDL_ORIENTATION_LANDSCAPE_FLIPPED = 2
@@ -288,7 +291,7 @@ module SDL2
288
291
  :SDL_SetWindowInputFocus => [:pointer],
289
292
  :SDL_SetWindowGammaRamp => [:pointer, :pointer, :pointer, :pointer],
290
293
  :SDL_GetWindowGammaRamp => [:pointer, :pointer, :pointer, :pointer],
291
- :SDL_SetWindowHitTest => [:pointer, :pointer, :pointer],
294
+ :SDL_SetWindowHitTest => [:pointer, :SDL_HitTest, :pointer],
292
295
  :SDL_DestroyWindow => [:pointer],
293
296
  :SDL_IsScreenSaverEnabled => [],
294
297
  :SDL_EnableScreenSaver => [],
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.1
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: 2019-09-01 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
 
@@ -55,7 +55,9 @@ files:
55
55
  - lib/sdl2_rwops.rb
56
56
  - lib/sdl2_scancode.rb
57
57
  - lib/sdl2_shape.rb
58
+ - lib/sdl2_stdinc.rb
58
59
  - lib/sdl2_surface.rb
60
+ - lib/sdl2_syswm.rb
59
61
  - lib/sdl2_timer.rb
60
62
  - lib/sdl2_touch.rb
61
63
  - lib/sdl2_ttf.rb
@@ -66,7 +68,7 @@ homepage: https://github.com/vaiorabbit/sdl2-bindings
66
68
  licenses:
67
69
  - Zlib
68
70
  metadata: {}
69
- post_install_message:
71
+ post_install_message:
70
72
  rdoc_options: []
71
73
  require_paths:
72
74
  - lib
@@ -81,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
83
  - !ruby/object:Gem::Version
82
84
  version: '0'
83
85
  requirements: []
84
- rubygems_version: 3.0.3
85
- signing_key:
86
+ rubygems_version: 3.2.3
87
+ signing_key:
86
88
  specification_version: 4
87
89
  summary: Bindings for SDL2
88
90
  test_files: []