ruby-gr 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -5
  3. data/lib/gr.rb +11 -9
  4. data/lib/gr/ffi.rb +47 -25
  5. data/lib/gr3.rb +11 -8
  6. data/lib/gr3/ffi.rb +35 -42
  7. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c233863f557d6d70810dbfef025d311444633b074163f3e894b01c0b9f54e52
4
- data.tar.gz: c7e676efdb662b0ea85736d6b66c36e785f587f96961055c712743d79a716265
3
+ metadata.gz: 8fd375d6fbd9ef427ca5eeb0540bf83b456ade3dac53e48572df7b4c2b5f2466
4
+ data.tar.gz: 127c524864be21dac6bf57c07f61546208b95559f359edff61d82048b7e16ff9
5
5
  SHA512:
6
- metadata.gz: 2e78037e8e9f2b824ec1f357e834367d696c28fce14732d1fad360c08a0005526cc757cb615d4779aa4d48d2cb05f0d853d849445c80ca7400425fc66c7b7329
7
- data.tar.gz: 9ebf89a908f4141ef7a2616b7414d48616f2209e203193f8a61662cc4def5a27799425b9d5b6003f0f5ece500359c1416d64e8637ae4f1a5a3fedfddb4ee06c9
6
+ metadata.gz: 937b324d8199571ed75ac494889c6550bb35da07012f4770b23b37fe1b0aad0e853366c791bf1349fd96b531bf1292415925762271a8619e59aef6859ad7e6ab
7
+ data.tar.gz: 635b60aa7adc76b87bec35e11d419aaa402b49387b89b80534797b41f89ed8800fc3bb8e11321a6f4ea917ec2ff610c2e9c8b817ea13ed7091c78958bffdf078
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  [![The MIT License](https://img.shields.io/badge/license-MIT-orange.svg)](LICENSE.md)
4
4
  [![Build Status](https://travis-ci.com/kojix2/GR.rb.svg?&branch=master)](https://travis-ci.org/kojix2/GR.rb)
5
+ [![Gem Version](https://badge.fury.io/rb/ruby-gr.svg)](https://badge.fury.io/rb/ruby-gr)
6
+ [![Gitter chat](https://badges.gitter.im/kojix2/GR.rb.svg)](https://gitter.im/kojix2/GR.rb)
5
7
 
6
8
  [GR framework](https://github.com/sciapp/gr) - the graphics library for visualisation - for Ruby
7
9
 
@@ -37,8 +39,4 @@ GR.updatews
37
39
 
38
40
  ## Contributing
39
41
 
40
- Bug reports and pull requests are welcome on GitHub at https://github.com/kojix2/GR.rb.
41
-
42
- ## License
43
-
44
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kojix2/GR.rb.
data/lib/gr.rb CHANGED
@@ -3,6 +3,8 @@
3
3
  require 'ffi'
4
4
 
5
5
  module GR
6
+ class Error < StandardError; end
7
+
6
8
  class << self
7
9
  attr_reader :ffi_lib
8
10
  end
@@ -11,7 +13,7 @@ module GR
11
13
  # Windows | bin/libgr.dll
12
14
  # MacOSX | lib/libGR.so (NOT .dylib)
13
15
  # Ubuntu | lib/libGR.so
14
- raise 'Please set env variable GRDIR' unless ENV['GRDIR']
16
+ raise Error, 'Please set env variable GRDIR' unless ENV['GRDIR']
15
17
 
16
18
  ENV['GKS_FONTPATH'] ||= ENV['GRDIR']
17
19
  @ffi_lib = case RbConfig::CONFIG['host_os']
@@ -21,18 +23,18 @@ module GR
21
23
  else
22
24
  File.expand_path('lib/libGR.so', ENV['GRDIR'])
23
25
  end
24
- end
25
26
 
26
- require_relative 'gr_commons'
27
- require 'gr/ffi'
28
- require 'gr/grbase'
27
+ require_relative 'gr_commons'
28
+ require_relative 'gr/ffi'
29
+ require_relative 'gr/grbase'
29
30
 
30
- module GR
31
31
  extend GRCommons::JupyterSupport
32
32
  extend GRBase
33
33
 
34
- # 1. double is the default type
35
- # 2. don't check size (for now)
34
+ # `double` is the default type in GR
35
+ # A Ruby array or NArray passed to GR method is automatically converted to
36
+ # a FFI::MemoryPointer in the GRBase class.
37
+
36
38
  class << self
37
39
  def inqdspsize
38
40
  inquiry %i[double double int int] do |*pts|
@@ -345,7 +347,7 @@ module GR
345
347
  end
346
348
  end
347
349
 
348
- # Constants
350
+ # Constants - imported from GR.jl
349
351
 
350
352
  ASF_BUNDLED = 0
351
353
  ASF_INDIVIDUAL = 1
data/lib/gr/ffi.rb CHANGED
@@ -6,20 +6,20 @@ module GR
6
6
  module FFI
7
7
  extend ::FFI::Library
8
8
 
9
- ffi_lib GR.ffi_lib
9
+ begin
10
+ ffi_lib GR.ffi_lib
11
+ rescue LoadError => e
12
+ raise LoadError, 'Could not find GR Framework'
13
+ end
10
14
 
11
15
  extend GRCommons::AttachFunction
12
16
 
13
- # https://github.com/sciapp/gr/blob/master/lib/gr/gr.c
17
+ # https://github.com/sciapp/gr/blob/master/lib/gr/gr.h
14
18
 
15
19
  attach_function :gr_initgr, %i[], :void
16
-
17
- # gks - graphical kernel system
18
20
  attach_function :gr_opengks, %i[], :void
19
21
  attach_function :gr_closegks, %i[], :void
20
22
  attach_function :gr_inqdspsize, %i[pointer pointer pointer pointer], :void
21
-
22
- # ws - workstation
23
23
  attach_function :gr_openws, %i[int string int], :void
24
24
  attach_function :gr_closews, %i[int], :void
25
25
  attach_function :gr_activatews, %i[int], :void
@@ -27,7 +27,6 @@ module GR
27
27
  attach_function :gr_configurews, %i[], :void
28
28
  attach_function :gr_clearws, %i[], :void
29
29
  attach_function :gr_updatews, %i[], :void
30
-
31
30
  attach_function :gr_polyline, %i[int pointer pointer], :void
32
31
  attach_function :gr_polymarker, %i[int pointer pointer], :void
33
32
  attach_function :gr_text, %i[double double string], :void
@@ -39,8 +38,6 @@ module GR
39
38
  attach_function :gr_gdp, %i[int pointer pointer int int pointer], :void
40
39
  attach_function :gr_spline, %i[int pointer pointer int int], :void
41
40
  attach_function :gr_gridit, %i[int pointer pointer pointer int int pointer pointer pointer], :void
42
-
43
- # inq - inquiry
44
41
  attach_function :gr_setlinetype, %i[int], :void
45
42
  attach_function :gr_inqlinetype, %i[pointer], :void
46
43
  attach_function :gr_setlinewidth, %i[double], :void
@@ -50,10 +47,9 @@ module GR
50
47
  attach_function :gr_setmarkertype, %i[int], :void
51
48
  attach_function :gr_inqmarkertype, %i[pointer], :void
52
49
  attach_function :gr_setmarkersize, %i[double], :void
53
- # gr_inqmarkersize is not implemented
50
+ # gr_inqmarkersize is not implemented.
54
51
  attach_function :gr_setmarkercolorind, %i[int], :void
55
52
  attach_function :gr_inqmarkercolorind, %i[pointer], :void
56
-
57
53
  attach_function :gr_settextfontprec, %i[int int], :void
58
54
  attach_function :gr_setcharexpan, %i[double], :void
59
55
  attach_function :gr_setcharspace, %i[double], :void
@@ -62,25 +58,21 @@ module GR
62
58
  attach_function :gr_setcharup, %i[double double], :void
63
59
  attach_function :gr_settextpath, %i[int], :void
64
60
  attach_function :gr_settextalign, %i[int int], :void
65
-
66
61
  attach_function :gr_setfillintstyle, %i[int], :void
67
62
  attach_function :gr_inqfillintstyle, %i[pointer], :void
68
63
  attach_function :gr_setfillstyle, %i[int], :void
69
64
  attach_function :gr_inqfillstyle, %i[pointer], :void
70
65
  attach_function :gr_setfillcolorind, %i[int], :void
71
66
  attach_function :gr_inqfillcolorind, %i[pointer], :void
72
-
73
67
  attach_function :gr_setcolorrep, %i[int double double double], :void
74
68
  attach_function :gr_setscale, %i[int], :int
75
69
  attach_function :gr_inqscale, %i[pointer], :void
76
-
77
70
  attach_function :gr_setwindow, %i[double double double double], :void
78
71
  attach_function :gr_inqwindow, %i[pointer pointer pointer pointer], :void
79
72
  attach_function :gr_setviewport, %i[double double double double], :void
80
73
  attach_function :gr_inqviewport, %i[pointer pointer pointer pointer], :void
81
74
  attach_function :gr_selntran, %i[int], :void
82
75
  attach_function :gr_setclip, %i[int], :void
83
-
84
76
  attach_function :gr_setwswindow, %i[double double double double], :void
85
77
  attach_function :gr_setwsviewport, %i[double double double double], :void
86
78
  attach_function :gr_createseg, %i[int], :void
@@ -94,22 +86,17 @@ module GR
94
86
  attach_function :gr_inqspace, %i[pointer pointer pointer pointer], :void
95
87
  attach_function :gr_textext, %i[double double string], :int
96
88
  attach_function :gr_inqtextext, %i[double double string pointer pointer], :void
97
-
98
- # attach_function :gr_axeslbl
99
89
  attach_function :gr_axes, %i[double double double double int int double], :void
90
+ # attach_function :gr_axeslbl
100
91
  attach_function :gr_grid, %i[double double double double int int], :void
101
92
  attach_function :gr_grid3d, %i[double double double double double double int int int], :void
102
93
  attach_function :gr_verrorbars, %i[int pointer pointer pointer pointer], :void
103
94
  attach_function :gr_herrorbars, %i[int pointer pointer pointer pointer], :void
104
-
105
95
  attach_function :gr_polyline3d, %i[int pointer pointer pointer], :void
106
96
  attach_function :gr_polymarker3d, %i[int pointer pointer pointer], :void
107
97
  attach_function :gr_axes3d, %i[double double double double double double int int int double], :void
108
98
  attach_function :gr_titles3d, %i[string string string], :void
109
99
  attach_function :gr_surface, %i[int int pointer pointer pointer int], :void
110
- attach_function :gr_trisurface, %i[int pointer pointer pointer], :void
111
- attach_function :gr_gradient, %i[int int pointer pointer pointer pointer pointer], :void
112
- attach_function :gr_quiver, %i[int int pointer pointer pointer pointer int], :void
113
100
  attach_function :gr_contour, %i[int int int pointer pointer pointer pointer int], :void
114
101
  attach_function :gr_contourf, %i[int int int pointer pointer pointer pointer int], :void
115
102
  attach_function :gr_tricontour, %i[int pointer pointer pointer int pointer], :void
@@ -122,8 +109,8 @@ module GR
122
109
  attach_function :gr_inqcolorfromrgb, %i[double double double], :int
123
110
  attach_function :gr_hsvtorgb, %i[double double double pointer pointer pointer], :void
124
111
  attach_function :gr_tick, %i[double double], :double
125
-
126
112
  attach_function :gr_validaterange, %i[double double], :int
113
+ attach_function :gr_adjustlimits, %i[pointer pointer], :void
127
114
  attach_function :gr_adjustrange, %i[pointer pointer], :void
128
115
  attach_function :gr_beginprint, %i[string], :void
129
116
  attach_function :gr_beginprintext, %i[string string string string], :void
@@ -139,12 +126,16 @@ module GR
139
126
  attach_function :gr_setarrowstyle, %i[int], :void
140
127
  attach_function :gr_setarrowsize, %i[double], :void
141
128
  attach_function :gr_drawarrow, %i[double double double double], :void
129
+ # attach_function :gr_readimage, %i[pointer pointer pointer pointer], :int
142
130
  attach_function :gr_drawimage, %i[double double double double int int pointer int], :void
131
+ # attach_function :gr_importgraphics, %i[string], :int
143
132
  attach_function :gr_setshadow, %i[double double double], :void
144
133
  attach_function :gr_settransparency, %i[double], :void
145
134
  attach_function :gr_setcoordxform, %i[pointer], :void
146
135
  attach_function :gr_begingraphics, %i[string], :void
147
136
  attach_function :gr_endgraphics, %i[], :void
137
+ # attach_function :gr_getgraphics
138
+ # attach_function :gr_drawgraphics
148
139
  attach_function :gr_mathtex, %i[double double string], :void
149
140
  attach_function :gr_inqmathtex, %i[double double string pointer pointer], :void
150
141
  attach_function :gr_beginselection, %i[int int], :void
@@ -160,10 +151,41 @@ module GR
160
151
  attach_function :gr_selectcontext, %i[int], :void
161
152
  attach_function :gr_destroycontext, %i[int], :void
162
153
  attach_function :gr_uselinespec, %i[string], :void
163
- attach_function :gr_adjustlimits, %i[pointer pointer], :void
164
- attach_function :gr_version, %i[], :pointer
165
-
154
+ # attach_function :gr_delaunay
166
155
  attach_function :gr_reducepoints, %i[int pointer pointer int pointer pointer], :void
156
+ attach_function :gr_trisurface, %i[int pointer pointer pointer], :void
157
+ attach_function :gr_gradient, %i[int int pointer pointer pointer pointer pointer], :void
158
+ attach_function :gr_quiver, %i[int int pointer pointer pointer pointer int], :void
159
+ # attach_function :gr_interp2
160
+
161
+ # gr_newmeta
162
+ # attach_function :gr_deletemeta
163
+ # attach_function :gr_finalizemeta
164
+ # attach_function :gr_meta_args_push
165
+ # attach_function :gr_meta_args_push_buf
166
+ # attach_function :gr_meta_args_contains
167
+ # attach_function :gr_meta_args_clear
168
+ # attach_function :gr_meta_args_remove
169
+ # attach_function :gr_meta_get_box
170
+ # attach_function :gr_openmeta
171
+ # attach_function :gr_recvmeta
172
+ # attach_function :gr_sendmeta
173
+ # attach_function :gr_sendmeta_buf
174
+ # attach_function :gr_sendmeta_ref
175
+ # attach_function :gr_sendmeta_args
176
+ # attach_function :gr_closemeta
177
+ # attach_function :gr_clearmeta
178
+ # attach_function :gr_inputmeta
179
+ # attach_function :gr_mergemeta
180
+ # attach_function :gr_plotmeta
181
+ # attach_function :gr_readmeta
182
+ # attach_function :gr_switchmeta
183
+ # attach_function :gr_registermeta
184
+ # attach_function :gr_unregistermeta
185
+ # attach_function :gr_meta_max_plotid
186
+ # attach_function :gr_dumpmeta
187
+ # attach_function :gr_dumpmeta_json
188
+ attach_function :gr_version, %i[], :pointer
167
189
  attach_function :gr_shadepoints, %i[int pointer pointer int int int], :void
168
190
  attach_function :gr_shadelines, %i[int pointer pointer int int int], :void
169
191
  attach_function :gr_panzoom, %i[double double double double pointer pointer pointer pointer], :void
data/lib/gr3.rb CHANGED
@@ -3,6 +3,8 @@
3
3
  require 'ffi'
4
4
 
5
5
  module GR3
6
+ class Error < StandardError; end
7
+
6
8
  class << self
7
9
  attr_reader :ffi_lib
8
10
  end
@@ -11,7 +13,7 @@ module GR3
11
13
  # Windows | bin/libgr3.dll
12
14
  # MacOSX | lib/libGR3.so (NOT .dylib)
13
15
  # Ubuntu | lib/libGR3.so
14
- raise 'Please set env variable GRDIR' unless ENV['GRDIR']
16
+ raise Error, 'Please set env variable GRDIR' unless ENV['GRDIR']
15
17
 
16
18
  ENV['GKS_FONTPATH'] ||= ENV['GRDIR']
17
19
  @ffi_lib = case RbConfig::CONFIG['host_os']
@@ -21,18 +23,17 @@ module GR3
21
23
  else
22
24
  File.expand_path('lib/libGR3.so', ENV['GRDIR'])
23
25
  end
24
- end
25
26
 
26
- require_relative 'gr_commons'
27
- require 'gr3/ffi'
28
- require 'gr3/gr3base'
27
+ require_relative 'gr_commons'
28
+ require_relative 'gr3/ffi'
29
+ require_relative 'gr3/gr3base'
29
30
 
30
- module GR3
31
31
  extend GRCommons::JupyterSupport
32
32
  extend GR3Base
33
33
 
34
- # 1. double is the default type
35
- # 2. don't check size (for now)
34
+ # `float` is the default type in GR3
35
+ # A Ruby array or NArray passed to GR3 method is automatically converted to
36
+ # a FFI::MemoryPointer in the GR3Base class.
36
37
 
37
38
  module CheckError
38
39
  FFI.ffi_methods.each do |method|
@@ -95,6 +96,8 @@ module GR3
95
96
  end
96
97
  end
97
98
 
99
+ # Constants - imported from GR.jl
100
+
98
101
  IA_END_OF_LIST = 0
99
102
  IA_FRAMEBUFFER_WIDTH = 1
100
103
  IA_FRAMEBUFFER_HEIGHT = 2
data/lib/gr3/ffi.rb CHANGED
@@ -6,71 +6,69 @@ module GR3
6
6
  module FFI
7
7
  extend ::FFI::Library
8
8
 
9
- ffi_lib GR3.ffi_lib
9
+ begin
10
+ ffi_lib GR3.ffi_lib
11
+ rescue LoadError => e
12
+ raise LoadError, 'Could not find GR Framework'
13
+ end
10
14
 
11
15
  extend GRCommons::AttachFunction
12
16
 
13
- # gr3.c
17
+ # https://github.com/sciapp/gr/blob/master/lib/gr3/gr3.h
14
18
 
15
19
  attach_function :gr3_init, %i[int], :int
16
- attach_function :gr3_geterror, %i[int pointer pointer], :int
20
+ attach_function :gr3_free, %i[pointer], :void
17
21
  attach_function :gr3_terminate, %i[], :void
22
+ attach_function :gr3_geterror, %i[int pointer pointer], :int
23
+ attach_function :gr3_getrenderpathstring, %i[], :string
24
+ attach_function :gr3_geterrorstring, %i[int], :string
25
+ # callback :gr3_log_func, %i[string], :void
26
+ # attach_function :gr3_setlogcallback, %i[:gr3_log_func], :void
18
27
  attach_function :gr3_clear, %i[], :int
19
28
  attach_function :gr3_usecurrentframebuffer, %i[], :void
20
29
  attach_function :gr3_useframebuffer, %i[uint], :void
21
- attach_function :gr3_setbackgroundcolor, %i[float float float float], :void
22
- # getbackgroundcolor not implemented
30
+ attach_function :gr3_setquality, %i[int], :int
31
+ attach_function :gr3_getimage, %i[int int int pointer], :int
32
+ attach_function :gr3_export, %i[pointer int int], :int
33
+ attach_function :gr3_drawimage, %i[float float float float int int int], :int
23
34
  attach_function :gr3_createmesh_nocopy, %i[pointer int pointer pointer pointer], :int
24
35
  attach_function :gr3_createmesh, %i[pointer int pointer pointer pointer], :int
25
36
  attach_function :gr3_createindexedmesh_nocopy, %i[pointer int pointer pointer pointer int pointer], :int
26
37
  attach_function :gr3_createindexedmesh, %i[pointer int pointer pointer pointer int pointer], :int
27
38
  attach_function :gr3_drawmesh, %i[int int pointer pointer pointer pointer pointer], :void
28
39
  attach_function :gr3_deletemesh, %i[int], :void
29
- attach_function :gr3_setlightdirection, %i[float float float], :void
30
40
  attach_function :gr3_cameralookat, %i[float float float float float float float float float], :void
31
41
  attach_function :gr3_setcameraprojectionparameters, %i[float float float], :int
32
42
  attach_function :gr3_getcameraprojectionparameters, %i[pointer pointer pointer], :int
33
- attach_function :gr3_drawimage, %i[float float float float int int int], :int
34
- attach_function :gr3_setquality, %i[int], :int
35
- attach_function :gr3_getimage, %i[int int int pointer], :int
36
- attach_function :gr3_export, %i[pointer int int], :int
37
- attach_function :gr3_free, %i[pointer], :void
38
- # callback :gr3_log_func, %i[string], :void
39
- # attach_function :gr3_setlogcallback, %i[:gr3_log_func], :void
40
- attach_function :gr3_geterrorstring, %i[int], :string
41
- attach_function :gr3_getrenderpathstring, %i[], :string
43
+ attach_function :gr3_setlightdirection, %i[float float float], :void
44
+ attach_function :gr3_setbackgroundcolor, %i[float float float float], :void
45
+ # getbackgroundcolor not implemented
46
+ attach_function :gr3_createheightmapmesh, %i[pointer int int], :void
47
+ attach_function :gr3_drawheightmap, %i[pointer int int pointer pointer], :void
48
+ attach_function :gr3_drawconemesh, %i[int pointer pointer pointer pointer pointer], :void
49
+ attach_function :gr3_drawcylindermesh, %i[int pointer pointer pointer pointer pointer], :void
50
+ attach_function :gr3_drawspheremesh, %i[int pointer pointer pointer], :void
51
+ attach_function :gr3_drawcubemesh, %i[int pointer pointer pointer pointer pointer], :void
42
52
  attach_function :gr3_setobjectid, %i[int], :void
43
53
  attach_function :gr3_selectid, %i[int int int int pointer], :int
44
54
  attach_function :gr3_getviewmatrix, %i[pointer], :void
45
- # attach_function :gr3_setviewmatrix, %i[pointer], :void
55
+ attach_function :gr3_setviewmatrix, %i[pointer], :void
46
56
  attach_function :gr3_getprojectiontype, %i[], :int
47
57
  attach_function :gr3_setprojectiontype, %i[int], :void
48
-
49
- # gr3_gr.c
50
-
58
+ # attach_function gr3_triangulate
59
+ # %i[pointer ushort uint uint uint uint uint uint double double double double double double pointer], :void
60
+ # attach_function gr3_triangulateindexed
61
+ # %i[pointer ushort uint uint uint uint uint uint double double double double double double pointer pointer pointer pointer poiter], :void
62
+ # attach_function :gr3_createisosurfacemesh,
63
+ # %i[pointer pointer ushort uint uint uint uint uint uint double double double double double double], :int
51
64
  attach_function :gr3_createsurfacemesh, %i[pointer int int pointer pointer pointer int], :int
52
65
  attach_function :gr3_drawmesh_grlike, %i[int int pointer pointer pointer pointer pointer], :void
53
66
  attach_function :gr3_drawsurface, %i[int], :void
54
67
  # attach_function gr3_surface, %i[int int pointer pointer pointer int], :void
55
- # attach_function gr3_drawtrianglesurface, %i[int pointer], :void
56
- # attach_function gr_volume, %i[int int int pointer int pointer pointer], :void
57
-
58
- # gr3_convenience.c
59
-
60
- attach_function :gr3_drawcubemesh, %i[int pointer pointer pointer pointer pointer], :void
61
- attach_function :gr3_drawcylindermesh, %i[int pointer pointer pointer pointer pointer], :void
62
- attach_function :gr3_drawconemesh, %i[int pointer pointer pointer pointer pointer], :void
63
- attach_function :gr3_drawspheremesh, %i[int pointer pointer pointer], :void
64
- attach_function :gr3_drawheightmap, %i[pointer int int pointer pointer], :void
65
- attach_function :gr3_createheightmapmesh, %i[pointer int int], :void
66
- # attach_function :gr3_createisosurfacemesh,
67
- # %i[pointer pointer ushort uint uint uint uint uint uint double double double double double double], :int
68
68
  attach_function :gr3_drawtubemesh, %i[int pointer pointer pointer int int], :int
69
+ # attach_function :gr3_createtubemesh, %i[pointer int pointer pointer pointer int int], :int
69
70
  # attach_function gr3_drawspins, %i[int pointer pointer pointer float float float float], :void
70
71
  # attach_function gr3_drawmolecule, %i[int pointer pointer pointer float pointer float], :void
71
-
72
- # gr3_slices.c
73
-
74
72
  # attach_function gr3_createxslicemesh,
75
73
  # %i[pointer pointer uint uint uint uint uint uint uint double double double double double double], :void
76
74
  # attach_function gr3_createyslicemesh
@@ -83,12 +81,7 @@ module GR3
83
81
  # %i[pointer uint uint uint uint uint uint uint double double double double double double], :void
84
82
  # attach_function gr3_drawzslicemesh
85
83
  # %i[pointer uint uint uint uint uint uint uint double double double double double double], :void
86
-
87
- # gr3_mc.c
88
-
89
- # attach_function gr3_triangulateindexed
90
- # %i[pointer ushort uint uint uint uint uint uint double double double double double double pointer pointer pointer pointer poiter], :void
91
- # attach_function gr3_triangulate
92
- # %i[pointer ushort uint uint uint uint uint uint double double double double double double pointer], :void
84
+ # attach_function gr3_drawtrianglesurface, %i[int pointer], :void
85
+ # attach_function gr_volume, %i[int int int pointer int pointer pointer], :void
93
86
  end
94
87
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-gr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-19 00:00:00.000000000 Z
11
+ date: 2019-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi