Class: Assimp::RawScene::View

Inherits:
Object
  • Object
show all
Defined in:
lib/assimp/raw_scene.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner, native_type, pointer) ⇒ View

Returns a new instance of View.



8
9
10
11
12
# File 'lib/assimp/raw_scene.rb', line 8

def initialize(owner, native_type, pointer)
  @owner = owner
  @native_type = native_type
  @pointer = pointer
end

Instance Attribute Details

#native_typeObject (readonly)

Returns the value of attribute native_type.



6
7
8
# File 'lib/assimp/raw_scene.rb', line 6

def native_type
  @native_type
end

Instance Method Details

#[](field) ⇒ Object



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

def [](field)
  native[field]
end

#inspectObject



23
24
25
26
# File 'lib/assimp/raw_scene.rb', line 23

def inspect
  state = @owner.valid? ? "valid" : "released"
  "#<#{self.class.name} #{@native_type.name} #{state}>"
end

#to_ptrObject



18
19
20
21
# File 'lib/assimp/raw_scene.rb', line 18

def to_ptr
  ensure_valid!
  @pointer
end