Class: CameraData
- Inherits:
-
Struct
- Object
- Struct
- CameraData
- Defined in:
- lib/belts_opengl/components/camera_data.rb
Instance Attribute Summary collapse
-
#projection_type ⇒ Object
Returns the value of attribute projection_type.
Instance Method Summary collapse
Instance Attribute Details
#projection_type ⇒ Object
Returns the value of attribute projection_type
1 2 3 |
# File 'lib/belts_opengl/components/camera_data.rb', line 1 def projection_type @projection_type end |
Instance Method Details
#orthographic? ⇒ Boolean
3 |
# File 'lib/belts_opengl/components/camera_data.rb', line 3 def orthographic? = projection_type == :orthographic |
#perspective? ⇒ Boolean
2 |
# File 'lib/belts_opengl/components/camera_data.rb', line 2 def perspective? = projection_type == :perspective |