Module: OpenXR::ABI::InitializeWithType
- Included in:
- XrApiLayerProperties, XrEventDataBuffer, XrExtensionProperties, XrInstanceCreateInfo, XrInstanceProperties, XrSessionCreateInfo, XrSystemGetInfo, XrSystemProperties
- Defined in:
- lib/openxr/abi.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/openxr/abi.rb', line 10 def self.included(klass) ## # @param [FFI::AbstractMemory] pointer def initialize(pointer = nil) super(pointer) self.set_type! if pointer.nil? end ## # @return [void] def set_type! self[:base][:type] = self.class.const_get(:TYPE) end end |
Instance Method Details
#initialize(pointer = nil) ⇒ Object
13 14 15 16 |
# File 'lib/openxr/abi.rb', line 13 def initialize(pointer = nil) super(pointer) self.set_type! if pointer.nil? end |
#set_type! ⇒ void
This method returns an undefined value.
20 21 22 |
# File 'lib/openxr/abi.rb', line 20 def set_type! self[:base][:type] = self.class.const_get(:TYPE) end |