rays 0.1.11 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +5 -5
  2. data/.doc/ext/rays/bitmap.cpp +22 -76
  3. data/.doc/ext/rays/bounds.cpp +95 -125
  4. data/.doc/ext/rays/camera.cpp +88 -0
  5. data/.doc/ext/rays/color.cpp +223 -45
  6. data/.doc/ext/rays/color_space.cpp +146 -46
  7. data/.doc/ext/rays/defs.cpp +183 -0
  8. data/.doc/ext/rays/font.cpp +69 -21
  9. data/.doc/ext/rays/image.cpp +26 -37
  10. data/.doc/ext/rays/matrix.cpp +186 -29
  11. data/.doc/ext/rays/native.cpp +14 -8
  12. data/.doc/ext/rays/noise.cpp +53 -0
  13. data/.doc/ext/rays/painter.cpp +187 -292
  14. data/.doc/ext/rays/point.cpp +96 -77
  15. data/.doc/ext/rays/polygon.cpp +313 -0
  16. data/.doc/ext/rays/polygon_line.cpp +96 -0
  17. data/.doc/ext/rays/polyline.cpp +167 -0
  18. data/.doc/ext/rays/rays.cpp +103 -12
  19. data/.doc/ext/rays/shader.cpp +83 -9
  20. data/LICENSE +21 -0
  21. data/README.md +1 -1
  22. data/Rakefile +24 -9
  23. data/VERSION +1 -1
  24. data/ext/rays/bitmap.cpp +22 -80
  25. data/ext/rays/bounds.cpp +100 -128
  26. data/ext/rays/camera.cpp +94 -0
  27. data/ext/rays/color.cpp +231 -51
  28. data/ext/rays/color_space.cpp +149 -47
  29. data/ext/rays/defs.cpp +183 -0
  30. data/ext/rays/defs.h +26 -2
  31. data/ext/rays/extconf.rb +2 -3
  32. data/ext/rays/font.cpp +74 -24
  33. data/ext/rays/image.cpp +28 -40
  34. data/ext/rays/matrix.cpp +198 -30
  35. data/ext/rays/native.cpp +14 -8
  36. data/ext/rays/noise.cpp +55 -0
  37. data/ext/rays/painter.cpp +203 -298
  38. data/ext/rays/point.cpp +105 -81
  39. data/ext/rays/polygon.cpp +329 -0
  40. data/ext/rays/polygon_line.cpp +99 -0
  41. data/ext/rays/polyline.cpp +176 -0
  42. data/ext/rays/rays.cpp +103 -13
  43. data/ext/rays/shader.cpp +84 -9
  44. data/include/rays.h +10 -2
  45. data/include/rays/bitmap.h +14 -26
  46. data/include/rays/bounds.h +21 -4
  47. data/include/rays/camera.h +49 -0
  48. data/include/rays/color.h +25 -14
  49. data/include/rays/color_space.h +15 -10
  50. data/include/rays/coord.h +114 -0
  51. data/include/rays/debug.h +22 -0
  52. data/include/rays/defs.h +36 -0
  53. data/include/rays/exception.h +6 -2
  54. data/include/rays/font.h +4 -4
  55. data/include/rays/image.h +12 -18
  56. data/include/rays/matrix.h +50 -24
  57. data/include/rays/noise.h +42 -0
  58. data/include/rays/opengl.h +2 -50
  59. data/include/rays/painter.h +89 -93
  60. data/include/rays/point.h +44 -51
  61. data/include/rays/polygon.h +198 -0
  62. data/include/rays/polyline.h +71 -0
  63. data/include/rays/rays.h +3 -0
  64. data/include/rays/ruby.h +7 -1
  65. data/include/rays/ruby/bounds.h +1 -1
  66. data/include/rays/ruby/camera.h +41 -0
  67. data/include/rays/ruby/color.h +1 -1
  68. data/include/rays/ruby/color_space.h +1 -1
  69. data/include/rays/ruby/font.h +1 -1
  70. data/include/rays/ruby/matrix.h +1 -1
  71. data/include/rays/ruby/point.h +1 -1
  72. data/include/rays/ruby/polygon.h +52 -0
  73. data/include/rays/ruby/polyline.h +41 -0
  74. data/include/rays/ruby/rays.h +8 -0
  75. data/include/rays/ruby/shader.h +1 -1
  76. data/include/rays/shader.h +36 -8
  77. data/lib/rays.rb +7 -2
  78. data/lib/rays/bitmap.rb +0 -15
  79. data/lib/rays/bounds.rb +17 -23
  80. data/lib/rays/camera.rb +21 -0
  81. data/lib/rays/color.rb +20 -47
  82. data/lib/rays/color_space.rb +13 -13
  83. data/lib/rays/image.rb +3 -7
  84. data/lib/rays/matrix.rb +28 -0
  85. data/lib/rays/module.rb +4 -19
  86. data/lib/rays/painter.rb +78 -93
  87. data/lib/rays/point.rb +13 -21
  88. data/lib/rays/polygon.rb +58 -0
  89. data/lib/rays/polygon_line.rb +36 -0
  90. data/lib/rays/polyline.rb +32 -0
  91. data/lib/rays/shader.rb +20 -1
  92. data/rays.gemspec +5 -7
  93. data/src/bitmap.h +36 -0
  94. data/src/bounds.cpp +74 -11
  95. data/src/color.cpp +58 -23
  96. data/src/color_space.cpp +52 -34
  97. data/src/color_space.h +22 -0
  98. data/src/coord.cpp +170 -0
  99. data/src/coord.h +35 -0
  100. data/src/font.cpp +118 -0
  101. data/src/font.h +64 -0
  102. data/src/frame_buffer.cpp +37 -71
  103. data/src/frame_buffer.h +4 -4
  104. data/src/image.cpp +172 -98
  105. data/src/image.h +25 -0
  106. data/src/ios/bitmap.h +21 -0
  107. data/src/ios/bitmap.mm +129 -110
  108. data/src/ios/camera.mm +236 -0
  109. data/src/ios/font.mm +50 -62
  110. data/src/ios/helper.h +2 -2
  111. data/src/ios/opengl.mm +19 -4
  112. data/src/ios/rays.mm +3 -0
  113. data/src/matrix.cpp +111 -26
  114. data/src/matrix.h +30 -0
  115. data/src/noise.cpp +74 -0
  116. data/src/opengl.cpp +9 -27
  117. data/src/opengl.h +37 -0
  118. data/src/osx/bitmap.h +21 -0
  119. data/src/osx/bitmap.mm +129 -110
  120. data/src/osx/camera.mm +236 -0
  121. data/src/osx/font.mm +49 -62
  122. data/src/osx/helper.h +2 -2
  123. data/src/osx/opengl.mm +19 -83
  124. data/src/osx/rays.mm +3 -0
  125. data/src/painter.cpp +845 -671
  126. data/src/painter.h +24 -0
  127. data/src/point.cpp +140 -119
  128. data/src/polygon.cpp +1266 -0
  129. data/src/polygon.h +32 -0
  130. data/src/polyline.cpp +160 -0
  131. data/src/polyline.h +69 -0
  132. data/src/render_buffer.cpp +11 -4
  133. data/src/render_buffer.h +2 -2
  134. data/src/shader.cpp +163 -106
  135. data/src/shader.h +38 -0
  136. data/src/shader_program.cpp +533 -0
  137. data/src/{program.h → shader_program.h} +28 -16
  138. data/src/shader_source.cpp +140 -0
  139. data/src/shader_source.h +52 -0
  140. data/src/texture.cpp +136 -160
  141. data/src/texture.h +65 -0
  142. data/src/win32/bitmap.cpp +62 -52
  143. data/src/win32/font.cpp +11 -13
  144. data/src/win32/font.h +24 -0
  145. data/src/win32/gdi.h +6 -6
  146. data/test/helper.rb +0 -3
  147. data/test/test_bitmap.rb +31 -7
  148. data/test/test_bounds.rb +36 -0
  149. data/test/test_color.rb +59 -19
  150. data/test/test_color_space.rb +95 -0
  151. data/test/test_font.rb +5 -0
  152. data/test/test_image.rb +24 -20
  153. data/test/test_matrix.rb +106 -0
  154. data/test/test_painter.rb +157 -51
  155. data/test/test_painter_shape.rb +102 -0
  156. data/test/test_point.rb +29 -0
  157. data/test/test_polygon.rb +234 -0
  158. data/test/test_polygon_line.rb +167 -0
  159. data/test/test_polyline.rb +171 -0
  160. data/test/test_shader.rb +9 -9
  161. metadata +102 -70
  162. data/.doc/ext/rays/texture.cpp +0 -138
  163. data/ext/rays/texture.cpp +0 -149
  164. data/include/rays/ruby/texture.h +0 -41
  165. data/include/rays/texture.h +0 -71
  166. data/lib/rays/texture.rb +0 -24
  167. data/src/program.cpp +0 -648
  168. data/test/test_texture.rb +0 -27
