assimp-ffi 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/lib/assimp-ffi.rb +0 -0
- data/lib/assimp/anim.rb +0 -0
- data/lib/assimp/base.rb +0 -0
- data/lib/assimp/camera.rb +0 -0
- data/lib/assimp/color4.rb +0 -0
- data/lib/assimp/config.rb +0 -0
- data/lib/assimp/defs.rb +3 -0
- data/lib/assimp/export.rb +0 -0
- data/lib/assimp/fileio.rb +0 -0
- data/lib/assimp/import.rb +0 -0
- data/lib/assimp/importerdesc.rb +0 -0
- data/lib/assimp/light.rb +0 -0
- data/lib/assimp/material.rb +0 -0
- data/lib/assimp/matrix3x3.rb +0 -0
- data/lib/assimp/matrix4x4.rb +0 -0
- data/lib/assimp/mesh.rb +0 -0
- data/lib/assimp/metadata.rb +0 -0
- data/lib/assimp/postprocess.rb +0 -0
- data/lib/assimp/quaternion.rb +0 -0
- data/lib/assimp/scene.rb +0 -0
- data/lib/assimp/texture.rb +0 -0
- data/lib/assimp/types.rb +41 -17
- data/lib/assimp/vector2.rb +0 -0
- data/lib/assimp/vector3.rb +0 -0
- data/lib/assimp/version.rb +0 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e29eac84b0143ea1a2d99d06f28fe44e26d822cca173572cc067088e1ec7c74c
|
4
|
+
data.tar.gz: 353ebafacb488b5614557559af6c5d752ca22b46fd28a51179b9be555b2ef528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 792c1266fbe056e30db9fcc38169e92da4df02bbd573fb4e51159f4082398edaab6e44f11e076186c6078b15dfd1ad7ee804c814f93fe02ff0bc1968a5538678
|
7
|
+
data.tar.gz: 00550ed5077d97bb8876fc3019f9e94dc4ede996ceeea40a1b5889afdbc66950540cf83604e4970fcdb6d5c88310b16faa12a836ad05c2e8a6df299c1173caed
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/lib/assimp-ffi.rb
CHANGED
File without changes
|
data/lib/assimp/anim.rb
CHANGED
File without changes
|
data/lib/assimp/base.rb
CHANGED
File without changes
|
data/lib/assimp/camera.rb
CHANGED
File without changes
|
data/lib/assimp/color4.rb
CHANGED
File without changes
|
data/lib/assimp/config.rb
CHANGED
File without changes
|
data/lib/assimp/defs.rb
CHANGED
data/lib/assimp/export.rb
CHANGED
File without changes
|
data/lib/assimp/fileio.rb
CHANGED
File without changes
|
data/lib/assimp/import.rb
CHANGED
File without changes
|
data/lib/assimp/importerdesc.rb
CHANGED
File without changes
|
data/lib/assimp/light.rb
CHANGED
File without changes
|
data/lib/assimp/material.rb
CHANGED
File without changes
|
data/lib/assimp/matrix3x3.rb
CHANGED
File without changes
|
data/lib/assimp/matrix4x4.rb
CHANGED
File without changes
|
data/lib/assimp/mesh.rb
CHANGED
File without changes
|
data/lib/assimp/metadata.rb
CHANGED
File without changes
|
data/lib/assimp/postprocess.rb
CHANGED
File without changes
|
data/lib/assimp/quaternion.rb
CHANGED
File without changes
|
data/lib/assimp/scene.rb
CHANGED
File without changes
|
data/lib/assimp/texture.rb
CHANGED
File without changes
|
data/lib/assimp/types.rb
CHANGED
@@ -35,28 +35,52 @@ module Assimp
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
if version >= Version::new(5,0,0)
|
39
|
+
class String #< FFI::Struct
|
40
|
+
extend StructAccessors
|
41
|
+
MAXLEN = 1024
|
42
|
+
layout :length, :ai_uint32,
|
43
|
+
:data, [:char, MAXLEN]
|
44
|
+
struct_attr_reader :length
|
44
45
|
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
def data
|
47
|
+
(pointer + 4).read_string(length)
|
48
|
+
end
|
48
49
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
def data=(str)
|
51
|
+
sz = str.bytesize
|
52
|
+
raise "String too long #{sz} > #{MAXLEN-1}!" if sz > MAXLEN-1
|
53
|
+
self[:length] = sz
|
54
|
+
(pointer + 4).write_string(str+"\x00")
|
55
|
+
end
|
55
56
|
|
56
|
-
|
57
|
-
|
57
|
+
def to_s
|
58
|
+
data
|
59
|
+
end
|
58
60
|
end
|
61
|
+
else
|
62
|
+
class String #< FFI::Struct
|
63
|
+
extend StructAccessors
|
64
|
+
MAXLEN = 1024
|
65
|
+
layout :length, :size_t,
|
66
|
+
:data, [:char, MAXLEN]
|
67
|
+
struct_attr_reader :length
|
59
68
|
|
69
|
+
def data
|
70
|
+
(pointer + Assimp.find_type(:size_t).size).read_string(length)
|
71
|
+
end
|
72
|
+
|
73
|
+
def data=(str)
|
74
|
+
sz = str.bytesize
|
75
|
+
raise "String too long #{sz} > #{MAXLEN-1}!" if sz > MAXLEN-1
|
76
|
+
self[:length] = sz
|
77
|
+
(pointer + Assimp.find_type(:size_t).size).write_string(str+"\x00")
|
78
|
+
end
|
79
|
+
|
80
|
+
def to_s
|
81
|
+
data
|
82
|
+
end
|
83
|
+
end
|
60
84
|
end
|
61
85
|
|
62
86
|
Return = enum( :return, [ :SUCCESS, :FAILURE, -1, :OUTOFMEMORY, -3 ] )
|
data/lib/assimp/vector2.rb
CHANGED
File without changes
|
data/lib/assimp/vector3.rb
CHANGED
File without changes
|
data/lib/assimp/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assimp-ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice Videau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 1.9.19
|
33
33
|
description: FFI bindings of Assimp (Open Asset Import Library bindings) for version
|
34
34
|
4.1.0 onward
|
35
|
-
email: brice.videau@
|
35
|
+
email: brice.videau@gmail.com
|
36
36
|
executables: []
|
37
37
|
extensions: []
|
38
38
|
extra_rdoc_files: []
|
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
87
|
-
rubygems_version: 2.7.6
|
86
|
+
rubygems_version: 3.1.2
|
88
87
|
signing_key:
|
89
88
|
specification_version: 4
|
90
89
|
summary: Open Asset Import Library bindings
|