rays 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) 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/color.cpp +224 -45
  5. data/.doc/ext/rays/color_space.cpp +137 -45
  6. data/.doc/ext/rays/defs.cpp +183 -0
  7. data/.doc/ext/rays/font.cpp +39 -21
  8. data/.doc/ext/rays/image.cpp +26 -37
  9. data/.doc/ext/rays/matrix.cpp +186 -29
  10. data/.doc/ext/rays/native.cpp +12 -6
  11. data/.doc/ext/rays/noise.cpp +53 -0
  12. data/.doc/ext/rays/painter.cpp +120 -308
  13. data/.doc/ext/rays/point.cpp +82 -77
  14. data/.doc/ext/rays/polygon.cpp +287 -0
  15. data/.doc/ext/rays/polygon_line.cpp +96 -0
  16. data/.doc/ext/rays/polyline.cpp +161 -0
  17. data/.doc/ext/rays/rays.cpp +0 -13
  18. data/.doc/ext/rays/shader.cpp +83 -9
  19. data/README.md +1 -1
  20. data/Rakefile +21 -9
  21. data/VERSION +1 -1
  22. data/ext/rays/bitmap.cpp +22 -80
  23. data/ext/rays/bounds.cpp +100 -128
  24. data/ext/rays/color.cpp +232 -51
  25. data/ext/rays/color_space.cpp +140 -46
  26. data/ext/rays/defs.cpp +183 -0
  27. data/ext/rays/defs.h +26 -2
  28. data/ext/rays/extconf.rb +1 -2
  29. data/ext/rays/font.cpp +39 -22
  30. data/ext/rays/image.cpp +27 -39
  31. data/ext/rays/matrix.cpp +198 -30
  32. data/ext/rays/native.cpp +12 -6
  33. data/ext/rays/noise.cpp +55 -0
  34. data/ext/rays/painter.cpp +129 -315
  35. data/ext/rays/point.cpp +89 -81
  36. data/ext/rays/polygon.cpp +301 -0
  37. data/ext/rays/polygon_line.cpp +99 -0
  38. data/ext/rays/polyline.cpp +170 -0
  39. data/ext/rays/rays.cpp +0 -14
  40. data/ext/rays/shader.cpp +84 -9
  41. data/include/rays.h +10 -2
  42. data/include/rays/bitmap.h +14 -26
  43. data/include/rays/bounds.h +21 -4
  44. data/include/rays/color.h +25 -14
  45. data/include/rays/color_space.h +11 -8
  46. data/include/rays/coord.h +114 -0
  47. data/include/rays/debug.h +22 -0
  48. data/include/rays/defs.h +3 -0
  49. data/include/rays/font.h +4 -4
  50. data/include/rays/image.h +11 -17
  51. data/include/rays/matrix.h +50 -24
  52. data/include/rays/noise.h +42 -0
  53. data/include/rays/opengl.h +2 -50
  54. data/include/rays/painter.h +57 -99
  55. data/include/rays/point.h +44 -51
  56. data/include/rays/polygon.h +164 -0
  57. data/include/rays/polyline.h +65 -0
  58. data/include/rays/rays.h +3 -0
  59. data/include/rays/ruby.h +7 -1
  60. data/include/rays/ruby/bounds.h +1 -1
  61. data/include/rays/ruby/color.h +1 -1
  62. data/include/rays/ruby/color_space.h +1 -1
  63. data/include/rays/ruby/font.h +1 -1
  64. data/include/rays/ruby/matrix.h +1 -1
  65. data/include/rays/ruby/point.h +1 -1
  66. data/include/rays/ruby/polygon.h +52 -0
  67. data/include/rays/ruby/polyline.h +41 -0
  68. data/include/rays/ruby/shader.h +1 -1
  69. data/include/rays/shader.h +36 -8
  70. data/lib/rays.rb +6 -1
  71. data/lib/rays/bitmap.rb +0 -15
  72. data/lib/rays/bounds.rb +17 -23
  73. data/lib/rays/color.rb +20 -47
  74. data/lib/rays/color_space.rb +13 -13
  75. data/lib/rays/image.rb +2 -6
  76. data/lib/rays/matrix.rb +28 -0
  77. data/lib/rays/module.rb +4 -19
  78. data/lib/rays/painter.rb +60 -97
  79. data/lib/rays/point.rb +13 -21
  80. data/lib/rays/polygon.rb +50 -0
  81. data/lib/rays/polygon_line.rb +36 -0
  82. data/lib/rays/polyline.rb +32 -0
  83. data/lib/rays/shader.rb +20 -1
  84. data/rays.gemspec +5 -7
  85. data/src/bitmap.h +36 -0
  86. data/src/bounds.cpp +74 -11
  87. data/src/color.cpp +58 -23
  88. data/src/color_space.cpp +50 -32
  89. data/src/color_space.h +22 -0
  90. data/src/coord.cpp +170 -0
  91. data/src/coord.h +35 -0
  92. data/src/font.cpp +118 -0
  93. data/src/font.h +64 -0
  94. data/src/frame_buffer.cpp +37 -71
  95. data/src/frame_buffer.h +4 -4
  96. data/src/image.cpp +171 -97
  97. data/src/image.h +25 -0
  98. data/src/ios/bitmap.mm +107 -105
  99. data/src/ios/font.mm +48 -60
  100. data/src/ios/helper.h +2 -2
  101. data/src/ios/opengl.mm +19 -4
  102. data/src/ios/rays.mm +3 -0
  103. data/src/matrix.cpp +111 -26
  104. data/src/matrix.h +30 -0
  105. data/src/noise.cpp +74 -0
  106. data/src/opengl.cpp +9 -27
  107. data/src/opengl.h +37 -0
  108. data/src/osx/bitmap.mm +111 -106
  109. data/src/osx/font.mm +48 -61
  110. data/src/osx/helper.h +2 -2
  111. data/src/osx/opengl.mm +19 -83
  112. data/src/osx/rays.mm +3 -0
  113. data/src/painter.cpp +780 -696
  114. data/src/painter.h +24 -0
  115. data/src/point.cpp +140 -119
  116. data/src/polygon.cpp +1100 -0
  117. data/src/polygon.h +32 -0
  118. data/src/polyline.cpp +158 -0
  119. data/src/polyline.h +67 -0
  120. data/src/render_buffer.cpp +11 -4
  121. data/src/render_buffer.h +2 -2
  122. data/src/shader.cpp +163 -106
  123. data/src/shader.h +38 -0
  124. data/src/shader_program.cpp +533 -0
  125. data/src/{program.h → shader_program.h} +28 -16
  126. data/src/shader_source.cpp +140 -0
  127. data/src/shader_source.h +52 -0
  128. data/src/texture.cpp +136 -160
  129. data/src/texture.h +65 -0
  130. data/src/win32/bitmap.cpp +62 -52
  131. data/src/win32/font.cpp +11 -13
  132. data/src/win32/font.h +24 -0
  133. data/src/win32/gdi.h +6 -6
  134. data/test/helper.rb +0 -3
  135. data/test/test_bitmap.rb +31 -7
  136. data/test/test_bounds.rb +36 -0
  137. data/test/test_color.rb +59 -19
  138. data/test/test_color_space.rb +95 -0
  139. data/test/test_image.rb +24 -20
  140. data/test/test_matrix.rb +106 -0
  141. data/test/test_painter.rb +92 -46
  142. data/test/test_painter_shape.rb +57 -0
  143. data/test/test_point.rb +21 -0
  144. data/test/test_polygon.rb +234 -0
  145. data/test/test_polygon_line.rb +167 -0
  146. data/test/test_polyline.rb +145 -0
  147. data/test/test_shader.rb +9 -9
  148. metadata +88 -67
  149. data/.doc/ext/rays/texture.cpp +0 -138
  150. data/ext/rays/texture.cpp +0 -149
  151. data/include/rays/ruby/texture.h +0 -41
  152. data/include/rays/texture.h +0 -71
  153. data/lib/rays/texture.rb +0 -24
  154. data/src/program.cpp +0 -648
  155. data/test/test_texture.rb +0 -27
@@ -0,0 +1,145 @@
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_transform_with_materix ()
72
+ m = Rays::Matrix.translate 100, 200
73
+ polyline([10,10], [20,20]).transform(m).tap {|o|
74
+ assert_equal [[110,210], [120,220]], o.dump
75
+ }
76
+
77
+ m = Rays::Matrix.scale 2
78
+ polyline([10,10], [20,20]).transform(m).tap {|o|
79
+ assert_equal [[20,20], [40,40]], o.dump
80
+ }
81
+
82
+ m = Rays::Matrix.rotate 90
83
+ polyline([10,10], [20,20]).transform(m).tap {|o|
84
+ assert_equal [[-10,10], [-20,20]], o.dump
85
+ }
86
+ end
87
+
88
+ def test_transform_with_block ()
89
+ polyline([10,10], [20,20] ).transform {|points|
90
+ points.map {|p| p + [10, 20]}
91
+ }.tap {|o|
92
+ assert_equal [[20,30], [30,40]], o.dump
93
+ }
94
+
95
+ polyline([10,10], [20,20], [30,30] ).transform {|points|
96
+ points.reject {|p| p == point(20, 20)}
97
+ }.tap {|o|
98
+ assert_equal [[10,10], [30,30]], o.dump
99
+ }
100
+
101
+ polyline([10,10], [20,20], [30,30] ).transform {|points|
102
+ points + [[40, 40]]
103
+ }.tap {|o|
104
+ assert_equal [[10,10], [20,20], [30,30], [40,40]], o.dump
105
+ }
106
+
107
+ polyline([10,10], [20,20], [30,30], loop: false).transform(loop: true).tap {|o|
108
+ assert_equal [[10,10], [20,20], [30,30]], o.dump
109
+ assert o.loop?
110
+ }
111
+ end
112
+
113
+ def test_bounds ()
114
+ assert_equal bounds(10, 20, 0, 20, 10, 0), polyline(10, 20, 30, 20, 20, 30).bounds
115
+
116
+ assert polyline(10, 20, 30, 20, 20, 30).bounds.valid?
117
+ assert_not polyline() .bounds.valid?
118
+ end
119
+
120
+ def test_size ()
121
+ assert_equal 2, polyline(1, 2, 3, 4, ).size
122
+ assert_equal 3, polyline(1, 2, 3, 4, 5, 6).size
123
+ end
124
+
125
+ def test_empty? ()
126
+ assert_equal true, polyline( ).empty?
127
+ assert_equal false, polyline(1, 2, 3, 4).empty?
128
+ end
129
+
130
+ def test_index ()
131
+ o = polyline 1, 2, 3, 4, 5, 6
132
+ assert_equal [1, 2], o[ 0].to_a
133
+ assert_equal [3, 4], o[ 1].to_a
134
+ assert_equal [5, 6], o[-1].to_a
135
+ assert_raise(IndexError) {o[ 3]}
136
+ assert_raise(IndexError) {o[-4]}
137
+ end
138
+
139
+ def test_inspect ()
140
+ assert_equal(
141
+ "#<Rays::Polyline [1.0, 2.0], [3.0, 4.0], loop: false>",
142
+ polyline(1, 2, 3, 4).inspect)
143
+ end
144
+
145
+ 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,91 +1,84 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rays
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
- - snori
7
+ - xordog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2019-11-23 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/rays.cpp"
51
+ - ".doc/ext/rays/font.cpp"
52
+ - ".doc/ext/rays/color_space.cpp"
53
+ - ".doc/ext/rays/polygon_line.cpp"
54
+ - ".doc/ext/rays/painter.cpp"
55
+ - ".doc/ext/rays/noise.cpp"
56
+ - ".doc/ext/rays/color.cpp"
57
+ - ".doc/ext/rays/shader.cpp"
58
+ - ".doc/ext/rays/native.cpp"
59
+ - ".doc/ext/rays/point.cpp"
60
+ - ".doc/ext/rays/matrix.cpp"
61
+ - ".doc/ext/rays/polygon.cpp"
62
+ - ".doc/ext/rays/polyline.cpp"
63
+ - ".doc/ext/rays/bounds.cpp"
64
+ files:
75
65
  - ".doc/ext/rays/bitmap.cpp"
76
66
  - ".doc/ext/rays/bounds.cpp"
77
67
  - ".doc/ext/rays/color.cpp"
78
68
  - ".doc/ext/rays/color_space.cpp"
69
+ - ".doc/ext/rays/defs.cpp"
79
70
  - ".doc/ext/rays/font.cpp"
80
71
  - ".doc/ext/rays/image.cpp"
81
72
  - ".doc/ext/rays/matrix.cpp"
82
73
  - ".doc/ext/rays/native.cpp"
74
+ - ".doc/ext/rays/noise.cpp"
83
75
  - ".doc/ext/rays/painter.cpp"
84
76
  - ".doc/ext/rays/point.cpp"
77
+ - ".doc/ext/rays/polygon.cpp"
78
+ - ".doc/ext/rays/polygon_line.cpp"
79
+ - ".doc/ext/rays/polyline.cpp"
85
80
  - ".doc/ext/rays/rays.cpp"
86
81
  - ".doc/ext/rays/shader.cpp"
87
- - ".doc/ext/rays/texture.cpp"
88
- files:
89
82
  - README.md
90
83
  - Rakefile
91
84
  - VERSION
@@ -93,30 +86,39 @@ files:
93
86
  - ext/rays/bounds.cpp
94
87
  - ext/rays/color.cpp
