ray 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/README.md +9 -6
  2. data/Rakefile +1 -5
  3. data/ext/audio.c +25 -19
  4. data/ext/audio_source.c +67 -39
  5. data/ext/color.c +19 -19
  6. data/ext/drawable.c +190 -31
  7. data/ext/extconf.rb +16 -14
  8. data/ext/gl.c +310 -30
  9. data/ext/gl_buffer.c +223 -2
  10. data/ext/gl_index_buffer.c +11 -0
  11. data/ext/gl_int_array.c +24 -22
  12. data/ext/gl_vertex.c +84 -49
  13. data/ext/image.c +115 -51
  14. data/ext/image_target.c +58 -10
  15. data/ext/input.c +73 -6
  16. data/ext/mo.c +583 -0
  17. data/ext/mo.h +189 -0
  18. data/ext/music.c +9 -8
  19. data/ext/pixel_bus.c +349 -0
  20. data/ext/polygon.c +68 -45
  21. data/ext/ray.c +1 -0
  22. data/ext/ray.h +19 -1
  23. data/ext/rect.c +9 -47
  24. data/ext/say.h +1 -2
  25. data/ext/say_all.h +6 -0
  26. data/ext/say_audio.h +3 -0
  27. data/ext/say_audio_context.c +1 -4
  28. data/ext/say_basic_type.c +24 -0
  29. data/ext/say_basic_type.h +4 -0
  30. data/ext/say_buffer.c +217 -88
  31. data/ext/say_buffer.h +20 -5
  32. data/ext/say_buffer_renderer.c +10 -7
  33. data/ext/say_buffer_renderer.h +1 -1
  34. data/ext/say_buffer_slice.c +70 -76
  35. data/ext/say_context.c +109 -22
  36. data/ext/say_context.h +14 -0
  37. data/ext/say_drawable.c +113 -25
  38. data/ext/say_drawable.h +23 -2
  39. data/ext/say_error.c +7 -2
  40. data/ext/say_font.c +30 -27
  41. data/ext/say_font.h +3 -6
  42. data/ext/say_get_proc.c +35 -0
  43. data/ext/say_image.c +102 -27
  44. data/ext/say_image.h +11 -4
  45. data/ext/say_image_target.c +88 -34
  46. data/ext/say_image_target.h +3 -2
  47. data/ext/say_index_buffer.c +31 -19
  48. data/ext/say_index_buffer.h +4 -2
  49. data/ext/say_index_buffer_slice.c +78 -70
  50. data/ext/say_music.c +4 -2
  51. data/ext/say_osx.h +3 -2
  52. data/ext/say_osx_context.h +37 -4
  53. data/ext/say_osx_window.h +32 -37
  54. data/ext/say_pixel_bus.c +163 -0
  55. data/ext/say_pixel_bus.h +44 -0
  56. data/ext/say_polygon.c +2 -2
  57. data/ext/say_shader.c +66 -62
  58. data/ext/say_shader.h +2 -0
  59. data/ext/say_sprite.c +1 -2
  60. data/ext/say_target.c +14 -23
  61. data/ext/say_target.h +3 -1
  62. data/ext/say_text.c +45 -7
  63. data/ext/say_text.h +12 -3
  64. data/ext/say_thread.c +13 -6
  65. data/ext/say_thread.h +1 -1
  66. data/ext/say_thread_variable.c +5 -5
  67. data/ext/say_vertex_type.c +79 -41
  68. data/ext/say_vertex_type.h +6 -2
  69. data/ext/say_view.c +10 -31
  70. data/ext/say_view.h +1 -5
  71. data/ext/say_win.h +2 -2
  72. data/ext/say_win_context.h +49 -11
  73. data/ext/say_win_window.h +30 -27
  74. data/ext/say_window.c +3 -3
  75. data/ext/say_x11.h +3 -1
  76. data/ext/say_x11_context.h +64 -10
  77. data/ext/say_x11_window.h +22 -17
  78. data/ext/shader.c +9 -0
  79. data/ext/sprite.c +7 -1
  80. data/ext/target.c +80 -28
  81. data/ext/text.c +43 -1
  82. data/ext/view.c +53 -1
  83. data/ext/window.c +4 -0
  84. data/lib/ray/animation_list.rb +17 -2
  85. data/lib/ray/audio_source.rb +11 -0
  86. data/lib/ray/color.rb +14 -0
  87. data/lib/ray/drawable.rb +23 -0
  88. data/lib/ray/dsl/event.rb +1 -9
  89. data/lib/ray/dsl/event_runner.rb +3 -4
  90. data/lib/ray/dsl/matcher.rb +20 -1
  91. data/lib/ray/effect.rb +116 -0
  92. data/lib/ray/effect/black_and_white.rb +38 -0
  93. data/lib/ray/effect/color_inversion.rb +16 -0
  94. data/lib/ray/effect/generator.rb +145 -0
  95. data/lib/ray/effect/grayscale.rb +32 -0
  96. data/lib/ray/game.rb +25 -5
  97. data/lib/ray/gl/vertex.rb +105 -26
  98. data/lib/ray/helper.rb +5 -0
  99. data/lib/ray/image.rb +54 -13
  100. data/lib/ray/image_target.rb +7 -0
  101. data/lib/ray/matrix.rb +26 -0
  102. data/lib/ray/music.rb +4 -0
  103. data/lib/ray/pixel_bus.rb +22 -0
  104. data/lib/ray/polygon.rb +17 -0
  105. data/lib/ray/pp.rb +28 -0
  106. data/lib/ray/ray.rb +7 -1
  107. data/lib/ray/rect.rb +7 -13
  108. data/lib/ray/scene.rb +24 -5
  109. data/lib/ray/scene_list.rb +9 -0
  110. data/lib/ray/shader.rb +11 -2
  111. data/lib/ray/sound.rb +4 -0
  112. data/lib/ray/sprite.rb +23 -62
  113. data/lib/ray/target.rb +25 -0
  114. data/lib/ray/text.rb +10 -0
  115. data/lib/ray/turtle.rb +9 -3
  116. data/lib/ray/vector.rb +18 -0
  117. data/lib/ray/vertex.rb +6 -0
  118. data/lib/ray/view.rb +22 -0
  119. data/samples/animation/sprite_motion.rb +0 -60
  120. data/samples/audio/{spacial.rb → spatial.rb} +1 -1
  121. data/samples/buffer/buffer.rb +1 -0
  122. data/samples/buffer/index_buffer.rb +2 -0
  123. data/samples/cptn_ruby/cptn_ruby.rb +6 -7
  124. data/samples/effects/effect.rb +39 -0
  125. data/samples/effects/grayscale.rb +27 -0
  126. data/samples/opengl/image.rb +7 -5
  127. data/samples/opengl/instancing.rb +159 -0
  128. data/samples/opengl/instancing.rbc +3231 -0
  129. data/samples/opengl/obj_loader.rb +9 -8
  130. data/samples/opengl/shader.rb +1 -3
  131. data/samples/shaders/geometry.rb +108 -38
  132. data/samples/shaders/geometry.rbc +2074 -0
  133. data/samples/shaders/shape.rb +2 -2
  134. data/samples/starfighter/starfighter.rb +5 -5
  135. data/samples/window/get_pixel.rb +1 -1
  136. data/test/animation_list_test.rb +18 -4
  137. data/test/drawable_test.rb +70 -1
  138. data/test/effect_generator_test.rb +63 -0
  139. data/test/effect_test.rb +61 -0
  140. data/test/game_test.rb +18 -0
  141. data/test/gl_buffer_test.rb +43 -1
  142. data/test/gl_index_buffer_test.rb +5 -0
  143. data/test/gl_vertex_test.rb +28 -1
  144. data/test/image_test.rb +5 -5
  145. data/test/input_test.rb +49 -0
  146. data/test/pixel_bus_test.rb +28 -0
  147. data/test/rect_test.rb +4 -0
  148. data/{samples/_media → test/res}/Beep.wav +0 -0
  149. data/samples/_media/CptnRuby Gem.png b/data/test/res/CptnRuby → Gem.png +0 -0
  150. data/samples/_media/CptnRuby Map.txt b/data/test/res/CptnRuby → Map.txt +0 -0
  151. data/samples/_media/CptnRuby Tileset.png b/data/test/res/CptnRuby → Tileset.png +0 -0
  152. data/{samples/_media → test/res}/CptnRuby.png +0 -0
  153. data/{samples/_media → test/res}/Space.png +0 -0
  154. data/{samples/_media → test/res}/Star.png +0 -0
  155. data/{samples/_media → test/res}/Starfighter.png +0 -0
  156. data/test/res/cube.obj +28 -0
  157. data/test/res/light3d.c +2 -2
  158. data/test/res/stone.png +0 -0
  159. data/test/scene_test.rb +3 -0
  160. data/test/sprite_test.rb +10 -0
  161. data/test/text_test.rb +31 -2
  162. data/test/view_test.rb +13 -1
  163. metadata +38 -17
  164. data/ext/say_array.c +0 -124
  165. data/ext/say_array.h +0 -34
  166. data/ext/say_table.c +0 -86
  167. data/ext/say_table.h +0 -24
