class Oid::Components::Camera

Overview

Check to see if the component is a sub-class of ::Entitas::Component

Defined in:

oid/components/stage.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.is_unique? : Bool #

If the component has the unique annotation, set the class method to true The framework will make sure that only one instance of a unique component can be present in your context Will return true if the class is a unique component for a context


Instance Method Detail

def fov : Float64 #

fov_y


[View source]
def fov=(fov : Float64) #

fov_y


def fov? : Bool #

fov_y


[View source]
def is_2d? #

[View source]
def is_3d : Bool #

3d


[View source]
def is_3d=(is_3d : Bool) #

3d


def is_3d? #

3d


[View source]
def is_unique? : Bool #

If the component has the unique annotation, set the class method to true The framework will make sure that only one instance of a unique component can be present in your context Will return true if the class is a unique component for a context


Camera mode


[View source]
def mode=(mode : Oid::Components::Camera::Mode) #

Camera mode


def mode? : Bool #

Camera mode


[View source]
def offset : Oid::Vector3 #

offset


[View source]
def offset=(offset : Oid::Vector3) #

offset


def offset? : Bool #

offset


[View source]
def target : Oid::Vector3 #

target


[View source]
def target=(target : Oid::Vector3) #

target


def target? : Bool #

target


[View source]

Camera type: Perspective or Orthographic


[View source]
def type=(type : Oid::Components::Camera::Type) #

Camera type: Perspective or Orthographic


def type? : Bool #

Camera type: Perspective or Orthographic


[View source]
def zoom : Float64 #

zoom


[View source]
def zoom=(zoom : Float64) #

zoom


def zoom? : Bool #

zoom


[View source]