95
88
  - ext/rays/color_space.cpp
89
+ - ext/rays/defs.cpp
96
90
  - ext/rays/defs.h
97
91
  - ext/rays/extconf.rb
98
92
  - ext/rays/font.cpp
99
93
  - ext/rays/image.cpp
100
94
  - ext/rays/matrix.cpp
101
95
  - ext/rays/native.cpp
96
+ - ext/rays/noise.cpp
102
97
  - ext/rays/painter.cpp
103
98
  - ext/rays/point.cpp
99
+ - ext/rays/polygon.cpp
100
+ - ext/rays/polygon_line.cpp
101
+ - ext/rays/polyline.cpp
104
102
  - ext/rays/rays.cpp
105
103
  - ext/rays/shader.cpp
106
- - ext/rays/texture.cpp
107
104
  - include/rays.h
108
105
  - include/rays/bitmap.h
109
106
  - include/rays/bounds.h
110
107
  - include/rays/color.h
111
108
  - include/rays/color_space.h
109
+ - include/rays/coord.h
110
+ - include/rays/debug.h
112
111
  - include/rays/defs.h
113
112
  - include/rays/exception.h
114
113
  - include/rays/font.h
115
114
  - include/rays/image.h
116
115
  - include/rays/matrix.h
116
+ - include/rays/noise.h
117
117
  - include/rays/opengl.h
118
118
  - include/rays/painter.h
119
119
  - include/rays/point.h
120
+ - include/rays/polygon.h
121
+ - include/rays/polyline.h
120
122
  - include/rays/rays.h
121
123
  - include/rays/ruby.h
122
124
  - include/rays/ruby/bitmap.h
@@ -128,11 +130,11 @@ files:
128
130
  - include/rays/ruby/matrix.h
129
131
  - include/rays/ruby/painter.h
130
132
  - include/rays/ruby/point.h
133
+ - include/rays/ruby/polygon.h
134
+ - include/rays/ruby/polyline.h
131
135
  - include/rays/ruby/rays.h
132
136
  - include/rays/ruby/shader.h
133
- - include/rays/ruby/texture.h
134
137
  - include/rays/shader.h
135
- - include/rays/texture.h
136
138
  - lib/rays.rb
137
139
  - lib/rays/autoinit.rb
138
140
  - lib/rays/bitmap.rb
@@ -142,19 +144,29 @@ files:
142
144
  - lib/rays/ext.rb
143
145
  - lib/rays/font.rb
144
146
  - lib/rays/image.rb
147
+ - lib/rays/matrix.rb
145
148
  - lib/rays/module.rb
146
149
  - lib/rays/painter.rb
147
150
  - lib/rays/point.rb
151
+ - lib/rays/polygon.rb
152
+ - lib/rays/polygon_line.rb
153
+ - lib/rays/polyline.rb
148
154
  - lib/rays/shader.rb
149
- - lib/rays/texture.rb
150
155
  - rays.gemspec
156
+ - src/bitmap.h
151
157
  - src/bounds.cpp
152
158
  - src/color.cpp
153
159
  - src/color_space.cpp