@@ -0,0 +1,171 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+
4
+ require_relative 'helper'
5
+
6
+
7
+ class TestPolyline < Test::Unit::TestCase
8
+
9
+ class Rays::Polyline
10
+ def dump ()
11
+ map &:to_a
12
+ end
13
+ end
14
+
15
+ def polyline (*args)
16
+ Rays::Polyline.new *args
17
+ end
18
+
19
+ def point (*args)
20
+ Rays::Point.new *args
21
+ end
22
+
23
+ def bounds (*args)
24
+ Rays::Bounds.new *args
25
+ end
26
+
27
+ def test_initialize ()
28
+ assert_equal [[1, 2], [3, 4]], polyline( 1, 2, 3, 4 ).dump
29
+ assert_equal [[1, 2], [3, 4]], polyline( [1, 2], [3, 4]).dump
30
+ assert_equal [[1, 1], [2, 2]], polyline( [1], [2]).dump
31
+ assert_equal [[1, 1], [2, 2]], polyline(point(1), point(2)).dump
32
+
33
+ assert_equal false, polyline(1, 2, 3, 4, 5, 6 ).loop?
34
+ assert_equal true, polyline(1, 2, 3, 4, 5, 6, loop: true ).loop?
35
+ assert_equal false, polyline(1, 2, 3, 4, 5, 6, loop: false).loop?
36
+ assert_equal false, polyline( loop: true ).loop?
37
+ assert_equal false, polyline( loop: false).loop?
38
+
39
+ assert_nothing_raised {polyline( loop: true)}
40
+ assert_nothing_raised {polyline( loop: false)}
41
+ assert_raise(ArgumentError) {polyline(1, loop: true)}
42
+ assert_raise(ArgumentError) {polyline(1, loop: false)}
43
+ assert_raise(ArgumentError) {polyline(1, 2, loop: true)}
44
+ assert_nothing_raised {polyline(1, 2, loop: false)}
45
+ assert_raise(ArgumentError) {polyline(1, 2, 3, loop: true)}
46
+ assert_raise(ArgumentError) {polyline(1, 2, 3, loop: false)}
47
+ assert_raise(ArgumentError) {polyline(1, 2, 3, 4, loop: true)}
48
+ assert_nothing_raised {polyline(1, 2, 3, 4, loop: false)}
49
+ assert_raise(ArgumentError) {polyline(1, 2, 3, 4, 5, loop: true)}
50
+ assert_raise(ArgumentError) {polyline(1, 2, 3, 4, 5, loop: false)}
51
+ assert_nothing_raised {polyline(1, 2, 3, 4, 5, 6, loop: true)}
52
+ assert_nothing_raised {polyline(1, 2, 3, 4, 5, 6, loop: false)}
53
+ end
54
+
55
+ def test_expand ()
56
+ polyline([10,10], [20,20], loop: false).expand(1).tap {|o|
57
+ assert_equal 1, o .size
58
+ assert_equal 4, o[0].size
59
+ }
60
+ polyline([10,10], [20,10], [30,20], loop: false).expand(1).tap {|o|
61
+ assert_equal 1, o .size
62
+ assert_equal 6, o[0].size
63
+ }
64
+ polyline([10,10], [20,10], [20,20], [10,20], loop: true) .expand(1).tap {|o|
65
+ assert_equal 2, o .size
66
+ assert_equal 4, o[0].size
67
+ assert_equal 4, o[1].size
68
+ }
69
+ end
70
+
71
+ def test_expand_with_cap ()
72
+ def pl; polyline [10,10], [20,20]; end
73
+ assert_nothing_raised {pl.expand 1, Rays::CAP_ROUND}
74
+ assert_nothing_raised {pl.expand 1, 'ROUND'}
75
+ assert_nothing_raised {pl.expand 1, :ROUND}
76
+ assert_nothing_raised {pl.expand 1, :round}
77
+ assert_nothing_raised {pl.expand 1, 1}
78
+ assert_raise(ArgumentError) {pl.expand 1, -1}
79
+ assert_raise(ArgumentError) {pl.expand 1, 99}
80
+ assert_raise(ArgumentError) {pl.expand 1, 'hoge'}
81
+ assert_raise(ArgumentError) {pl.expand 1, :hoge}
82
+ end
83
+
84
+ def test_expand_with_join ()
85
+ def pl; polyline [10,10], [20,20]; end
86
+ assert_nothing_raised {pl.expand 1, Rays::JOIN_ROUND}
87
+ assert_nothing_raised {pl.expand 1, 'ROUND'}
88
+ assert_nothing_raised {pl.expand 1, :ROUND}
89
+ assert_nothing_raised {pl.expand 1, :round}
90
+ assert_nothing_raised {pl.expand 1, 1}
91
+ assert_raise(ArgumentError) {pl.expand 1, 'hoge'}
92
+ assert_raise(ArgumentError) {pl.expand 1, :hoge}
93
+ assert_raise(ArgumentError) {pl.expand 1, -1}
94
+ assert_raise(ArgumentError) {pl.expand 1, 99}
95
+ end
96
+
97
+ def test_transform_with_materix ()
98
+ m = Rays::Matrix.translate 100, 200
99
+ polyline([10,10], [20,20]).transform(m).tap {|o|
100
+ assert_equal [[110,210], [120,220]], o.dump
101
+ }
102
+
103
+ m = Rays::Matrix.scale 2
104
+ polyline([10,10], [20,20]).transform(m).tap {|o|
105
+ assert_equal [[20,20], [40,40]], o.dump
106
+ }
107
+
108
+ m = Rays::Matrix.rotate 90
109
+ polyline([10,10], [20,20]).transform(m).tap {|o|
110
+ assert_equal [[-10,10], [-20,20]], o.dump
111
+ }
112
+ end
113
+
114
+ def test_transform_with_block ()
115
+ polyline([10,10], [20,20] ).transform {|points|
116
+ points.map {|p| p + [10, 20]}
117
+ }.tap {|o|
118
+ assert_equal [[20,30], [30,40]], o.dump
119
+ }
120
+
121
+ polyline([10,10], [20,20], [30,30] ).transform {|points|
122
+ points.reject {|p| p == point(20, 20)}
123
+ }.tap {|o|
124
+ assert_equal [[10,10], [30,30]], o.dump
125
+ }
126
+
127
+ polyline([10,10], [20,20], [30,30] ).transform {|points|
128
+ points + [[40, 40]]
129
+ }.tap {|o|
130
+ assert_equal [[10,10], [20,20], [30,30], [40,40]], o.dump
131
+ }
132
+
133
+ polyline([10,10], [20,20], [30,30], loop: false).transform(loop: true).tap {|o|
134
+ assert_equal [[10,10], [20,20], [30,30]], o.dump
135
+ assert o.loop?
136
+ }
137
+ end
138
+
139
+ def test_bounds ()
140
+ assert_equal bounds(10, 20, 0, 20, 10, 0), polyline(10, 20, 30, 20, 20, 30).bounds
141
+
142
+ assert polyline(10, 20, 30, 20, 20, 30).bounds.valid?
143
+ assert_not polyline() .bounds.valid?
144
+ end
145
+
146
+ def test_size ()
147
+ assert_equal 2, polyline(1, 2, 3, 4, ).size
148
+ assert_equal 3, polyline(1, 2, 3, 4, 5, 6).size
149
+ end
150
+
151
+ def test_empty? ()
152
+ assert_equal true, polyline( ).empty?
153
+ assert_equal false, polyline(1, 2, 3, 4).empty?
154
+ end
155
+
156
+ def test_index ()
157
+ o = polyline 1, 2, 3, 4, 5, 6
158
+ assert_equal [1, 2], o[ 0].to_a
159
+ assert_equal [3, 4], o[ 1].to_a
160
+ assert_equal [5, 6], o[-1].to_a
161
+ assert_raise(IndexError) {o[ 3]}
162
+ assert_raise(IndexError) {o[-4]}
163
+ end
164
+
165
+ def test_inspect ()
166
+ assert_equal(
167
+ "#<Rays::Polyline [1.0, 2.0], [3.0, 4.0], loop: false>",
168
+ polyline(1, 2, 3, 4).inspect)
169
+ end
170
+
171
+ end# TestPolyline
@@ -6,7 +6,7 @@ require_relative 'helper'
6
6
 
