Closed kojix2 closed 1 year ago
Could you try the following?
require 'fiddle/import'
module FFI
extend Fiddle::Importer
Coord = struct [
'float x',
'float y',
'float z'
]
Triangle = struct [
{ 'vertices[3]' => Coord },
{ 'normal[3]' => Coord }
]
end
Sorry for the late reply. I will use this code. Thank you very much.
Fiddle supports nested structs.
But what if the array of structures is nested?
original C code: