raylib 4.5.0.alpha1

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.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +16 -0
  3. data/README.md +97 -0
  4. data/lib/raylib/core/callbacks.rb +19 -0
  5. data/lib/raylib/core/colors.rb +32 -0
  6. data/lib/raylib/core/enums.rb +694 -0
  7. data/lib/raylib/core/functions.rb +1552 -0
  8. data/lib/raylib/core/structs/audio_stream.rb +71 -0
  9. data/lib/raylib/core/structs/bone_info.rb +38 -0
  10. data/lib/raylib/core/structs/bounding_box.rb +38 -0
  11. data/lib/raylib/core/structs/camera2_d.rb +60 -0
  12. data/lib/raylib/core/structs/camera3_d.rb +74 -0
  13. data/lib/raylib/core/structs/color.rb +60 -0
  14. data/lib/raylib/core/structs/file_path_list.rb +51 -0
  15. data/lib/raylib/core/structs/font.rb +82 -0
  16. data/lib/raylib/core/structs/glyph_info.rb +71 -0
  17. data/lib/raylib/core/structs/image.rb +71 -0
  18. data/lib/raylib/core/structs/material.rb +49 -0
  19. data/lib/raylib/core/structs/material_map.rb +49 -0
  20. data/lib/raylib/core/structs/matrix.rb +192 -0
  21. data/lib/raylib/core/structs/mesh.rb +181 -0
  22. data/lib/raylib/core/structs/model.rb +115 -0
  23. data/lib/raylib/core/structs/model_animation.rb +60 -0
  24. data/lib/raylib/core/structs/music.rb +71 -0
  25. data/lib/raylib/core/structs/n_patch_info.rb +82 -0
  26. data/lib/raylib/core/structs/ray.rb +38 -0
  27. data/lib/raylib/core/structs/ray_collision.rb +60 -0
  28. data/lib/raylib/core/structs/rectangle.rb +60 -0
  29. data/lib/raylib/core/structs/render_texture.rb +52 -0
  30. data/lib/raylib/core/structs/shader.rb +38 -0
  31. data/lib/raylib/core/structs/sound.rb +38 -0
  32. data/lib/raylib/core/structs/texture.rb +77 -0
  33. data/lib/raylib/core/structs/transform.rb +49 -0
  34. data/lib/raylib/core/structs/vector2.rb +38 -0
  35. data/lib/raylib/core/structs/vector3.rb +49 -0
  36. data/lib/raylib/core/structs/vector4.rb +63 -0
  37. data/lib/raylib/core/structs/vr_device_info.rb +126 -0
  38. data/lib/raylib/core/structs/vr_stereo_config.rb +104 -0
  39. data/lib/raylib/core/structs/wave.rb +71 -0
  40. data/lib/raylib/core/structs.rb +32 -0
  41. data/lib/raylib/core.rb +5 -0
  42. data/lib/raylib/dsl.rb +2 -0
  43. data/lib/raylib/raymath/functions.rb +337 -0
  44. data/lib/raylib/raymath/structs/float16.rb +27 -0
  45. data/lib/raylib/raymath/structs/float3.rb +27 -0
  46. data/lib/raylib/raymath/structs.rb +2 -0
  47. data/lib/raylib/raymath.rb +2 -0
  48. data/lib/raylib/rlgl/callbacks.rb +4 -0
  49. data/lib/raylib/rlgl/enums.rb +270 -0
  50. data/lib/raylib/rlgl/functions.rb +448 -0
  51. data/lib/raylib/rlgl/structs/rl_draw_call.rb +60 -0
  52. data/lib/raylib/rlgl/structs/rl_render_batch.rb +82 -0
  53. data/lib/raylib/rlgl/structs/rl_vertex_buffer.rb +93 -0
  54. data/lib/raylib/rlgl/structs.rb +3 -0
  55. data/lib/raylib/rlgl.rb +4 -0
  56. data/lib/raylib/version.rb +5 -0
  57. data/lib/raylib.rb +12 -0
  58. metadata +162 -0
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Raylib
4
+ VERSION = '4.5.0.alpha1'
5
+ end
data/lib/raylib.rb ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'raylib/version'
4
+ require 'ffi'
5
+
6
+ module Raylib
7
+ extend FFI::Library
8
+
9
+ ffi_lib 'raylib'
10
+ end
11
+
12
+ require 'raylib/core'
metadata ADDED
@@ -0,0 +1,162 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: raylib
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.5.0.alpha1
5
+ platform: ruby
6
+ authors:
7
+ - Wilson Silva
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ffi
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.12'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.57'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.57'
69
+ description: raylib is a simple and easy-to-use C library for enjoying videogames
70
+ programming. This gem provides Ruby language bindings for raylib, making it easier
71
+ to develop games in Ruby using raylib.
72
+ email:
73
+ - wilson.dsigns@gmail.com
74
+ executables: []
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - LICENSE.txt
79
+ - README.md
80
+ - lib/raylib.rb
81
+ - lib/raylib/core.rb
82
+ - lib/raylib/core/callbacks.rb
83
+ - lib/raylib/core/colors.rb
84
+ - lib/raylib/core/enums.rb
85
+ - lib/raylib/core/functions.rb
86
+ - lib/raylib/core/structs.rb
87
+ - lib/raylib/core/structs/audio_stream.rb
88
+ - lib/raylib/core/structs/bone_info.rb
89
+ - lib/raylib/core/structs/bounding_box.rb
90
+ - lib/raylib/core/structs/camera2_d.rb
91
+ - lib/raylib/core/structs/camera3_d.rb
92
+ - lib/raylib/core/structs/color.rb
93
+ - lib/raylib/core/structs/file_path_list.rb
94
+ - lib/raylib/core/structs/font.rb
95
+ - lib/raylib/core/structs/glyph_info.rb
96
+ - lib/raylib/core/structs/image.rb
97
+ - lib/raylib/core/structs/material.rb
98
+ - lib/raylib/core/structs/material_map.rb
99
+ - lib/raylib/core/structs/matrix.rb
100
+ - lib/raylib/core/structs/mesh.rb
101
+ - lib/raylib/core/structs/model.rb
102
+ - lib/raylib/core/structs/model_animation.rb
103
+ - lib/raylib/core/structs/music.rb
104
+ - lib/raylib/core/structs/n_patch_info.rb
105
+ - lib/raylib/core/structs/ray.rb
106
+ - lib/raylib/core/structs/ray_collision.rb
107
+ - lib/raylib/core/structs/rectangle.rb
108
+ - lib/raylib/core/structs/render_texture.rb
109
+ - lib/raylib/core/structs/shader.rb
110
+ - lib/raylib/core/structs/sound.rb
111
+ - lib/raylib/core/structs/texture.rb
112
+ - lib/raylib/core/structs/transform.rb
113
+ - lib/raylib/core/structs/vector2.rb
114
+ - lib/raylib/core/structs/vector3.rb
115
+ - lib/raylib/core/structs/vector4.rb
116
+ - lib/raylib/core/structs/vr_device_info.rb
117
+ - lib/raylib/core/structs/vr_stereo_config.rb
118
+ - lib/raylib/core/structs/wave.rb
119
+ - lib/raylib/dsl.rb
120
+ - lib/raylib/raymath.rb
121
+ - lib/raylib/raymath/functions.rb
122
+ - lib/raylib/raymath/structs.rb
123
+ - lib/raylib/raymath/structs/float16.rb
124
+ - lib/raylib/raymath/structs/float3.rb
125
+ - lib/raylib/rlgl.rb
126
+ - lib/raylib/rlgl/callbacks.rb
127
+ - lib/raylib/rlgl/enums.rb
128
+ - lib/raylib/rlgl/functions.rb
129
+ - lib/raylib/rlgl/structs.rb
130
+ - lib/raylib/rlgl/structs/rl_draw_call.rb
131
+ - lib/raylib/rlgl/structs/rl_render_batch.rb
132
+ - lib/raylib/rlgl/structs/rl_vertex_buffer.rb
133
+ - lib/raylib/version.rb
134
+ homepage: https://github.com/wilsonsilva/raylib-ruby
135
+ licenses:
136
+ - MIT
137
+ metadata:
138
+ allowed_push_host: https://rubygems.org
139
+ homepage_uri: https://github.com/wilsonsilva/raylib-ruby
140
+ source_code_uri: https://github.com/wilsonsilva/raylib-ruby
141
+ changelog_uri: https://github.com/wilsonsilva/raylib-ruby/blob/main/CHANGELOG.md
142
+ post_install_message:
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 3.2.0
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">"
154
+ - !ruby/object:Gem::Version
155
+ version: 1.3.1
156
+ requirements: []
157
+ rubygems_version: 3.4.20
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: Ruby bindings for raylib, a simple and easy-to-use library to enjoy videogames
161
+ programming.
162
+ test_files: []