7
7
  class TestShader < Test::Unit::TestCase
8
8
 
9
- def sh (src)
9
+ def shader (src)
10
10
  Rays::Shader.new src
11
11
  end
12
12
 
@@ -14,24 +14,24 @@ class TestShader < Test::Unit::TestCase
14
14
  Rays::Image.new w, h
15
15
  end
16
16
 
17
- def rgb (*args)
17
+ def color (*args)
18
18
  Rays::Color.new *args
19
19
  end
20
20
 
21
21
  def test_initialize ()
22
- assert_raise(Rucy::NativeError) {sh "foo"}
23
- assert_raise(ArgumentError) {sh}
24
- assert_raise(ArgumentError) {sh nil}
25
- assert sh("void main() {gl_FragColor = vec4(1, 0, 0, 1);}")
22
+ assert_raise(Rucy::NativeError) {shader "foo"}
23
+ assert_raise(ArgumentError) {shader}
24
+ #assert_raise(TypeError) {shader nil}
25
+ assert shader("void main() {gl_FragColor = vec4(1, 0, 0, 1);}")
26
26
  end
27
27
 
28
- def test_fragment_shader ()
28
+ def test_shader ()
29
29
  i = img.paint do
30
- attach "void main () {gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);}"
30
+ shader "void main () {gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);}"
31
31
  fill 0, 1, 0, 1
32
32
  rect *bounds.move_to(0, 0).to_a
33
33
  end
34
- assert_equal rgb(1, 0, 0, 1), i[0, 0]
34
+ assert_equal color(1, 0, 0, 1), i[0, 0]
35
35
  end
36
36
 
37
37
  end# TestShader
metadata CHANGED
@@ -1,126 +1,134 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rays
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
- - snori
8
- autorequire:
7
+ - xordog
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: xot
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
- - - ">="
17
+ - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: '0'
19
+ version: '0.1'
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - ">="
24
+ - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: '0.1'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rucy
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - ">="
31
+ - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '0'
33
+ version: '0.1'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: gemcutter
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
38
+ - - "~>"
67
39
  - !ruby/object:Gem::Version
68
- version: '0'
40
+ version: '0.1'
69
41
  description: This library helps you to develop graphics application with OpenGL.
70
- email: snori@xord.org
42
+ email: xordog@gmail.com
71
43
  executables: []
72
44
  extensions:
73
45
  - Rakefile
74
46
  extra_rdoc_files:
47
+ - ".doc/ext/rays/defs.cpp"
48
+ - ".doc/ext/rays/image.cpp"
49
+ - ".doc/ext/rays/bitmap.cpp"
50
+ - ".doc/ext/rays/camera.cpp"
51
+ - ".doc/ext/rays/rays.cpp"
52
+ - ".doc/ext/rays/font.cpp"
53
+ - ".doc/ext/rays/color_space.cpp"
54
+ - ".doc/ext/rays/polygon_line.cpp"
55
+ - ".doc/ext/rays/painter.cpp"
56
+ - ".doc/ext/rays/noise.cpp"
57
+ - ".doc/ext/rays/color.cpp"
58
+ - ".doc/ext/rays/shader.cpp"
59
+ - ".doc/ext/rays/native.cpp"
60
+ - ".doc/ext/rays/point.cpp"
61
+ - ".doc/ext/rays/matrix.cpp"
62
+ - ".doc/ext/rays/polygon.cpp"
63
+ - ".doc/ext/rays/polyline.cpp"
64
+ - ".doc/ext/rays/bounds.cpp"
65
+ files:
75
66
  - ".doc/ext/rays/bitmap.cpp"
