sdl2_ffi 0.0.4 → 0.0.5

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 (92) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/Gemfile +6 -0
  4. data/Guardfile +47 -25
  5. data/Rakefile +6 -0
  6. data/bin/approvals +16 -0
  7. data/bin/autospec +16 -0
  8. data/bin/htmldiff +16 -0
  9. data/bin/ldiff +16 -0
  10. data/bin/nokogiri +16 -0
  11. data/bin/rspec +16 -0
  12. data/lib/enumerable_constants.rb +23 -8
  13. data/lib/sdl2.rb +116 -39
  14. data/lib/sdl2/color.rb +19 -7
  15. data/lib/sdl2/events.rb +184 -85
  16. data/lib/sdl2/gamecontroller.rb +1 -1
  17. data/lib/sdl2/gem_version.rb +1 -1
  18. data/lib/sdl2/joystick.rb +1 -1
  19. data/lib/sdl2/keyboard.rb +3 -0
  20. data/lib/sdl2/mouse.rb +5 -5
  21. data/lib/sdl2/pixel_format.rb +11 -3
  22. data/lib/sdl2/pixels.rb +40 -40
  23. data/lib/sdl2/point.rb +17 -1
  24. data/lib/sdl2/power.rb +12 -3
  25. data/lib/sdl2/rect.rb +19 -0
  26. data/lib/sdl2/render.rb +3 -3
  27. data/lib/sdl2/scancode.rb +7 -0
  28. data/lib/sdl2/stdinc.rb +2 -0
  29. data/lib/sdl2/surface.rb +64 -12
  30. data/lib/sdl2/ttf.rb +52 -66
  31. data/lib/sdl2/ttf/font.rb +115 -0
  32. data/lib/sdl2/video.rb +23 -23
  33. data/lib/sdl2/window.rb +15 -15
  34. data/sdl2_ffi.gemspec +5 -2
  35. data/spec/fixtures/approvals/lazyfoonet_lesson_01_hello_world/draws_hello_to_the_window_surface.approved.png +0 -0
  36. data/spec/fixtures/approvals/lazyfoonet_lesson_01_hello_world/loaded_and_optimizes_hello_bitmap.approved.png +0 -0
  37. data/spec/fixtures/approvals/lazyfoonet_lesson_02_optimized_images/draws_the_message_and_background.approved.png +0 -0
  38. data/spec/fixtures/approvals/lazyfoonet_lesson_03_extension_libraries/should_blit_a_png_to_screen.approved.png +0 -0
  39. data/spec/fixtures/approvals/lazyfoonet_lesson_04_event_driven_programming/draws_something_to_the_screen.approved.png +0 -0
  40. data/spec/fixtures/approvals/lazyfoonet_lesson_05_color_keying/draws_the_sprite_using_a_color_key.approved.png +0 -0
  41. data/spec/fixtures/approvals/lazyfoonet_lesson_06_clip_blitting_and_sprite_sheets/draws_the_clipped_sprites_to_the_screen.approved.png +0 -0
  42. data/spec/fixtures/approvals/lazyfoonet_lesson_07_true_type_fonts/draws_the_message_to_the_screen.approved.png +0 -0
  43. data/spec/fixtures/approvals/lazyfoonet_lesson_07_true_type_fonts/writes_a_message_to_a_surface.approved.png +0 -0
  44. data/spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_down_message.approved.png +0 -0
  45. data/spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_left_message.approved.png +0 -0
  46. data/spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_right_message.approved.png +0 -0
  47. data/spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_up_message.approved.png +0 -0
  48. data/spec/fixtures/approvals/sdl2_color/looks_blue_when_it_should.approved.png +0 -0
  49. data/spec/fixtures/approvals/sdl2_color/looks_green_when_it_should.approved.png +0 -0
  50. data/spec/fixtures/approvals/sdl2_color/looks_red_when_it_should.approved.png +0 -0
  51. data/spec/fixtures/approvals/sdl2_color/should_cast_arrays_properly.approved.png +0 -0
  52. data/spec/fixtures/approvals/sdl2_color/should_cast_hashes_properly.approved.png +0 -0
  53. data/spec/fixtures/fonts/FreeMono.ttf +0 -0
  54. data/spec/fixtures/fonts/GaroaHackerClubeBold.otf +0 -0
  55. data/spec/fixtures/fonts/GaroaHackerClubeBold.otf.credits.yaml +4 -0
  56. data/spec/fixtures/images/an_example.png +0 -0
  57. data/spec/fixtures/images/background.bmp +0 -0
  58. data/spec/fixtures/images/background.jpg +0 -0
  59. data/spec/fixtures/images/background.png +0 -0
  60. data/spec/fixtures/images/foo.jpg +0 -0
  61. data/spec/fixtures/images/hello.bmp +0 -0
  62. data/spec/fixtures/images/sprites.jpg +0 -0
  63. data/spec/fixtures/images/tile.png +0 -0
  64. data/spec/fixtures/images/x.png +0 -0
  65. data/spec/functional/lazy_foo_tutorial/lazy_foo_01_hello_world_spec.rb +39 -0
  66. data/spec/functional/lazy_foo_tutorial/lazy_foo_02_optimized_images_spec.rb +51 -0
  67. data/spec/functional/lazy_foo_tutorial/lazy_foo_03_extension_libraries_spec.rb +31 -0
  68. data/spec/functional/lazy_foo_tutorial/lazy_foo_04_event_driven_programming_spec.rb +55 -0
  69. data/spec/functional/lazy_foo_tutorial/lazy_foo_05_color_keying_spec.rb +41 -0
  70. data/spec/functional/lazy_foo_tutorial/lazy_foo_06_clip_blitting_and_sprite_sheets_spec.rb +41 -0
  71. data/spec/functional/lazy_foo_tutorial/lazy_foo_07_true_type_fonts_spec.rb +56 -0
  72. data/spec/functional/lazy_foo_tutorial/lazy_foo_08_key_presses_spec.rb +120 -0
  73. data/spec/functional/lazy_foo_tutorial/lazy_foo_helper.rb +6 -0
  74. data/spec/png_writer.rb +21 -0
  75. data/spec/spec_helper.rb +23 -0
  76. data/spec/unit/sdl2/color_spec.rb +46 -0
  77. data/spec/unit/unit_helper.rb +3 -0
  78. data/test/approvals/clip_blitting_and_sprite_sheets.received.bmp +0 -0
  79. data/test/approvals/color_keying_example.approved.png +0 -0
  80. data/test/approvals/hello_world_example_hello.approved.png +0 -0
  81. data/test/approvals/hello_world_example_screen.approved.png +0 -0
  82. data/test/approvals/optimized_surface_loading.approved.png +0 -0
  83. data/test/fixtures/background.jpg +0 -0
  84. data/test/fixtures/foo.jpg +0 -0
  85. data/test/fixtures/sprites.jpg +0 -0
  86. data/test/fixtures/x.png +0 -0
  87. data/test/functional/examples/lazyfoo.net_s/test_clip_blitting_and_sprite_sheets.rb +50 -0
  88. data/test/functional/examples/lazyfoo.net_s/test_color_keying.rb +42 -0
  89. data/test/functional/examples/test_lazy_foo_examples.rb +120 -48
  90. data/test/test_helper.rb +9 -0
  91. metadata +138 -4
  92. data/graph +0 -566
