danabr75-ashton 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +0 -0
  3. data/LICENSE +21 -0
  4. data/README.md +95 -0
  5. data/Rakefile +42 -0
  6. data/examples/bloom_example.rb +59 -0
  7. data/examples/lighting_example.rb +127 -0
  8. data/examples/media/Earth.png +0 -0
  9. data/examples/media/LargeStar.png +0 -0
  10. data/examples/media/SmallStar.png +0 -0
  11. data/examples/media/Star.png +0 -0
  12. data/examples/media/Starfighter.bmp +0 -0
  13. data/examples/media/Starfighter.png +0 -0
  14. data/examples/media/simple.png +0 -0
  15. data/examples/noise_example.rb +94 -0
  16. data/examples/outline_example.rb +86 -0
  17. data/examples/particle_emitter_example.rb +114 -0
  18. data/examples/pixelate_example.rb +52 -0
  19. data/examples/pixelated_texture_example.rb +69 -0
  20. data/examples/radial_blur_example.rb +61 -0
  21. data/examples/shader_image_example.rb +75 -0
  22. data/examples/shockwave_example.rb +75 -0
  23. data/examples/stencil_shader_example.rb +104 -0
  24. data/examples/texture_render_example.rb +54 -0
  25. data/examples/tv_screen_and_static_example.rb +60 -0
  26. data/ext/ashton/GLee.c +18170 -0
  27. data/ext/ashton/GLee.h +17648 -0
  28. data/ext/ashton/ashton.c +42 -0
  29. data/ext/ashton/ashton.h +31 -0
  30. data/ext/ashton/color.c +45 -0
  31. data/ext/ashton/color.h +25 -0
  32. data/ext/ashton/common.h +41 -0
  33. data/ext/ashton/extconf.rb +45 -0
  34. data/ext/ashton/fast_math.c +30 -0
  35. data/ext/ashton/fast_math.h +30 -0
  36. data/ext/ashton/font.c +8 -0
  37. data/ext/ashton/font.h +16 -0
  38. data/ext/ashton/gosu.c +18 -0
  39. data/ext/ashton/gosu.h +19 -0
  40. data/ext/ashton/image.c +8 -0
  41. data/ext/ashton/image.h +16 -0
  42. data/ext/ashton/particle_emitter.c +788 -0
  43. data/ext/ashton/particle_emitter.h +171 -0
  44. data/ext/ashton/pixel_cache.c +237 -0
  45. data/ext/ashton/pixel_cache.h +58 -0
  46. data/ext/ashton/shader.c +9 -0
  47. data/ext/ashton/shader.h +16 -0
  48. data/ext/ashton/texture.c +442 -0
  49. data/ext/ashton/texture.h +63 -0
  50. data/ext/ashton/vendor/gl/include/GL/GL.H +1526 -0
  51. data/ext/ashton/window.c +8 -0
  52. data/ext/ashton/window.h +16 -0
  53. data/lib/ashton.rb +38 -0
  54. data/lib/ashton/gosu_ext/color.rb +25 -0
  55. data/lib/ashton/gosu_ext/font.rb +58 -0
  56. data/lib/ashton/gosu_ext/gosu_module.rb +16 -0
  57. data/lib/ashton/gosu_ext/image.rb +96 -0
  58. data/lib/ashton/gosu_ext/window.rb +79 -0
  59. data/lib/ashton/image_stub.rb +33 -0
  60. data/lib/ashton/lighting/light_source.rb +146 -0
  61. data/lib/ashton/lighting/manager.rb +98 -0
  62. data/lib/ashton/mixins/version_checking.rb +23 -0
  63. data/lib/ashton/particle_emitter.rb +87 -0
  64. data/lib/ashton/pixel_cache.rb +24 -0
  65. data/lib/ashton/shader.rb +386 -0
  66. data/lib/ashton/shaders/bloom.frag +41 -0
  67. data/lib/ashton/shaders/color_inversion.frag +11 -0
  68. data/lib/ashton/shaders/contrast.frag +16 -0
  69. data/lib/ashton/shaders/default.frag +22 -0
  70. data/lib/ashton/shaders/default.vert +14 -0
  71. data/lib/ashton/shaders/fade.frag +14 -0
  72. data/lib/ashton/shaders/grayscale.frag +15 -0
  73. data/lib/ashton/shaders/include/classicnoise2d.glsl +113 -0
  74. data/lib/ashton/shaders/include/classicnoise3d.glsl +177 -0
  75. data/lib/ashton/shaders/include/classicnoise4d.glsl +302 -0
  76. data/lib/ashton/shaders/include/noise2d.glsl +70 -0
  77. data/lib/ashton/shaders/include/noise3d.glsl +102 -0
  78. data/lib/ashton/shaders/include/noise4d.glsl +128 -0
  79. data/lib/ashton/shaders/include/rand.glsl +5 -0
  80. data/lib/ashton/shaders/lighting/distort.frag +57 -0
  81. data/lib/ashton/shaders/lighting/draw_shadows.frag +60 -0
  82. data/lib/ashton/shaders/lighting/shadow_blur.frag +60 -0
  83. data/lib/ashton/shaders/mezzotint.frag +22 -0
  84. data/lib/ashton/shaders/multitexture2.vert +19 -0
  85. data/lib/ashton/shaders/outline.frag +45 -0
  86. data/lib/ashton/shaders/pixelate.frag +48 -0
  87. data/lib/ashton/shaders/radial_blur.frag +63 -0
  88. data/lib/ashton/shaders/sepia.frag +26 -0
  89. data/lib/ashton/shaders/shockwave.frag +38 -0
  90. data/lib/ashton/shaders/signed_distance_field.frag +80 -0
  91. data/lib/ashton/shaders/static.frag +25 -0
  92. data/lib/ashton/shaders/stencil.frag +27 -0
  93. data/lib/ashton/shaders/tv_screen.frag +23 -0
  94. data/lib/ashton/signed_distance_field.rb +151 -0
  95. data/lib/ashton/texture.rb +186 -0
  96. data/lib/ashton/version.rb +3 -0
  97. data/lib/ashton/window_buffer.rb +16 -0
  98. data/spec/ashton/ashton_spec.rb +22 -0
  99. data/spec/ashton/gosu_ext/color_spec.rb +34 -0
  100. data/spec/ashton/gosu_ext/font_spec.rb +57 -0
  101. data/spec/ashton/gosu_ext/gosu_spec.rb +11 -0
  102. data/spec/ashton/gosu_ext/image_spec.rb +66 -0
  103. data/spec/ashton/gosu_ext/window_spec.rb +71 -0
  104. data/spec/ashton/image_stub_spec.rb +46 -0
  105. data/spec/ashton/particle_emitter_spec.rb +123 -0
  106. data/spec/ashton/pixel_cache_spec.rb +153 -0
  107. data/spec/ashton/shader_spec.rb +152 -0
  108. data/spec/ashton/signed_distance_field_spec.rb +163 -0
  109. data/spec/ashton/texture_spec.rb +347 -0
  110. data/spec/helper.rb +12 -0
  111. metadata +309 -0