@@ -47,10 +47,10 @@ context "an image created from a size" do
47
47
  asserts(:height).equals 128
48
48
  asserts(:size).equals Ray::Vector2[64, 128]
49
49
 
50
- asserts(:tex_rect, [0, 0, 64, 128]).equals Ray::Rect[0, 0, 1, 1]
51
- asserts(:tex_rect, [0, 0, 32, 128]).equals Ray::Rect[0, 0, 0.5, 1]
52
- asserts(:tex_rect, [0, 0, 64, 64]).equals Ray::Rect[0, 0, 1, 0.5]
53
- asserts(:tex_rect, [32, 32, 32, 32]).equals Ray::Rect[0.5, 0.25, 0.5, 0.25]
50
+ asserts(:tex_rect, [0, 0, 64, 128]).equals Ray::Rect[0, 1, 1, -1]
51
+ asserts(:tex_rect, [0, 0, 32, 128]).equals Ray::Rect[0, 1, 0.5, -1]
52
+ asserts(:tex_rect, [0, 0, 64, 64]).equals Ray::Rect[0, 1, 1, -0.5]
53
+ asserts(:tex_rect, [32, 32, 32, 32]).equals Ray::Rect[0.5, 0.75, 0.5, -0.25]
54
54
 
55
55
  denies :smooth?
56
56
 
@@ -79,7 +79,7 @@ context "an image copy" do
79
79
  asserts(:[], 1, 1).equals Ray::Color.white
80
80
 
81
81
  context "saved and loaded again" do
82
- path = path_of("test_save.png")
82
+ path = path_of("test_save.tga")
83
83
 
84
84
  setup do
85
85
  topic.write path
@@ -0,0 +1,49 @@
1
+ require File.expand_path(File.dirname(__FILE__)) + '/helpers.rb'
2
+
3
+ context "an input" do
4
+ setup { Ray::Input.new }
5
+
6
+ denies(:holding?, Ray::Event::KeyA)
7
+ denies(:holding?, Ray::Event::KeyNum0)
8
+
9
+ asserts(:mouse_pos).equals Ray::Vector2[0, 0]
10
+
11
+ context "with a new mouse position" do
12
+ hookup { topic.mouse_pos = [10, 20] }
13
+ asserts(:mouse_pos).equals Ray::Vector2[10, 20]
14
+ end
15
+
16
+ context "after pressing some keys" do
17
+ hookup do
18
+ topic.press Ray::Event::KeyA
19
+ topic.press Ray::Event::KeyNum0
20
+ end
21
+
22
+ asserts(:holding?, Ray::Event::KeyA)
23
+ asserts(:holding?, Ray::Event::KeyNum0)
24
+
25
+ context "and releasing one" do
26
+ hookup { topic.release Ray::Event::KeyA }
27
+
28
+ denies(:holding?, Ray::Event::KeyA)
29
+ asserts(:holding?, Ray::Event::KeyNum0)
30
+ end
31
+ end
32
+
33
+ context "reset after several changes" do
34
+ hookup do
35
+ topic.mouse_pos = [4, 3]
36
+ topic.press Ray::Event::KeyZ
37
+ topic.press Ray::Event::KeyNum9
38
+
39
+ topic.reset
40
+ end
41
+
42
+ asserts(:mouse_pos).equals Ray::Vector2[0, 0]
43
+
44
+ denies(:holding?, Ray::Event::KeyZ)
45
+ denies(:holding?, Ray::Event::KeyNum9)
46
+ end
47
+ end
48
+
49
+ run_tests if __FILE__ == $0
@@ -0,0 +1,28 @@
1
+ require File.expand_path(File.dirname(__FILE__)) + '/helpers.rb'
2
+
3
+ context "a pixel bus" do
4
+ img = Ray::Image.new [3, 2]
5
+ img[0, 0] = Ray::Color.red
6
+ img[0, 1] = Ray::Color.green
7
+ img[1, 0] = Ray::Color.blue
8
+ img[1, 1] = Ray::Color.white
9
+ img[2, 0] = Ray::Color.cyan
10
+ img[2, 1] = Ray::Color.yellow
11
+ pixels = img.to_a
12
+
13
+ setup { Ray::PixelBus.new }
14
+
15
+ asserts(:size).equals 1024
16
+
17
+ context "resized" do
18
+ hookup { topic.resize! 500 }
19
+ asserts(:size).equals 500
20
+ end
21
+
22
+ context "a copied image" do
23
+ setup { topic.copy(img) }
24
+ asserts(:to_a).equals pixels
25
+ end
26
+ end
27
+
28
+ run_tests if __FILE__ == $0
@@ -114,6 +114,10 @@ context "a rect" do
114
114
  Ray::Rect.new(5, 10, 20, 20).collide?(topic) &&
115
115
  Ray::Rect.new(11, 16, 40, 50).collide?(topic)
116
116
  end
117
+
118
+ asserts "collides with a rect it is inside of" do
119
+ topic.collide? Ray::Rect[11, 16, 1, 1]
120
+ end
117
121
  end
118
122
 
119
123
  run_tests if __FILE__ == $0
File without changes
File without changes
File without changes
@@ -0,0 +1,28 @@
1
+ v 0.0 0.0 0.0
2
+ v 0.0 0.0 1.0
3
+ v 0.0 1.0 0.0
4
+ v 0.0 1.0 1.0
5
+ v 1.0 0.0 0.0
6
+ v 1.0 0.0 1.0
7
+ v 1.0 1.0 0.0
8
+ v 1.0 1.0 1.0
9
+
10
+ vn 0.0 0.0 1.0
11
+ vn 0.0 0.0 -1.0
12
+ vn 0.0 1.0 0.0
13
+ vn 0.0 -1.0 0.0
14
+ vn 1.0 0.0 0.0
15
+ vn -1.0 0.0 0.0
16
+
17
+ f 1//2 7//2 5//2
18
+ f 1//2 3//2 7//2
19
+ f 1//6 4//6 3//6
20
+ f 1//6 2//6 4//6
21
+ f 3//3 8//3 7//3
22
+ f 3//3 4//3 8//3
23
+ f 5//5 7//5 8//5
24
+ f 5//5 8//5 6//5
25
+ f 1//4 5//4 6//4
26
+ f 1//4 6//4 2//4
27
+ f 2//1 6//1 8//1
28
+ f 2//1 8//1 4//1
@@ -15,6 +15,6 @@ void main() {
15
15
  gl_Position = vec4(in_Position, 1) * mvp;
16
16
 
17
17
  var_Color = in_Color;
18
- /* Ignoring projection, willingly */
19
- var_Normal = (vec4(in_Normal, 1) * in_ModelView).xyz;
18
+
19
+ var_Normal = (vec4(in_Normal, 1) * mvp).xyz;
20
20
  }
Binary file
@@ -12,6 +12,8 @@ context "a scene" do
12
12
  @game.registered_scene :test
13
13
  end
14
14
 
15
+ asserts(:name).equals :test
16
+
15
17
  asserts(:event_runner).equals { @game.event_runner }
16
18
  asserts(:animations).kind_of Ray::AnimationList
17
19
  asserts(:frames_per_second).equals 60
@@ -131,6 +133,7 @@ context "an instance of a scene subclass" do
131
133
  end
132
134
 
133
135
  asserts_topic.kind_of MyScene
136
+ asserts(:name).equals :my_scene
134
137
 
135
138
  context "run once" do
136
139
  hookup do
@@ -75,6 +75,16 @@ context "a sprite" do
75
75
  asserts :y_flipped?
76
76
  end
77
77
 
78
+ context "with several transformations" do
79
+ hookup do
80
+ topic.pos = [10, 20]
81
+ topic.origin = [10, -10]
82
+ topic.scale = [2, 3]
83
+ end
84
+
85
+ asserts(:rect).equals Ray::Rect[-10, 50, 200, 450]
86
+ end
87
+
78
88
  context "copied after several changes" do
79
89
  setup do
80
90
  topic.flip_x = true
@@ -10,6 +10,8 @@ context "a text" do
10
10
  asserts(:size).equals 12
11
11
  asserts(:color).equals Ray::Color.white
12
12
 
13
+ asserts(:auto_center).nil
14
+
13
15
  context "after changing style" do
14
16
  hookup { topic.style = [:bold, :italic] }
15
17
  asserts(:style).equals Ray::Text::Bold | Ray::Text::Italic
@@ -24,17 +26,44 @@ context "a text" do
24
26
  asserts(:string).equals "héllo"
25
27
 
26
28
  context "copied" do
27
- setup { topic.dup }
29
+ setup do
30
+ topic.color = Ray::Color.red
31
+ topic.dup
32
+ end
28
33
 
29
34
  asserts(:style).equals Ray::Text::Normal
30
35
  asserts(:size).equals 12
31
- asserts(:color).equals Ray::Color.white
36
+ asserts(:color).equals Ray::Color.red
32
37
 
33
38
  asserts(:encoding).matches(/utf-8/i)
34
39
  asserts(:string).equals "héllo"
35
40
  end
36
41
  end
37
42
 
43
+ context "with auto centering" do
44
+ hookup { topic.auto_center = [0.5, 1.0] }
45
+
46
+ asserts(:auto_center).equals Ray::Vector2[0.5, 1.0]
47
+ asserts(:origin).equals { topic.rect.size * [0.5, 1.0] }
48
+
49
+ context "changed" do
50
+ hookup { topic.string = "Hello dear world!" }
51
+ asserts(:origin).equals { topic.rect.size * [0.5, 1.0] }
52
+ end
53
+
54
+ context "disabled" do
55
+ hookup { topic.auto_center = nil }
56
+
57
+ asserts(:auto_center).nil
58
+ asserts(:origin).equals { topic.rect.size * [0.5, 1.0] }
59
+
60
+ context "changed" do
61
+ hookup { topic.string = "Hello great world!" }
62
+ denies(:origin).equals { topic.rect.size * [0.5, 1.0] }
63
+ end
64
+ end
65
+ end
66
+
38
67
  context "after changing character size" do
39
68
  hookup { topic.size = 30 }
40
69
  asserts(:size).equals 30
@@ -51,11 +51,23 @@ context "a view" do
51
51
  context "with a custom matrix" do
52
52
  hookup do
53
53
  topic.matrix = Ray::Matrix.scale([2, 3, 4])
54
- topic.zoom_by [2, 3]
55
54
  end
56
55
 
57
56
  asserts(:matrix).equals Ray::Matrix.scale([2, 3, 4])
57
+
58
+ context "disabled" do
59
+ hookup { topic.matrix = nil }
60
+ asserts(:matrix).equals Ray::Matrix.orthogonal(10, 40, 60, 20, -1, 1)
61
+ end
58
62
  end
59
63
  end
60
64
 
65
+ context "a clipping view" do
66
+ setup { Ray::View.clip([1280, 240, 320, 960], [640, 480]) }
67
+
68
+ asserts(:center).equals Ray::Vector2[1280 + 320 / 2, 240 + 960 / 2]
69
+ asserts(:size).equals Ray::Vector2[320, 960]
70
+ asserts(:viewport).equals Ray::Rect[2, 0.5, 0.5, 2]
71
+ end
72
+
61
73
  run_tests if __FILE__ == $0
metadata CHANGED
@@ -2,15 +2,15 @@
2
2
  name: ray
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
- - "Mon ou\xC3\xAFe"
8
+ - Mon ouie
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-17 00:00:00 Z
13
+ date: 2011-08-19 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: yard
@@ -55,9 +55,11 @@ extra_rdoc_files: []
55
55
 
56
56
  files:
57
57
  - lib/ray.rb
58
+ - lib/ray/pixel_bus.rb
58
59
  - lib/ray/matrix.rb
59
60
  - lib/ray/vector.rb
60
61
  - lib/ray/target.rb
62
+ - lib/ray/effect.rb
61
63
  - lib/ray/color.rb
62
64
  - lib/ray/polygon.rb
63
65
  - lib/ray/font.rb
@@ -78,6 +80,10 @@ files:
78
80
  - lib/ray/animation/sequence.rb
79
81
  - lib/ray/animation/circular_motion.rb
80
82
  - lib/ray/animation/vector_variation.rb
83
+ - lib/ray/effect/generator.rb
84
+ - lib/ray/effect/color_inversion.rb
85
+ - lib/ray/effect/grayscale.rb
86
+ - lib/ray/effect/black_and_white.rb
81
87
  - lib/ray/drawable.rb
82
88
  - lib/ray/animation.rb
83
89
  - lib/ray/animation_list.rb
@@ -85,6 +91,7 @@ files:
85
91
  - lib/ray/font_set.rb
86
92
  - lib/ray/resource_set.rb
87
93
  - lib/ray/image.rb
94
+ - lib/ray/pp.rb
88
95
  - lib/ray/rect.rb
89
96
  - lib/ray/scene_list.rb
90
97
  - lib/ray/music.rb
@@ -93,6 +100,7 @@ files:
93
100
  - lib/ray/sprite.rb
94
101
  - lib/ray/turtle.rb
95
102
  - lib/ray/ray.rb
103
+ - lib/ray/audio_source.rb
96
104
  - lib/ray/sound_buffer_set.rb
97
105
  - lib/ray/sound_buffer.rb
98
106
  - lib/ray/audio.rb
@@ -113,12 +121,14 @@ files:
113
121
  - ext/say_basic_type.c
114
122
  - ext/say_buffer_renderer.c
115
123
  - ext/sprite.c
124
+ - ext/mo.c
116
125
  - ext/say_sound.c
117
126
  - ext/say_sprite.c
118
127
  - ext/say_buffer_slice.c
119
128
  - ext/polygon.c
120
129
  - ext/text.c
121
130
  - ext/event.c
131
+ - ext/say_get_proc.c
122
132
  - ext/color.c
123
133
  - ext/say_view.c
124
134
  - ext/say_renderer.c
@@ -145,16 +155,16 @@ files:
145
155
  - ext/say_input.c
146
156
  - ext/say_font.c
147
157
  - ext/say_clean_up.c
148
- - ext/say_table.c
149
158
  - ext/shader.c
150
159
  - ext/image.c
151
160
  - ext/matrix.c
152
- - ext/say_array.c
153
161
  - ext/target.c
162
+ - ext/pixel_bus.c
154
163
  - ext/audio.c
155
164
  - ext/buffer_renderer.c
156
165
  - ext/gl_int_array.c
157
166
  - ext/say_vfile.c
167
+ - ext/say_pixel_bus.c
158
168
  - ext/say_string.c
159
169
  - ext/gl_vertex.c
160
170
  - ext/sound_buffer.c
@@ -176,6 +186,7 @@ files:
176
186
  - ext/say_target.c
177
187
  - ext/say_audio_context.c
178
188
  - ext/say_vertex_type.c
189
+ - ext/mo.h
179
190
  - ext/say_thread.h
180
191
  - ext/say_text.h
181
192
  - ext/say_imp.h
@@ -261,12 +272,11 @@ files:
261
272
  - ext/say_buffer_renderer.h
262
273
  - ext/say_image_target.h
263
274
  - ext/say_x11.h
264
- - ext/say_array.h
265
275
  - ext/say_shader.h
266
276
  - ext/say.h
267
277
  - ext/say_renderer.h
278
+ - ext/say_pixel_bus.h
268
279
  - ext/say_osx_context.h
269
- - ext/say_table.h
270
280
  - ext/say_win_window.h
271
281
  - ext/stb_image.h
272
282
  - ext/say_audio.h
@@ -294,6 +304,9 @@ files:
294
304
  - ext/vendor/freetype/bin/freetype6.dll
295
305
  - ext/vendor/freetype/bin/zlib1.dll
296
306
  - README.md
307
+ - test/res/CptnRuby Gem.png
308
+ - test/res/Beep.wav
309
+ - test/res/CptnRuby.png
297
310
  - test/res/vertex3d.c