@@ -4,100 +4,101 @@ describe "Hello World example translated from: http://lazyfoo.net/SDL_tutorials/
4
4
 
5
5
  BMP = Hash.new(){ | bmps, key | bmps[key] = File.expand_path("#{key}.bmp", FIXTURE_DIR) }
6
6
  PNG = Hash.new(){ | bmps, key | bmps[key] = File.expand_path("#{key}.png", FIXTURE_DIR) }
7
-
8
-
9
- # Functional Translated from:
7
+
8
+ # Functional Translated from:
10
9
  # http://lazyfoo.net/SDL_tutorials/lesson01/index2.php
11
10
  it "runs LazyFoo.net's Hello World example" do
12
-
11
+
13
12
  require 'sdl2'
14
-
13
+
15
14
  hello = nil
16
15
  window = nil
17
16
  screen = nil
18
-
17
+
19
18
  # BANG(!) versions of methods Raise RuntimeErrors if needed.
20
- SDL2.init!(:EVERYTHING)
21
-
19
+ SDL2.init!(:EVERYTHING)
20
+
22
21
  window = SDL2::Window.create('Hello World', :UNDEFINED, :UNDEFINED, 640, 480, :SHOWN)
23
-
24
-
22
+
25
23
  screen = window.surface
26
-
24
+
27
25
  #binding.pry