160
+ - src/color_space.h
161
+ - src/coord.cpp
162
+ - src/coord.h
154
163
  - src/exception.cpp
164
+ - src/font.cpp
165
+ - src/font.h
155
166
  - src/frame_buffer.cpp
156
167
  - src/frame_buffer.h
157
168
  - src/image.cpp
169
+ - src/image.h
158
170
  - src/ios/bitmap.mm
159
171
  - src/ios/font.mm
160
172
  - src/ios/helper.h
@@ -162,7 +174,10 @@ files:
162
174
  - src/ios/opengl.mm
163
175
  - src/ios/rays.mm
164
176
  - src/matrix.cpp
177
+ - src/matrix.h
178
+ - src/noise.cpp
165
179
  - src/opengl.cpp
180
+ - src/opengl.h
166
181
  - src/osx/bitmap.mm
167
182
  - src/osx/font.mm
168
183
  - src/osx/helper.h
@@ -170,15 +185,25 @@ files:
170
185
  - src/osx/opengl.mm
171
186
  - src/osx/rays.mm
172
187
  - src/painter.cpp
188
+ - src/painter.h
173
189
  - src/point.cpp
174
- - src/program.cpp
175
- - src/program.h
190
+ - src/polygon.cpp
191
+ - src/polygon.h
192
+ - src/polyline.cpp
193
+ - src/polyline.h
176
194
  - src/render_buffer.cpp
177
195
  - src/render_buffer.h
178
196
  - src/shader.cpp
197
+ - src/shader.h
198
+ - src/shader_program.cpp
199
+ - src/shader_program.h
200
+ - src/shader_source.cpp
201
+ - src/shader_source.h
179
202
  - src/texture.cpp
203
+ - src/texture.h
180
204
  - src/win32/bitmap.cpp
181
205
  - src/win32/font.cpp
206
+ - src/win32/font.h
182
207
  - src/win32/gdi.cpp
183
208
  - src/win32/gdi.h
184
209
  - src/win32/rays.cpp
@@ -186,26 +211,18 @@ files:
186
211
  - test/test_bitmap.rb
187
212
  - test/test_bounds.rb
188
213
  - test/test_color.rb
214
+ - test/test_color_space.rb
189
215
  - test/test_font.rb
190
216
  - test/test_image.rb
217
+ - test/test_matrix.rb
191
218
  - test/test_painter.rb
219
+ - test/test_painter_shape.rb
192
220
  - test/test_point.rb
221
+ - test/test_polygon.rb
222
+ - test/test_polygon_line.rb
223
+ - test/test_polyline.rb
193
224
  - test/test_rays.rb
194
225
  - 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
226
  homepage: https://github.com/xord/rays
210
227
  licenses: []
211
228
  metadata: {}
@@ -215,17 +232,16 @@ require_paths:
215
232
  - lib
216
233
  required_ruby_version: !ruby/object:Gem::Requirement
217
234
  requirements:
218
- - - ">="
235
+ - - "~>"
219
236
  - !ruby/object:Gem::Version
220
- version: 1.9.0
237
+ version: '2'
221
238
  required_rubygems_version: !ruby/object:Gem::Requirement
222
239
  requirements:
223
240
  - - ">="
224
241
  - !ruby/object:Gem::Version
225
242
  version: '0'
226
243
  requirements: []
227
- rubyforge_project:
228
- rubygems_version: 2.0.3
244
+ rubygems_version: 3.0.3
229
245
  signing_key:
230
246
  specification_version: 4
231
247
  summary: A Drawing Engine using OpenGL.
@@ -234,10 +250,15 @@ test_files:
234
250
  - test/test_bitmap.rb
235
251
  - test/test_bounds.rb
236
252
  - test/test_color.rb
253
+ - test/test_color_space.rb
237
254
  - test/test_font.rb
238
255
  - test/test_image.rb
256
+ - test/test_matrix.rb
239
257
  - test/test_painter.rb
258
+ - test/test_painter_shape.rb
240
259
  - test/test_point.rb
260
+ - test/test_polygon.rb
261
+ - test/test_polygon_line.rb
262
+ - test/test_polyline.rb
241
263
  - test/test_rays.rb
242
264
  - test/test_shader.rb
243
- - test/test_texture.rb