76
67
  - ".doc/ext/rays/bounds.cpp"
68
+ - ".doc/ext/rays/camera.cpp"
77
69
  - ".doc/ext/rays/color.cpp"
78
70
  - ".doc/ext/rays/color_space.cpp"
71
+ - ".doc/ext/rays/defs.cpp"
79
72
  - ".doc/ext/rays/font.cpp"
80
73
  - ".doc/ext/rays/image.cpp"
81
74
  - ".doc/ext/rays/matrix.cpp"
82
75
  - ".doc/ext/rays/native.cpp"
76
+ - ".doc/ext/rays/noise.cpp"
83
77
  - ".doc/ext/rays/painter.cpp"
84
78
  - ".doc/ext/rays/point.cpp"
79
+ - ".doc/ext/rays/polygon.cpp"
80
+ - ".doc/ext/rays/polygon_line.cpp"
81
+ - ".doc/ext/rays/polyline.cpp"
85
82
  - ".doc/ext/rays/rays.cpp"
86
83
  - ".doc/ext/rays/shader.cpp"
87
- - ".doc/ext/rays/texture.cpp"
88
- files:
84
+ - LICENSE
89
85
  - README.md
90
86
  - Rakefile
91
87
  - VERSION
92
88
  - ext/rays/bitmap.cpp