26
+
28
27
  hello = SDL2::Surface.load_bmp(BMP[:hello])
29
28
 
30
- screen.blit_in(hello)
29
+ Approvals.verify(hello, format: :png, name: 'hello world example: hello')
30
+
31
+ screen.blit_in(hello)
31
32
 
33
+ Approvals.verify(screen, format: :png, name: 'hello world example: screen')
34
+
32
35
  window.update_surface
33
-
36
+
34
37
  #SDL2::delay(2000)
35
-
38
+
36
39
  SDL2::quit() # Since the Quit function can't fail, there is no BANG(!) version.
37
-
40
+
38
41
  end
39
-
42
+
40
43
  # Functional Example Translated from:
41
44
  # http://lazyfoo.net/SDL_tutorials/lesson02/index.php
42
45
  it "runs LazyFoo.net's Optimized Surface Loading and Blitting " do
43
-
46
+
44
47
  width = 640
45
48
  height = 480
46
-
49
+
47
50
  message = nil
48
51
  background = nil
49
52
  SDL2.init!(:EVERYTHING)
50
-
53
+
51
54
  window = SDL2::Window.create("Optimized Images!", :CENTERED, :CENTERED, width, height)
52
55
  @screen = window.surface
53
-
54
-
55
- def load_image(filename)
56
- loadedImage = SDL2.load_bmp!(filename)
56
+
57
+ def load_image(filename)
58
+ loadedImage = SDL2.load_bmp!(filename)
57
59
  optimizedImage = @screen.convert(loadedImage)
58
60
  loadedImage.free
59
61
  return optimizedImage
60
62
  end
61
-
63
+
62
64
  def apply_surface(x, y, source, dest)
63
65
  offset = SDL2::Rect.new
64
66
  offset.x, offset.y = x,y
65
67
  offset.w, offset.h = source.w, source.h
66
68
  source.blit_out(dest, offset)
67
69
  end
68
-
69
-
70
-
71
- message = load_image(BMP[:hello])
70
+
71
+ message = load_image(BMP[:hello])
72
72
  background = load_image(BMP[:background])
73
-
73
+
74
74
  apply_surface(0,0, background, @screen)
75
75
  apply_surface(320,0, background, @screen)
76
76
  apply_surface(0,240, background, @screen)
77
77
  apply_surface(320,240, background, @screen)
78
-
78
+
79
79
  apply_surface(180, 140, message, @screen)
80
80
 
81
-
81
+ Approvals.verify(@screen, format: :png, name: 'Optimized Surface Loading')
82
+
82
83
  window.update_surface
83
-
84
+
84
85
  # SDL2.delay(2000) # Watch it for a sec.
85
-
86
+
86
87
  message.free
87
88
  background.free
88
-
89
+
89
90
  SDL2.quit()
90
-
91
+
91
92
  end
92
-
93
+
93
94
  it "runs LazyFoo.net's SDL Extension Libraries" do
94
95
  require 'sdl2/image'
95
-
96
+
96
97
  SDL2.init! :EVERYTHING
97
-
98
+
98
99
  @window = SDL2::Window.create("Extension Libraries", :CENTERED, :CENTERED, 640, 480)
99
100
  @screen = @window.surface