@@ -0,0 +1,12 @@
1
+ require_relative "../lib/ashton"
2
+
3
+ require "rspec"
4
+ require 'rspec/autorun'
5
+ require "rr"
6
+ require 'texplay'
7
+
8
+ RSpec.configure do |config|
9
+ config.mock_framework = :rr
10
+ end
11
+
12
+ def media_path(file); File.expand_path "../examples/media/#{file}", File.dirname(__FILE__) end
metadata ADDED
@@ -0,0 +1,309 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: danabr75-ashton
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
+ platform: ruby
6
+ authors:
7
+ - Bil Bas
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: opengl-bindings
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: gosu
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.7'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake-compiler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.8.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.8.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.10.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.10.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rr
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.0.4
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.0.4
83
+ - !ruby/object:Gem::Dependency
84
+ name: launchy
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 2.1.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.1.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: RedCloth
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 4.2.9
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 4.2.9
111
+ - !ruby/object:Gem::Dependency
112
+ name: redcarpet
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.1.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.1.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: yard
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.8.2.1
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.8.2.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: texplay
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.4.3
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.4.3
153
+ description: |
154
+ FORKED TO USE A DIFFERENT OPENGL DEPENDENCY: Extra special effects, such as shader, for the Gosu game-development library
155
+ email:
156
+ - bil.bagpuss@gmail.com
157
+ executables: []
158
+ extensions:
159
+ - ext/ashton/extconf.rb
160
+ extra_rdoc_files: []
161
+ files:
162
+ - CHANGELOG
163
+ - LICENSE
164
+ - README.md
165
+ - Rakefile
166
+ - examples/bloom_example.rb
167
+ - examples/lighting_example.rb
168
+ - examples/media/Earth.png
169
+ - examples/media/LargeStar.png
170
+ - examples/media/SmallStar.png
171
+ - examples/media/Star.png
172
+ - examples/media/Starfighter.bmp
173
+ - examples/media/Starfighter.png
174
+ - examples/media/simple.png
175
+ - examples/noise_example.rb
176
+ - examples/outline_example.rb
177
+ - examples/particle_emitter_example.rb
178
+ - examples/pixelate_example.rb
179
+ - examples/pixelated_texture_example.rb
180
+ - examples/radial_blur_example.rb
181
+ - examples/shader_image_example.rb
182
+ - examples/shockwave_example.rb
183
+ - examples/stencil_shader_example.rb
184
+ - examples/texture_render_example.rb
185
+ - examples/tv_screen_and_static_example.rb
186
+ - ext/ashton/GLee.c
187
+ - ext/ashton/GLee.h
188
+ - ext/ashton/ashton.c
189
+ - ext/ashton/ashton.h
190
+ - ext/ashton/color.c
191
+ - ext/ashton/color.h
192
+ - ext/ashton/common.h
193
+ - ext/ashton/extconf.rb
194
+ - ext/ashton/fast_math.c
195
+ - ext/ashton/fast_math.h
196
+ - ext/ashton/font.c
197
+ - ext/ashton/font.h
198
+ - ext/ashton/gosu.c
199
+ - ext/ashton/gosu.h
200
+ - ext/ashton/image.c
201
+ - ext/ashton/image.h
202
+ - ext/ashton/particle_emitter.c
203
+ - ext/ashton/particle_emitter.h
204
+ - ext/ashton/pixel_cache.c
205
+ - ext/ashton/pixel_cache.h
206
+ - ext/ashton/shader.c
207
+ - ext/ashton/shader.h
208
+ - ext/ashton/texture.c
209
+ - ext/ashton/texture.h
210
+ - ext/ashton/vendor/gl/include/GL/GL.H
211
+ - ext/ashton/window.c
212
+ - ext/ashton/window.h
213
+ - lib/ashton.rb
214
+ - lib/ashton/gosu_ext/color.rb
215
+ - lib/ashton/gosu_ext/font.rb
216
+ - lib/ashton/gosu_ext/gosu_module.rb
217
+ - lib/ashton/gosu_ext/image.rb
218
+ - lib/ashton/gosu_ext/window.rb
219
+ - lib/ashton/image_stub.rb
220
+ - lib/ashton/lighting/light_source.rb
221
+ - lib/ashton/lighting/manager.rb
222
+ - lib/ashton/mixins/version_checking.rb
223
+ - lib/ashton/particle_emitter.rb
224
+ - lib/ashton/pixel_cache.rb
225
+ - lib/ashton/shader.rb
226
+ - lib/ashton/shaders/bloom.frag
227
+ - lib/ashton/shaders/color_inversion.frag
228
+ - lib/ashton/shaders/contrast.frag
229
+ - lib/ashton/shaders/default.frag
230
+ - lib/ashton/shaders/default.vert
231
+ - lib/ashton/shaders/fade.frag
232
+ - lib/ashton/shaders/grayscale.frag
233
+ - lib/ashton/shaders/include/classicnoise2d.glsl
234
+ - lib/ashton/shaders/include/classicnoise3d.glsl
235
+ - lib/ashton/shaders/include/classicnoise4d.glsl
236
+ - lib/ashton/shaders/include/noise2d.glsl
237
+ - lib/ashton/shaders/include/noise3d.glsl
238
+ - lib/ashton/shaders/include/noise4d.glsl
239
+ - lib/ashton/shaders/include/rand.glsl
240
+ - lib/ashton/shaders/lighting/distort.frag
241
+ - lib/ashton/shaders/lighting/draw_shadows.frag
242
+ - lib/ashton/shaders/lighting/shadow_blur.frag
243
+ - lib/ashton/shaders/mezzotint.frag
244
+ - lib/ashton/shaders/multitexture2.vert
245
+ - lib/ashton/shaders/outline.frag
246
+ - lib/ashton/shaders/pixelate.frag
247
+ - lib/ashton/shaders/radial_blur.frag
248
+ - lib/ashton/shaders/sepia.frag
249
+ - lib/ashton/shaders/shockwave.frag
250
+ - lib/ashton/shaders/signed_distance_field.frag
251
+ - lib/ashton/shaders/static.frag
252
+ - lib/ashton/shaders/stencil.frag
253
+ - lib/ashton/shaders/tv_screen.frag
254
+ - lib/ashton/signed_distance_field.rb
255
+ - lib/ashton/texture.rb
256
+ - lib/ashton/version.rb
257
+ - lib/ashton/window_buffer.rb
258
+ - spec/ashton/ashton_spec.rb
259
+ - spec/ashton/gosu_ext/color_spec.rb
260
+ - spec/ashton/gosu_ext/font_spec.rb
261
+ - spec/ashton/gosu_ext/gosu_spec.rb
262
+ - spec/ashton/gosu_ext/image_spec.rb
263
+ - spec/ashton/gosu_ext/window_spec.rb
264
+ - spec/ashton/image_stub_spec.rb
265
+ - spec/ashton/particle_emitter_spec.rb
266
+ - spec/ashton/pixel_cache_spec.rb
267
+ - spec/ashton/shader_spec.rb
268
+ - spec/ashton/signed_distance_field_spec.rb
269
+ - spec/ashton/texture_spec.rb
270
+ - spec/helper.rb
271
+ homepage: https://github.com/spooner/ashton
272
+ licenses:
273
+ - MIT
274
+ metadata: {}
275
+ post_install_message:
276
+ rdoc_options: []
277
+ require_paths:
278
+ - lib
279
+ required_ruby_version: !ruby/object:Gem::Requirement
280
+ requirements:
281
+ - - ">="
282
+ - !ruby/object:Gem::Version
283
+ version: 1.9.2
284
+ required_rubygems_version: !ruby/object:Gem::Requirement
285
+ requirements:
286
+ - - ">="
287
+ - !ruby/object:Gem::Version
288
+ version: '0'
289
+ requirements: []
290
+ rubyforge_project: ashton
291
+ rubygems_version: 2.4.8
292
+ signing_key:
293
+ specification_version: 4
294
+ summary: 'FORKED TO USE A DIFFERENT OPENGL DEPENDENCY: Extra special effects, such
295
+ as shader, for the Gosu game-development library'
296
+ test_files:
297
+ - spec/ashton/ashton_spec.rb
298
+ - spec/ashton/gosu_ext/color_spec.rb
299
+ - spec/ashton/gosu_ext/font_spec.rb
300
+ - spec/ashton/gosu_ext/gosu_spec.rb
301
+ - spec/ashton/gosu_ext/image_spec.rb
302
+ - spec/ashton/gosu_ext/window_spec.rb
303
+ - spec/ashton/image_stub_spec.rb
304
+ - spec/ashton/particle_emitter_spec.rb
305
+ - spec/ashton/pixel_cache_spec.rb
306
+ - spec/ashton/shader_spec.rb
307
+ - spec/ashton/signed_distance_field_spec.rb
308
+ - spec/ashton/texture_spec.rb
309
+ - spec/helper.rb