93
89
  - ext/rays/bounds.cpp
90
+ - ext/rays/camera.cpp
94
91
  - ext/rays/color.cpp
95
92
  - ext/rays/color_space.cpp
93
+ - ext/rays/defs.cpp
96
94
  - ext/rays/defs.h
97
95
  - ext/rays/extconf.rb
98
96
  - ext/rays/font.cpp
99
97
  - ext/rays/image.cpp
100
98
  - ext/rays/matrix.cpp
101
99
  - ext/rays/native.cpp
100
+ - ext/rays/noise.cpp
102
101
  - ext/rays/painter.cpp
103
102
  - ext/rays/point.cpp
103
+ - ext/rays/polygon.cpp
104
+ - ext/rays/polygon_line.cpp
105
+ - ext/rays/polyline.cpp
104
106
  - ext/rays/rays.cpp
105
107
  - ext/rays/shader.cpp
106
- - ext/rays/texture.cpp
107
108
  - include/rays.h
108
109
  - include/rays/bitmap.h
109
110
  - include/rays/bounds.h
111
+ - include/rays/camera.h
110
112
  - include/rays/color.h
111
113
  - include/rays/color_space.h
114
+ - include/rays/coord.h
115
+ - include/rays/debug.h
112
116
  - include/rays/defs.h
