Class: TinyGLTF::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/tiny_gltf.rb,
ext/tiny_gltf/rb_tiny_gltf_init.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeModel

Returns a new instance of Model


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/tiny_gltf.rb', line 25

def initialize
  @default_scene_index = nil
  @accessors    = []
  @animations   = []
  @buffers      = []
  @buffer_views = []
  @materials    = []
  @meshes       = []
  @nodes        = []
  @textures     = []
  @images       = []
  @skins        = []
  @samplers     = []
  @cameras      = []
  @scenes       = []
  @lights       = []
end

Instance Attribute Details

#accessorsObject (readonly)

Returns the value of attribute accessors


9
10
11
# File 'lib/tiny_gltf.rb', line 9

def accessors
  @accessors
end

#animationsObject (readonly)

Returns the value of attribute animations


10
11
12
# File 'lib/tiny_gltf.rb', line 10

def animations
  @animations
end

#assetObject (readonly)

Returns the value of attribute asset


8
9
10
# File 'lib/tiny_gltf.rb', line 8

def asset
  @asset
end

#buffer_viewsObject (readonly)

Returns the value of attribute buffer_views


12
13
14
# File 'lib/tiny_gltf.rb', line 12

def buffer_views
  @buffer_views
end

#buffersObject (readonly)

Returns the value of attribute buffers


11
12
13
# File 'lib/tiny_gltf.rb', line 11

def buffers
  @buffers
end

#camerasObject (readonly)

Returns the value of attribute cameras


20
21
22
# File 'lib/tiny_gltf.rb', line 20

def cameras
  @cameras
end

#default_scene_indexObject (readonly)

Returns the value of attribute default_scene_index


23
24
25
# File 'lib/tiny_gltf.rb', line 23

def default_scene_index
  @default_scene_index
end

#imagesObject (readonly)

Returns the value of attribute images


17
18
19
# File 'lib/tiny_gltf.rb', line 17

def images
  @images
end

#lightsObject (readonly)

Returns the value of attribute lights


22
23
24
# File 'lib/tiny_gltf.rb', line 22

def lights
  @lights
end

#materialsObject (readonly)

Returns the value of attribute materials


13
14
15
# File 'lib/tiny_gltf.rb', line 13

def materials
  @materials
end

#meshesObject (readonly)

Returns the value of attribute meshes


14
15
16
# File 'lib/tiny_gltf.rb', line 14

def meshes
  @meshes
end

#nodesObject (readonly)

Returns the value of attribute nodes


15
16
17
# File 'lib/tiny_gltf.rb', line 15

def nodes
  @nodes
end

#samplersObject (readonly)

Returns the value of attribute samplers


19
20
21
# File 'lib/tiny_gltf.rb', line 19

def samplers
  @samplers
end

#scenesObject (readonly)

Returns the value of attribute scenes


21
22
23
# File 'lib/tiny_gltf.rb', line 21

def scenes
  @scenes
end

#skinsObject (readonly)

Returns the value of attribute skins


18
19
20
# File 'lib/tiny_gltf.rb', line 18

def skins
  @skins
end

#texturesObject (readonly)

Returns the value of attribute textures


16
17
18
# File 'lib/tiny_gltf.rb', line 16

def textures
  @textures
end