rays 0.1.29 → 0.1.31

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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/.doc/ext/rays/bitmap.cpp +1 -1
  3. data/.doc/ext/rays/bounds.cpp +1 -1
  4. data/.doc/ext/rays/camera.cpp +1 -1
  5. data/.doc/ext/rays/color.cpp +1 -1
  6. data/.doc/ext/rays/color_space.cpp +1 -1
  7. data/.doc/ext/rays/exception.cpp +1 -1
  8. data/.doc/ext/rays/font.cpp +1 -1
  9. data/.doc/ext/rays/image.cpp +1 -1
  10. data/.doc/ext/rays/matrix.cpp +1 -1
  11. data/.doc/ext/rays/native.cpp +35 -35
  12. data/.doc/ext/rays/noise.cpp +1 -1
  13. data/.doc/ext/rays/painter.cpp +1 -1
  14. data/.doc/ext/rays/point.cpp +1 -1
  15. data/.doc/ext/rays/polygon.cpp +1 -1
  16. data/.doc/ext/rays/polygon_line.cpp +1 -1
  17. data/.doc/ext/rays/polyline.cpp +1 -1
  18. data/.doc/ext/rays/shader.cpp +1 -1
  19. data/.github/workflows/release.yml +34 -0
  20. data/.github/workflows/tag.yml +35 -0
  21. data/.github/workflows/test.yml +32 -0
  22. data/.github/workflows/utils.rb +47 -0
  23. data/ChangeLog.md +20 -0
  24. data/Rakefile +4 -4
  25. data/VERSION +1 -1
  26. data/ext/rays/bitmap.cpp +1 -1
  27. data/ext/rays/bounds.cpp +1 -1
  28. data/ext/rays/camera.cpp +1 -1
  29. data/ext/rays/color.cpp +1 -1
  30. data/ext/rays/color_space.cpp +1 -1
  31. data/ext/rays/exception.cpp +1 -1
  32. data/ext/rays/extconf.rb +4 -4
  33. data/ext/rays/font.cpp +1 -1
  34. data/ext/rays/image.cpp +1 -1
  35. data/ext/rays/matrix.cpp +1 -1
  36. data/ext/rays/native.cpp +35 -35
  37. data/ext/rays/noise.cpp +1 -1
  38. data/ext/rays/painter.cpp +1 -1
  39. data/ext/rays/point.cpp +1 -1
  40. data/ext/rays/polygon.cpp +1 -1
  41. data/ext/rays/polygon_line.cpp +1 -1
  42. data/ext/rays/polyline.cpp +1 -1
  43. data/ext/rays/shader.cpp +1 -1
  44. data/lib/rays/{module.rb → extension.rb} +3 -3
  45. data/lib/rays.rb +1 -1
  46. data/rays.gemspec +11 -8
  47. data/src/opengl.cpp +2 -3
  48. data/src/painter.cpp +53 -91
  49. data/src/shader.cpp +4 -4
  50. data/src/texture.cpp +11 -6
  51. data/test/helper.rb +1 -1
  52. metadata +42 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d598cf8c5059a425c7f26881d6a5f411969ed3ad46f07c331372d398f17bf9e6
4
- data.tar.gz: 7f87f57fbaf8deee511e248ce2d8fea4b1e445cda91ec324fd85b9f3959a8e16
3
+ metadata.gz: 958a334c5a26f773a1b99706103f104d1196d5e808721b89f8aa887641f65f00
4
+ data.tar.gz: 4f63633edea9768657373a2b59323b11f2b3ab07632bf192a60ab83db42fd480
5
5
  SHA512:
6
- metadata.gz: 3e82501e4410fdb429f04cc8acd33a56eeff585ba918a9bfed05ef59db5db61997e279557ec5c3f7e329af285a439f5c49d94be4a4cf7de909f299926e584d2a
7
- data.tar.gz: 8f27df0f080dc97f0f22bbc45abd6a0355d39190a3ff6d48a53abe0c947ca6bc92a5304a214680c7c9871dfa7fde426ef65acc361de594fb113e9ed0c19615fe
6
+ metadata.gz: 749bf2ccb3d4b142e2ac4ef2531716f63632680cc44014b4e880abad0ed93ce6b9ce764bce040b53f10b4957927777ed009d9d2043e7d92b5d91bd939df975bf
7
+ data.tar.gz: 150864fbee3311eec9c0c023cb1b6054af1cbadaabd5a5ffc6b867d72c5b628f4803dee02bbbd9e61e1f5df8e9785c0cb5d090e967b24f5e66405b53452a6ad1
@@ -94,7 +94,7 @@ VALUE get_at(VALUE self, VALUE x, VALUE y)
94
94
  static Class cBitmap;