113
117
  - include/rays/exception.h
114
118
  - include/rays/font.h
115
119
  - include/rays/image.h
116
120
  - include/rays/matrix.h
121
+ - include/rays/noise.h
117
122
  - include/rays/opengl.h
118
123
  - include/rays/painter.h
119
124
  - include/rays/point.h
125
+ - include/rays/polygon.h
126
+ - include/rays/polyline.h
120
127
  - include/rays/rays.h
121
128
  - include/rays/ruby.h
122
129
  - include/rays/ruby/bitmap.h
123
130
  - include/rays/ruby/bounds.h
131
+ - include/rays/ruby/camera.h
124
132
  - include/rays/ruby/color.h
125
133
  - include/rays/ruby/color_space.h
126
134
  - include/rays/ruby/font.h
@@ -128,57 +136,85 @@ files:
128
136
  - include/rays/ruby/matrix.h
129
137
  - include/rays/ruby/painter.h
130
138
  - include/rays/ruby/point.h
139
+ - include/rays/ruby/polygon.h
140
+ - include/rays/ruby/polyline.h
131
141
  - include/rays/ruby/rays.h
132
142
  - include/rays/ruby/shader.h
133
- - include/rays/ruby/texture.h
134
143
  - include/rays/shader.h
135
- - include/rays/texture.h
136
144
  - lib/rays.rb
137
145
  - lib/rays/autoinit.rb
138
146
  - lib/rays/bitmap.rb
139
147
  - lib/rays/bounds.rb
148
+ - lib/rays/camera.rb
140
149
  - lib/rays/color.rb
141
150
  - lib/rays/color_space.rb
142
151
  - lib/rays/ext.rb
143
152
  - lib/rays/font.rb
144
153
  - lib/rays/image.rb
154
+ - lib/rays/matrix.rb
145
155
  - lib/rays/module.rb
146
156
  - lib/rays/painter.rb
147
157
  - lib/rays/point.rb
158
+ - lib/rays/polygon.rb
159
+ - lib/rays/polygon_line.rb
160
+ - lib/rays/polyline.rb
148
161
  - lib/rays/shader.rb
149
- - lib/rays/texture.rb
150
162
  - rays.gemspec
163
+ - src/bitmap.h
151
164
  - src/bounds.cpp
152
165
  - src/color.cpp
153
166
  - src/color_space.cpp
167
+ - src/color_space.h
168
+ - src/coord.cpp
169
+ - src/coord.h
154
170
  - src/exception.cpp
171
+ - src/font.cpp
172
+ - src/font.h
155
173
  - src/frame_buffer.cpp
156
174
  - src/frame_buffer.h
157
175
  - src/image.cpp
176
+ - src/image.h
177
+ - src/ios/bitmap.h
158
178
  - src/ios/bitmap.mm
179
+ - src/ios/camera.mm
159
180
  - src/ios/font.mm
160
181
  - src/ios/helper.h
161
182
  - src/ios/helper.mm
162
183
  - src/ios/opengl.mm
163
184
  - src/ios/rays.mm
164
185
  - src/matrix.cpp
186
+ - src/matrix.h
187
+ - src/noise.cpp
165
188
  - src/opengl.cpp
189
+ - src/opengl.h
190
+ - src/osx/bitmap.h
166
191
  - src/osx/bitmap.mm
192
+ - src/osx/camera.mm
167
193
  - src/osx/font.mm
168
194
  - src/osx/helper.h
169
195
  - src/osx/helper.mm
170
196
  - src/osx/opengl.mm
171
197
  - src/osx/rays.mm
172
198
  - src/painter.cpp
199
+ - src/painter.h
173
200
  - src/point.cpp