100
-
101
+
101
102
  # We can load more now, not just BMPs!
102
103
  def load_image(filename)
103
104
  loadedImage = SDL2::Image.load!(filename)
@@ -105,19 +106,90 @@ describe "Hello World example translated from: http://lazyfoo.net/SDL_tutorials/
105
106
  loadedImage.free
106
107
  return optimizedImage
107
108
  end
108
-
109
+
109
110
  a_png = load_image(PNG[:an_example])
110
-
111
+
111
112
  a_png.blit_out(@screen)
112
-
113
+
113
114
  @window.update_surface
114
-
115
- SDL2.delay(2000) # sleep 1
116
-
115
+
116
+ # SDL2.delay(2000) # sleep 1
117
+
117
118
  a_png.free
118
-
119
+
119
120
  SDL2.quit()
120
-
121
+
121
122
  end
122
-
123
+
124
+ it "runs LazyFoo.net's Event Driven Programming" do
125
+ require 'sdl2/image'
126
+ require 'sdl2'
127
+
128
+ def init()
129
+ SDL2.init!(:EVERYTHING)
130
+
131
+ width = 640
132
+ height = 480
133
+ @window = SDL2::Window.create("Event Driven Programming",
134
+ :CENTERED, :CENTERED, width, height)
135
+
136
+ @screen = @window.surface
137
+ end
138
+
139
+ def clean_up()
140
+ @image.free unless @image.nil?
141
+ SDL2.quit()
142
+ end
143
+
144
+ def load_image(filename)
145
+ loadedImage = SDL2::Image.load!(filename)
146
+ optimizedImage = @screen.convert(loadedImage)
147
+ loadedImage.free
148
+ return optimizedImage
149
+ end
150
+
151
+ def apply_surface(x, y, source, destination)
152
+ offset = SDL2::Rect.new
153
+ offset.x, offset.y = x,y
154
+ source.blit_out(destination, offset)
155
+ end
156
+
157
+ def load_files()
158
+ @image = load_image(PNG[:x])
159
+ end
160
+
161
+ # Main start:
162
+
163
+ quit = false
164
+
165
+ init()
166
+
167
+ load_files()
168
+
169
+ apply_surface(0,0, @image, @screen)
170
+
171
+ @window.update_surface()
172
+
173
+ until @quit do
174
+ # Pre-Events
175
+
176
+ # Event Processing
177
+ while event = SDL2::Event.poll()
178
+ puts "GOT EVENT TYPE: #{event.type_symbol}"
179
+ if (event.type == SDL2::EVENTTYPE::QUIT)
180
+ @quit = true
181
+ end
182
+ end
183
+
184
+ # Post - Events
185
+ # Lets insert an SDL QUIT event.
186
+ my_quit_event = SDL2::Event.new
187
+ my_quit_event.type = SDL2::EVENTTYPE::QUIT
188
+
189
+ SDL2::push_event! my_quit_event
190
+
191
+ end
192
+
193
+ end
194
+
123
195
  end
@@ -1,4 +1,13 @@
1
1
  require 'minitest/autorun'
2
2
  require 'pry'
3
+ require 'approvals'
4
+
3
5
 
4
6
  FIXTURE_DIR = File.expand_path('../fixtures/',__FILE__)
7
+ def fixture(file)
8
+ File.expand_path(file, FIXTURE_DIR)
9
+ end
10
+
11
+ Approvals.configure do |c|
12
+ c.approvals_path = File.expand_path('../approvals/',__FILE__)+'/'
13
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdl2_ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - BadQuanta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-16 00:00:00.000000000 Z
11
+ date: 2013-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 5.0.7
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '2.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +123,7 @@ dependencies:
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
- name: guard-minitest
126
+ name: guard-rspec
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - '>='
@@ -140,10 +154,16 @@ description: 'Foreign Function Interface to SDL2 in Ruby '
140
154
  email:
141
155
  - BadQuanta@Gmail.com
142
156
  executables:
157
+ - approvals
158
+ - autospec
143
159
  - coderay