95
95
 
96
96
  void
97
- Init_bitmap ()
97
+ Init_rays_bitmap ()
98
98
  {
99
99
  Module mRays = rb_define_module("Rays");
100
100
 
@@ -522,7 +522,7 @@ VALUE invalid(VALUE self)
522
522
  static Class cBounds;
523
523
 
524
524
  void
525
- Init_bounds ()
525
+ Init_rays_bounds ()
526
526
  {
527
527
  Module mRays = rb_define_module("Rays");
528
528
 
@@ -134,7 +134,7 @@ VALUE device_names(VALUE self)
134
134
  static Class cCamera;
135
135
 
136
136
  void
137
- Init_camera ()
137
+ Init_rays_camera ()
138
138
  {
139
139
  Module mRays = rb_define_module("Rays");
140
140
 
@@ -182,7 +182,7 @@ VALUE set_palette_color(VALUE self)
182
182
  static Class cColor;
183
183
 
184
184
  void
185
- Init_color ()
185
+ Init_rays_color ()
186
186
  {
187
187
  Module mRays = rb_define_module("Rays");
188
188
 
@@ -177,7 +177,7 @@ VALUE to_s(VALUE self)
177
177
  static Class cColorSpace;
178
178
 
179
179
  void
180
- Init_color_space ()
180
+ Init_rays_color_space ()
181
181
  {
182
182
  Module mRays = rb_define_module("Rays");
183
183
 
@@ -9,7 +9,7 @@ static Class cOpenGLError;
9
9
  static Class cShaderError;
10
10
 
11
11
  void
12
- Init_exception ()
12
+ Init_rays_exception ()
13
13
  {
14
14
  Module mRays = rb_define_module("Rays");
15
15
 
@@ -86,7 +86,7 @@ VALUE leading(VALUE self)
86
86
  static Class cFont;
87
87
 
88
88
  void
89
- Init_font ()
89
+ Init_rays_font ()
90
90
  {
91
91
  Module mRays = rb_define_module("Rays");
92
92
 
@@ -123,7 +123,7 @@ VALUE load(VALUE self)
123
123
  static Class cImage;
124
124
 
125
125
  void
126
- Init_image ()
126
+ Init_rays_image ()
127
127
  {
128
128
  Module mRays = rb_define_module("Rays");
129
129
 
@@ -193,7 +193,7 @@ VALUE s_rotate(VALUE self)
193
193
  static Class cMatrix;
194
194
 
195
195
  void
196
- Init_matrix ()
196
+ Init_rays_matrix ()
197
197
  {
198
198
  Module mRays = rb_define_module("Rays");
199
199
 
@@ -2,25 +2,25 @@
2
2
 
3
3
 
4
4
  void Init_rays ();
5
- void Init_exception ();
5
+ void Init_rays_exception ();
6
6
 
7
- void Init_point ();
8
- void Init_bounds ();
9
- void Init_color ();
10
- void Init_color_space ();
11
- void Init_matrix ();
7
+ void Init_rays_point ();
8
+ void Init_rays_bounds ();
9
+ void Init_rays_color ();
10
+ void Init_rays_color_space ();
11
+ void Init_rays_matrix ();
12
12
 
13
- void Init_painter ();
14
- void Init_polyline ();
15
- void Init_polygon_line ();
16
- void Init_polygon ();
17
- void Init_bitmap ();
18
- void Init_image ();
19
- void Init_font ();
20
- void Init_shader ();
21
- void Init_camera ();
13
+ void Init_rays_painter ();
14
+ void Init_rays_polyline ();
15
+ void Init_rays_polygon_line ();
16
+ void Init_rays_polygon ();
17
+ void Init_rays_bitmap ();
18
+ void Init_rays_image ();
19
+ void Init_rays_font ();
20
+ void Init_rays_shader ();
21
+ void Init_rays_camera ();
22
22
 
23
- void Init_noise ();
23
+ void Init_rays_noise ();
24
24
 
25
25
 
26
26
  extern "C" void
@@ -35,25 +35,25 @@ extern "C" void
35
35
  Rucy::init();
36
36
 
37
37
  Init_rays();
38
- Init_exception();
39
-
40
- Init_point();
41
- Init_bounds();
42
- Init_color();
43
- Init_color_space();
44
- Init_matrix();
45
-
46
- Init_painter();
47
- Init_polyline();
48
- Init_polygon_line();
49
- Init_polygon();
50
- Init_bitmap();
51
- Init_image();
52
- Init_font();
53
- Init_shader();
54
- Init_camera();
55
-
56
- Init_noise();
38
+ Init_rays_exception();
39
+
40
+ Init_rays_point();
41
+ Init_rays_bounds();
42
+ Init_rays_color();
43
+ Init_rays_color_space();
44
+ Init_rays_matrix();
45
+
46
+ Init_rays_painter();
47
+ Init_rays_polyline();
48
+ Init_rays_polygon_line();
49
+ Init_rays_polygon();
50
+ Init_rays_bitmap();
51
+ Init_rays_image();
52
+ Init_rays_font();
53
+ Init_rays_shader();
54
+ Init_rays_camera();
55
+
56
+ Init_rays_noise();
57
57
 
58
58
  RUCY_CATCH
59
59
  }
@@ -45,7 +45,7 @@ VALUE simplex(VALUE self)
45
45
 
46
46
 
47
47
  void
48
- Init_noise ()
48
+ Init_rays_noise ()
49
49
  {
50
50
  Module mRays = rb_define_module("Rays");
51
51
  rb_define_singleton_method(mRays, "perlin", RUBY_METHOD_FUNC(perlin), -1);
@@ -602,7 +602,7 @@ VALUE pop_matrix(VALUE self)
602
602
  static Class cPainter;
603
603
 
604
604
  void
605
- Init_painter ()
605
+ Init_rays_painter ()
606
606
  {
607
607
  Module mRays = rb_define_module("Rays");
608
608
 
@@ -247,7 +247,7 @@ VALUE cross(VALUE self, VALUE p1, VALUE p2)
247
247
  static Class cPoint;
248
248
 
249
249
  void
250
- Init_point ()
250
+ Init_rays_point ()
251
251
  {
252
252
  Module mRays = rb_define_module("Rays");
253
253
 
@@ -233,7 +233,7 @@ VALUE create_bezier(VALUE self, VALUE args, VALUE loop)
233
233
  static Class cPolygon;
234
234
 
235
235
  void
236
- Init_polygon ()
236
+ Init_rays_polygon ()
237
237
  {
238
238
  Module mRays = rb_define_module("Rays");
239
239
 
@@ -39,7 +39,7 @@ VALUE hole(VALUE self)
39
39
  static Class cPolygonLine;
40
40
 
41
41
  void
42
- Init_polygon_line ()
42
+ Init_rays_polygon_line ()
43
43
  {
44
44
  Module mRays = rb_define_module("Rays");
45
45
  Class cPolygon = rb_define_class_under(mRays, "Polygon", rb_cObject);
@@ -105,7 +105,7 @@ VALUE each(VALUE self)
105
105
  static Class cPolyline;
106
106
 
107
107
  void
108
- Init_polyline ()
108
+ Init_rays_polyline ()
109
109
  {
110
110
  Module mRays = rb_define_module("Rays");
111
111
 
@@ -171,7 +171,7 @@ VALUE get_fragment_shader_source(VALUE self)
171
171
  static Class cShader;
172
172
 
173
173
  void
174
- Init_shader ()
174
+ Init_rays_shader ()
175
175
  {
176
176
  Module mRays = rb_define_module("Rays");
177
177
 
@@ -0,0 +1,34 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ['v[0-9]*']
6
+
7
+ jobs:
8
+ release:
9
+ runs-on: macos-latest
10
+
11
+ steps:
12
+ - name: ruby 3.2
13
+ uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: 3.2
16
+
17
+ - name: checkout
18
+ uses: actions/checkout@v2
19
+
20
+ - name: setup dependencies
21
+ run: "ruby -I.github/workflows -rutils -e 'setup_dependencies'"
22
+
23
+ - name: test
24
+ run: rake test
25
+
26
+ - name: upload to rubygems
27
+ env:
28
+ GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
29
+ run: |
30
+ mkdir -p $HOME/.gem
31
+ touch $HOME/.gem/credentials
32
+ chmod 0600 $HOME/.gem/credentials
33
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
34
+ rake upload
@@ -0,0 +1,35 @@
1
+ name: Tag
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+
7
+ jobs:
8
+ tag:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - name: ruby 3.2
13
+ uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: 3.2
16
+
17
+ - name: checkout
18
+ uses: actions/checkout@v2
19
+ with:
20
+ fetch-depth: 0
21
+ token: ${{ secrets.PAT }}
22
+
23
+ - name: setup dependencies
24
+ run: "ruby -I.github/workflows -rutils -e 'setup_dependencies only: :xot'"
25
+
26
+ - name: setup user name and email
27
+ run: |
28
+ git config --global user.email "xordog@gmail.com"
29
+ git config --global user.name "xord"
30
+
31
+ - name: tag versions
32
+ run: "ruby -I.github/workflows -rutils -e 'tag_versions'"
33
+
34
+ - name: push tags
35
+ run: git push origin --tags
@@ -0,0 +1,32 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: macos-latest
12
+
13
+ steps:
14
+ - name: ruby 3.2
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: 3.2
18
+
19
+ - name: checkout
20
+ uses: actions/checkout@v2
21
+
22
+ - name: setup dependencies
23
+ run: "ruby -I.github/workflows -rutils -e 'setup_dependencies'"
24
+
25
+ - name: lib
26
+ run: rake lib
27
+
28
+ - name: ext
29
+ run: rake ext
30
+
31
+ - name: test
32
+ run: rake test
@@ -0,0 +1,47 @@
1
+ def sh(cmd)
2
+ puts cmd
3
+ system cmd
4
+ end
5
+
6
+ def setup_dependencies(build: true, only: nil)
7
+ gemspec_path = `git ls-files`.lines(chomp: true).find {|l| l =~ /\.gemspec$/}
8
+ gemspec = File.read gemspec_path
9
+ name = File.basename gemspec_path, '.gemspec'
10
+
11
+ exts = File.readlines('Rakefile')
12
+ .map {|l| l[%r|^\s*require\W+(\w+)/extension\W+$|, 1]}
13
+ .compact
14
+ .reject {|ext| ext == name}
15
+ exts = exts & [only].flatten.map(&:to_s) if only
16
+
17
+ exts.each do |ext|
18
+ ver = gemspec[/add_runtime_dependency.*'#{ext}'.*'\s*~>\s*([\d\.]+)\s*'/, 1]
19
+ url = "https://github.com/xord/#{ext}.git"
20
+ sh %( git clone --depth 1 --branch v#{ver} #{url} ../#{ext} )
21
+ sh %( cd ../#{ext} && rake ext )
22
+ end
23
+ end
24
+
25
+ def tag_versions()
26
+ tags = `git tag`.lines chomp: true
27
+ vers = `git log --oneline ./VERSION`
28
+ .lines(chomp: true)
29
+ .map {|line| line.split.first[/^\w+$/]}
30
+ .map {|hash| [`git cat-file -p #{hash}:./VERSION 2>/dev/null`[/[\d\.]+/], hash]}
31
+ .select {|ver, hash| ver && hash}
32
+ .reverse
33
+ .to_h
34
+
35
+ changes = File.read('ChangeLog.md')
36
+ .split(/^\s*##\s*\[\s*v([\d\.]+)\s*\].*$/)
37
+ .slice(1..-1)
38
+ .each_slice(2)
39
+ .to_h
40
+ .transform_values(&:strip!)
41
+
42
+ vers.to_a.reverse.each do |ver, hash|
43
+ tag = "v#{ver}"
44
+ break if tags.include?(tag)
45
+ sh %( git tag -a -m \"#{changes[ver]&.gsub '"', '\\"'}\" #{tag} #{hash} )
46
+ end
47
+ end
data/ChangeLog.md ADDED
@@ -0,0 +1,20 @@
1
+ # rays ChangeLog
2
+
3
+
4
+ ## [v0.1.31] - 2023-02-27
5
+
6
+ - add ChangeLog.md file
7
+ - add test.yml, tag.yaml, and release.yml
8
+ - requires ruby 2.7.0 or later
9
+
10
+
11
+ ## [v0.1.30] - 2023-02-09
12
+
13
+ - default precision: mediump -> highp
14
+ - do not use buffer object to draw on iOS
15
+ - fix conflicting rays's Init_exception() and others Init_exception()
16
+ - disable non-power-of-two texture by default
17
+ - restore premultiplied rgb values of the font texture on iOS
18
+ - fix buffer leak
19
+ - fix compile errors on building for iOS
20
+ - refactoring
data/Rakefile CHANGED
@@ -7,12 +7,12 @@
7
7
 
8
8
  require 'rucy/rake'
9
9
 
10
- require 'xot/module'
11
- require 'rucy/module'
12
- require 'rays/module'
10
+ require 'xot/extension'
11
+ require 'rucy/extension'
12
+ require 'rays/extension'
13
13
 
14
14
 
15
- MODULES = [Xot, Rucy, Rays]
15
+ EXTENSIONS = [Xot, Rucy, Rays]
16
16
  TESTS_ALONE = ['test/test_rays.rb']
17
17
 
18
18
  use_external_library 'https://github.com/g-truc/glm',
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.29
1
+ 0.1.31
data/ext/rays/bitmap.cpp CHANGED
@@ -102,7 +102,7 @@ RUCY_END
102
102
  static Class cBitmap;
103
103
 
104
104
  void
105
- Init_bitmap ()
105
+ Init_rays_bitmap ()
106
106
  {
107
107
  Module mRays = define_module("Rays");
108
108
 
data/ext/rays/bounds.cpp CHANGED
@@ -569,7 +569,7 @@ RUCY_END
569
569
  static Class cBounds;
570
570
 
571
571
  void
572
- Init_bounds ()
572
+ Init_rays_bounds ()
573
573
  {
574
574
  Module mRays = define_module("Rays");
575
575
 
data/ext/rays/camera.cpp CHANGED
@@ -149,7 +149,7 @@ RUCY_END
149
149
  static Class cCamera;
150
150
 
151
151
  void
152
- Init_camera ()
152
+ Init_rays_camera ()
153
153
  {
154
154
  Module mRays = define_module("Rays");
155
155
 
data/ext/rays/color.cpp CHANGED
@@ -195,7 +195,7 @@ RUCY_END
195
195
  static Class cColor;
196
196
 
197
197
  void
198
- Init_color ()
198
+ Init_rays_color ()
199
199
  {
200
200
  Module mRays = define_module("Rays");
201
201
 
@@ -190,7 +190,7 @@ RUCY_END
190
190
  static Class cColorSpace;
191
191
 
192
192
  void
193
- Init_color_space ()
193
+ Init_rays_color_space ()
194
194
  {
195
195
  Module mRays = define_module("Rays");
196
196
 
@@ -9,7 +9,7 @@ static Class cOpenGLError;
9
9
  static Class cShaderError;
10
10
 
11
11
  void
12
- Init_exception ()
12
+ Init_rays_exception ()
13
13
  {
14
14
  Module mRays = define_module("Rays");
15
15
 
data/ext/rays/extconf.rb CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
 
4
4
  %w[../xot ../rucy .]
5
- .map {|s| File.expand_path "../../../#{s}/lib", __FILE__}
5
+ .map {|s| File.expand_path "../../#{s}/lib", __dir__}
6
6
  .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}
7
7
 
8
8
  require 'mkmf'
9
9
  require 'xot/extconf'
10
- require 'xot/module'
11
- require 'rucy/module'
12
- require 'rays/module'
10
+ require 'xot/extension'
11
+ require 'rucy/extension'
12
+ require 'rays/extension'
13
13
 
14
14
 
15
15
  Xot::ExtConf.new Xot, Rucy, Rays do
data/ext/rays/font.cpp CHANGED
@@ -95,7 +95,7 @@ RUCY_END
95
95
  static Class cFont;
96
96
 
97
97
  void
98
- Init_font ()
98
+ Init_rays_font ()
99
99
  {
100
100
  Module mRays = define_module("Rays");
101
101
 
data/ext/rays/image.cpp CHANGED
@@ -134,7 +134,7 @@ RUCY_END
134
134
  static Class cImage;
135
135
 
136
136
  void
137
- Init_image ()
137
+ Init_rays_image ()
138
138
  {
139
139
  Module mRays = define_module("Rays");
140
140
 
data/ext/rays/matrix.cpp CHANGED
@@ -209,7 +209,7 @@ RUCY_END
209
209
  static Class cMatrix;
210
210
 
211
211
  void
212
- Init_matrix ()
212
+ Init_rays_matrix ()
213
213
  {
214
214
  Module mRays = define_module("Rays");
215
215
 
data/ext/rays/native.cpp CHANGED
@@ -2,25 +2,25 @@
2
2
 
3
3
 
4
4
  void Init_rays ();
5
- void Init_exception ();
5
+ void Init_rays_exception ();
6
6
 
7
- void Init_point ();
8
- void Init_bounds ();
9
- void Init_color ();
10
- void Init_color_space ();
11
- void Init_matrix ();
7
+ void Init_rays_point ();
8
+ void Init_rays_bounds ();
9
+ void Init_rays_color ();
10
+ void Init_rays_color_space ();
11
+ void Init_rays_matrix ();
12
12
 
13
- void Init_painter ();
14
- void Init_polyline ();
15
- void Init_polygon_line ();
16
- void Init_polygon ();
17
- void Init_bitmap ();
18
- void Init_image ();
19
- void Init_font ();
20
- void Init_shader ();
21
- void Init_camera ();
13
+ void Init_rays_painter ();
14
+ void Init_rays_polyline ();
15
+ void Init_rays_polygon_line ();
16
+ void Init_rays_polygon ();
17
+ void Init_rays_bitmap ();
18
+ void Init_rays_image ();
19
+ void Init_rays_font ();
20
+ void Init_rays_shader ();
21
+ void Init_rays_camera ();
22
22
 
23
- void Init_noise ();
23
+ void Init_rays_noise ();
24
24
 
25
25
 
26
26
  extern "C" void
@@ -35,25 +35,25 @@ extern "C" void
35
35
  Rucy::init();
36
36
 
37
37
  Init_rays();
38
- Init_exception();
39
-
40
- Init_point();
41
- Init_bounds();
42
- Init_color();
43
- Init_color_space();
44
- Init_matrix();
45
-
46
- Init_painter();
47
- Init_polyline();
48
- Init_polygon_line();
49
- Init_polygon();
50
- Init_bitmap();
51
- Init_image();
52
- Init_font();
53
- Init_shader();
54
- Init_camera();
55
-
56
- Init_noise();
38
+ Init_rays_exception();
39
+
40
+ Init_rays_point();
41
+ Init_rays_bounds();
42
+ Init_rays_color();
43
+ Init_rays_color_space();
44
+ Init_rays_matrix();
45
+
46
+ Init_rays_painter();
47
+ Init_rays_polyline();
48
+ Init_rays_polygon_line();
49
+ Init_rays_polygon();
50
+ Init_rays_bitmap();
51
+ Init_rays_image();
52
+ Init_rays_font();
53
+ Init_rays_shader();
54
+ Init_rays_camera();
55
+
56
+ Init_rays_noise();
57
57
 
58
58
  RUCY_CATCH
59
59
  }
data/ext/rays/noise.cpp CHANGED
@@ -47,7 +47,7 @@ RUCY_END
47
47
 
48
48
 
49
49
  void
50
- Init_noise ()
50
+ Init_rays_noise ()
51
51
  {
52
52
  Module mRays = define_module("Rays");
53
53
  mRays.define_singleton_method("perlin", perlin);