298
311
  - test/res/light3d.c
299
312
  - test/res/vert.c
@@ -303,18 +316,27 @@ files:
303
316
  - test/res/aqua2.bmp
304
317
  - test/res/pop.wav
305
318
  - test/res/frag3d.c
319
+ - test/res/Space.png
320
+ - test/res/stone.png
306
321
  - test/res/frag_gray.c
322
+ - test/res/Starfighter.png
307
323
  - test/res/not_a_jpeg.jpeg
308
324
  - test/res/aqua.bmp
325
+ - test/res/CptnRuby Tileset.png
326
+ - test/res/CptnRuby Map.txt
309
327
  - test/res/teapot.obj
328
+ - test/res/cube.obj
310
329
  - test/res/aqua.png
311
330
  - test/res/VeraMono.ttf
331
+ - test/res/Star.png
332
+ - test/effect_generator_test.rb
312
333
  - test/vector_test.rb
313
334
  - test/helpers.rb
314
335
  - test/animation_test.rb
315
336
  - test/rect_test.rb
316
337
  - test/polygon_test.rb
317
338
  - test/int_array_test.rb
339
+ - test/effect_test.rb
318
340
  - test/buffer_renderer_test.rb
319
341
  - test/font_test.rb
320
342
  - test/animation/combination_test.rb
@@ -328,6 +350,7 @@ files:
328
350
  - test/gl_vertex_test.rb
329
351
  - test/view_test.rb
330
352
  - test/image_test.rb
353
+ - test/pixel_bus_test.rb
331
354
  - test/drawable_test.rb
332
355
  - test/audio_test.rb
333
356
  - test/scene_list_test.rb
@@ -337,6 +360,7 @@ files:
337
360
  - test/game_test.rb
338
361
  - test/text_test.rb
339
362
  - test/scene_test.rb
363
+ - test/input_test.rb
340
364
  - test/shader_test.rb
341
365
  - test/dsl_test.rb
342
366
  - test/sprite_test.rb
@@ -344,11 +368,13 @@ files:
344
368
  - test/resource_set_test.rb
345
369
  - test/animation_list_test.rb
346
370
  - test/target_test.rb
347
- - samples/audio/spacial.rb
371
+ - samples/audio/spatial.rb
348
372
  - samples/opengl/obj_loader.rb
349
373
  - samples/opengl/shader.rb
374
+ - samples/opengl/instancing.rbc
350
375
  - samples/opengl/image.rb
351
376
  - samples/opengl/cube.rb
377
+ - samples/opengl/instancing.rb
352
378
  - samples/opengl/opengl.rb
353
379
  - samples/starfighter/starfighter.rb
354
380
  - samples/window/icon.rb
@@ -361,14 +387,7 @@ files:
361
387
  - samples/window/fullscreen.rb
362
388
  - samples/view/resize.rb
363
389
  - samples/view/view.rb
364
- - samples/_media/CptnRuby Gem.png
365
- - samples/_media/Beep.wav
366
- - samples/_media/CptnRuby.png
367
- - samples/_media/Space.png
368
- - samples/_media/Starfighter.png
369
- - samples/_media/CptnRuby Tileset.png
370
- - samples/_media/CptnRuby Map.txt
371
- - samples/_media/Star.png
390
+ - samples/shaders/geometry.rbc
372
391
  - samples/shaders/shape.rb
373
392
  - samples/shaders/shaders.rb
374
393
  - samples/shaders/geometry.rb
@@ -389,6 +408,8 @@ files:
389
408
  - samples/hello_world/hello_dsl.rb
390
409
  - samples/hello_world/hello.rb
391
410
  - samples/hello_world/text.rb
411
+ - samples/effects/effect.rb
412
+ - samples/effects/grayscale.rb
392
413
  - samples/turtle/koch.rb
393
414
  - samples/turtle/tree.rb
394
415
  - samples/turtle/mandala.rb
@@ -428,7 +449,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
428
449
  requirements: []
429
450
 
430
451
  rubyforge_project:
431
- rubygems_version: 1.8.5
452
+ rubygems_version: 1.8.6
432
453
  signing_key:
433
454
  specification_version: 3
434
455
  summary: A library to write games (or to play with) in Ruby