Class: Assimp::RawScene::View
- Inherits:
-
Object
- Object
- Assimp::RawScene::View
- Defined in:
- lib/assimp/raw_scene.rb
Instance Attribute Summary collapse
-
#native_type ⇒ Object
readonly
Returns the value of attribute native_type.
Instance Method Summary collapse
- #[](field) ⇒ Object
-
#initialize(owner, native_type, pointer) ⇒ View
constructor
A new instance of View.
- #inspect ⇒ Object
- #to_ptr ⇒ Object
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_type ⇒ Object (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 |
#inspect ⇒ Object
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_ptr ⇒ Object
18 19 20 21 |
# File 'lib/assimp/raw_scene.rb', line 18 def to_ptr ensure_valid! @pointer end |