174
- - src/program.cpp
175
- - src/program.h
201
+ - src/polygon.cpp
202
+ - src/polygon.h
203
+ - src/polyline.cpp
204
+ - src/polyline.h
176
205
  - src/render_buffer.cpp
177
206
  - src/render_buffer.h
178
207
  - src/shader.cpp
208
+ - src/shader.h
209
+ - src/shader_program.cpp
210
+ - src/shader_program.h
211
+ - src/shader_source.cpp
212
+ - src/shader_source.h
179
213
  - src/texture.cpp
214
+ - src/texture.h
180
215
  - src/win32/bitmap.cpp
181
216
  - src/win32/font.cpp
217
+ - src/win32/font.h
182
218
  - src/win32/gdi.cpp
183
219
  - src/win32/gdi.h
184
220
  - src/win32/rays.cpp
@@ -186,47 +222,38 @@ files:
186
222
  - test/test_bitmap.rb
187
223
  - test/test_bounds.rb
188
224
  - test/test_color.rb
225
+ - test/test_color_space.rb
189
226
  - test/test_font.rb
190
227
  - test/test_image.rb
228
+ - test/test_matrix.rb
191
229
  - test/test_painter.rb
230
+ - test/test_painter_shape.rb
192
231
  - test/test_point.rb
232
+ - test/test_polygon.rb
233
+ - test/test_polygon_line.rb
234
+ - test/test_polyline.rb
193
235
  - test/test_rays.rb
194
236
  - test/test_shader.rb
195
- - test/test_texture.rb
196
- - ".doc/ext/rays/bitmap.cpp"
197
- - ".doc/ext/rays/bounds.cpp"
198
- - ".doc/ext/rays/color.cpp"
199
- - ".doc/ext/rays/color_space.cpp"
200
- - ".doc/ext/rays/font.cpp"
201
- - ".doc/ext/rays/image.cpp"
202
- - ".doc/ext/rays/matrix.cpp"
203
- - ".doc/ext/rays/native.cpp"
204
- - ".doc/ext/rays/painter.cpp"
205
- - ".doc/ext/rays/point.cpp"
206
- - ".doc/ext/rays/rays.cpp"
207
- - ".doc/ext/rays/shader.cpp"
208
- - ".doc/ext/rays/texture.cpp"
209
237
  homepage: https://github.com/xord/rays
210
238
  licenses: []
211
239
  metadata: {}
212
- post_install_message:
240
+ post_install_message:
213
241
  rdoc_options: []
214
242
  require_paths:
215
243
  - lib
216
244
  required_ruby_version: !ruby/object:Gem::Requirement
217
245
  requirements:
218
- - - ">="
246
+ - - "~>"
219
247
  - !ruby/object:Gem::Version
220
- version: 1.9.0
248
+ version: '2'
221
249
  required_rubygems_version: !ruby/object:Gem::Requirement
222
250
  requirements:
223
251
  - - ">="
224
252
  - !ruby/object:Gem::Version
225
253
  version: '0'
226
254
  requirements: []
227
- rubyforge_project:
228
- rubygems_version: 2.0.3
229
- signing_key:
255
+ rubygems_version: 3.0.3
256
+ signing_key:
230
257
  specification_version: 4
231
258
  summary: A Drawing Engine using OpenGL.
232
259
  test_files:
@@ -234,10 +261,15 @@ test_files:
234
261
  - test/test_bitmap.rb
235
262
  - test/test_bounds.rb
236
263
  - test/test_color.rb
264
+ - test/test_color_space.rb
237
265
  - test/test_font.rb
238
266
  - test/test_image.rb
267
+ - test/test_matrix.rb
239
268
  - test/test_painter.rb
269
+ - test/test_painter_shape.rb
240
270
  - test/test_point.rb
271
+ - test/test_polygon.rb
272
+ - test/test_polygon_line.rb
273
+ - test/test_polyline.rb
241
274
  - test/test_rays.rb
242
275
  - test/test_shader.rb
243
- - test/test_texture.rb