144
160
  - guard
161
+ - htmldiff
162
+ - ldiff
163
+ - nokogiri
145
164
  - pry
146
165
  - rake
166
+ - rspec
147
167
  - thor
148
168
  - yard
149
169
  - yardoc
@@ -159,15 +179,20 @@ files:
159
179
  - LICENSE.txt
160
180
  - README.md
161
181
  - Rakefile
182
+ - bin/approvals
183
+ - bin/autospec
162
184
  - bin/coderay
163
185
  - bin/guard
186
+ - bin/htmldiff
187
+ - bin/ldiff
188
+ - bin/nokogiri
164
189
  - bin/pry
165
190
  - bin/rake
191
+ - bin/rspec
166
192
  - bin/thor
167
193
  - bin/yard
168
194
  - bin/yardoc
169
195
  - bin/yri
170
- - graph
171
196
  - lib/enumerable_constants.rb
172
197
  - lib/sdl2.rb
173
198
  - lib/sdl2/assert.rb
@@ -215,16 +240,71 @@ files:
215
240
  - lib/sdl2/timer.rb
216
241
  - lib/sdl2/touch.rb
217
242
  - lib/sdl2/ttf.rb
243
+ - lib/sdl2/ttf/font.rb
218
244
  - lib/sdl2/ttf/sdl_ttf_module.rb
219
245
  - lib/sdl2/version.rb
220
246
  - lib/sdl2/video.rb
221
247
  - lib/sdl2/window.rb
222
248
  - lib/sdl2_ffi.rb
223
249
  - sdl2_ffi.gemspec
250
+ - spec/fixtures/approvals/lazyfoonet_lesson_01_hello_world/draws_hello_to_the_window_surface.approved.png
251
+ - spec/fixtures/approvals/lazyfoonet_lesson_01_hello_world/loaded_and_optimizes_hello_bitmap.approved.png
252
+ - spec/fixtures/approvals/lazyfoonet_lesson_02_optimized_images/draws_the_message_and_background.approved.png
253
+ - spec/fixtures/approvals/lazyfoonet_lesson_03_extension_libraries/should_blit_a_png_to_screen.approved.png
254
+ - spec/fixtures/approvals/lazyfoonet_lesson_04_event_driven_programming/draws_something_to_the_screen.approved.png
255
+ - spec/fixtures/approvals/lazyfoonet_lesson_05_color_keying/draws_the_sprite_using_a_color_key.approved.png
256
+ - spec/fixtures/approvals/lazyfoonet_lesson_06_clip_blitting_and_sprite_sheets/draws_the_clipped_sprites_to_the_screen.approved.png
257
+ - spec/fixtures/approvals/lazyfoonet_lesson_07_true_type_fonts/draws_the_message_to_the_screen.approved.png
258
+ - spec/fixtures/approvals/lazyfoonet_lesson_07_true_type_fonts/writes_a_message_to_a_surface.approved.png
259
+ - spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_down_message.approved.png
260
+ - spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_left_message.approved.png
261
+ - spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_right_message.approved.png
262
+ - spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_up_message.approved.png
263
+ - spec/fixtures/approvals/sdl2_color/looks_blue_when_it_should.approved.png
264
+ - spec/fixtures/approvals/sdl2_color/looks_green_when_it_should.approved.png
265
+ - spec/fixtures/approvals/sdl2_color/looks_red_when_it_should.approved.png
266
+ - spec/fixtures/approvals/sdl2_color/should_cast_arrays_properly.approved.png
267
+ - spec/fixtures/approvals/sdl2_color/should_cast_hashes_properly.approved.png
268
+ - spec/fixtures/fonts/FreeMono.ttf
269
+ - spec/fixtures/fonts/GaroaHackerClubeBold.otf
270
+ - spec/fixtures/fonts/GaroaHackerClubeBold.otf.credits.yaml
271
+ - spec/fixtures/images/an_example.png
272
+ - spec/fixtures/images/background.bmp
273
+ - spec/fixtures/images/background.jpg
274
+ - spec/fixtures/images/background.png
275
+ - spec/fixtures/images/foo.jpg
276
+ - spec/fixtures/images/hello.bmp
277
+ - spec/fixtures/images/sprites.jpg
278
+ - spec/fixtures/images/tile.png
279
+ - spec/fixtures/images/x.png
280
+ - spec/functional/lazy_foo_tutorial/lazy_foo_01_hello_world_spec.rb
281
+ - spec/functional/lazy_foo_tutorial/lazy_foo_02_optimized_images_spec.rb
282
+ - spec/functional/lazy_foo_tutorial/lazy_foo_03_extension_libraries_spec.rb
283
+ - spec/functional/lazy_foo_tutorial/lazy_foo_04_event_driven_programming_spec.rb
284
+ - spec/functional/lazy_foo_tutorial/lazy_foo_05_color_keying_spec.rb
285
+ - spec/functional/lazy_foo_tutorial/lazy_foo_06_clip_blitting_and_sprite_sheets_spec.rb
286
+ - spec/functional/lazy_foo_tutorial/lazy_foo_07_true_type_fonts_spec.rb
287
+ - spec/functional/lazy_foo_tutorial/lazy_foo_08_key_presses_spec.rb
288
+ - spec/functional/lazy_foo_tutorial/lazy_foo_helper.rb
289
+ - spec/png_writer.rb
290
+ - spec/spec_helper.rb
291
+ - spec/unit/sdl2/color_spec.rb
292
+ - spec/unit/unit_helper.rb
293
+ - test/approvals/clip_blitting_and_sprite_sheets.received.bmp
294
+ - test/approvals/color_keying_example.approved.png
295
+ - test/approvals/hello_world_example_hello.approved.png
296
+ - test/approvals/hello_world_example_screen.approved.png
297
+ - test/approvals/optimized_surface_loading.approved.png
224
298
  - test/fixtures/an_example.png
225
299
  - test/fixtures/background.bmp
300
+ - test/fixtures/background.jpg
226
301
  - test/fixtures/color_bars.jpg
302
+ - test/fixtures/foo.jpg
227
303
  - test/fixtures/hello.bmp
304
+ - test/fixtures/sprites.jpg
305
+ - test/fixtures/x.png
306
+ - test/functional/examples/lazyfoo.net_s/test_clip_blitting_and_sprite_sheets.rb
307
+ - test/functional/examples/lazyfoo.net_s/test_color_keying.rb
228
308
  - test/functional/examples/test_lazy_foo_examples.rb
229
309
  - test/functional/examples/test_readme_examples.rb
230
310
  - test/test_helper.rb
@@ -280,10 +360,64 @@ signing_key:
280
360
  specification_version: 4
281
361
  summary: Object Oriented wrapper for SDL2. Help me test & debug my interface.
282
362
  test_files:
363
+ - spec/fixtures/approvals/lazyfoonet_lesson_01_hello_world/draws_hello_to_the_window_surface.approved.png
364
+ - spec/fixtures/approvals/lazyfoonet_lesson_01_hello_world/loaded_and_optimizes_hello_bitmap.approved.png
365
+ - spec/fixtures/approvals/lazyfoonet_lesson_02_optimized_images/draws_the_message_and_background.approved.png
366
+ - spec/fixtures/approvals/lazyfoonet_lesson_03_extension_libraries/should_blit_a_png_to_screen.approved.png
367
+ - spec/fixtures/approvals/lazyfoonet_lesson_04_event_driven_programming/draws_something_to_the_screen.approved.png
368
+ - spec/fixtures/approvals/lazyfoonet_lesson_05_color_keying/draws_the_sprite_using_a_color_key.approved.png
369
+ - spec/fixtures/approvals/lazyfoonet_lesson_06_clip_blitting_and_sprite_sheets/draws_the_clipped_sprites_to_the_screen.approved.png
370
+ - spec/fixtures/approvals/lazyfoonet_lesson_07_true_type_fonts/draws_the_message_to_the_screen.approved.png
371
+ - spec/fixtures/approvals/lazyfoonet_lesson_07_true_type_fonts/writes_a_message_to_a_surface.approved.png
372
+ - spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_down_message.approved.png
373
+ - spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_left_message.approved.png
374
+ - spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_right_message.approved.png
375
+ - spec/fixtures/approvals/lazyfoonet_lesson_08_key_presses/rendered_the_up_message.approved.png
376
+ - spec/fixtures/approvals/sdl2_color/looks_blue_when_it_should.approved.png
377
+ - spec/fixtures/approvals/sdl2_color/looks_green_when_it_should.approved.png
378
+ - spec/fixtures/approvals/sdl2_color/looks_red_when_it_should.approved.png
379
+ - spec/fixtures/approvals/sdl2_color/should_cast_arrays_properly.approved.png
380
+ - spec/fixtures/approvals/sdl2_color/should_cast_hashes_properly.approved.png
381
+ - spec/fixtures/fonts/FreeMono.ttf
382
+ - spec/fixtures/fonts/GaroaHackerClubeBold.otf
383
+ - spec/fixtures/fonts/GaroaHackerClubeBold.otf.credits.yaml
384
+ - spec/fixtures/images/an_example.png
385
+ - spec/fixtures/images/background.bmp
386
+ - spec/fixtures/images/background.jpg
387
+ - spec/fixtures/images/background.png
388
+ - spec/fixtures/images/foo.jpg
389
+ - spec/fixtures/images/hello.bmp
390
+ - spec/fixtures/images/sprites.jpg
391
+ - spec/fixtures/images/tile.png
392
+ - spec/fixtures/images/x.png
393
+ - spec/functional/lazy_foo_tutorial/lazy_foo_01_hello_world_spec.rb
394
+ - spec/functional/lazy_foo_tutorial/lazy_foo_02_optimized_images_spec.rb
395
+ - spec/functional/lazy_foo_tutorial/lazy_foo_03_extension_libraries_spec.rb
396
+ - spec/functional/lazy_foo_tutorial/lazy_foo_04_event_driven_programming_spec.rb
397
+ - spec/functional/lazy_foo_tutorial/lazy_foo_05_color_keying_spec.rb
398
+ - spec/functional/lazy_foo_tutorial/lazy_foo_06_clip_blitting_and_sprite_sheets_spec.rb
399
+ - spec/functional/lazy_foo_tutorial/lazy_foo_07_true_type_fonts_spec.rb
400
+ - spec/functional/lazy_foo_tutorial/lazy_foo_08_key_presses_spec.rb
401
+ - spec/functional/lazy_foo_tutorial/lazy_foo_helper.rb
402
+ - spec/png_writer.rb
403
+ - spec/spec_helper.rb
404
+ - spec/unit/sdl2/color_spec.rb
405
+ - spec/unit/unit_helper.rb
406
+ - test/approvals/clip_blitting_and_sprite_sheets.received.bmp
407
+ - test/approvals/color_keying_example.approved.png
408
+ - test/approvals/hello_world_example_hello.approved.png
409
+ - test/approvals/hello_world_example_screen.approved.png
410
+ - test/approvals/optimized_surface_loading.approved.png
283
411
  - test/fixtures/an_example.png
284
412
  - test/fixtures/background.bmp
413
+ - test/fixtures/background.jpg
285
414
  - test/fixtures/color_bars.jpg
415
+ - test/fixtures/foo.jpg
286
416
  - test/fixtures/hello.bmp
417
+ - test/fixtures/sprites.jpg
418
+ - test/fixtures/x.png
419
+ - test/functional/examples/lazyfoo.net_s/test_clip_blitting_and_sprite_sheets.rb
420
+ - test/functional/examples/lazyfoo.net_s/test_color_keying.rb
287
421
  - test/functional/examples/test_lazy_foo_examples.rb
288
422
  - test/functional/examples/test_readme_examples.rb
289
423
  - test/test_helper.rb