class Nya::Render::Camera

Overview

Camera component

Defined in:

nya/render/camera.cr

Constant Summary

NYA_REGISTERED = true

Camera component

PROPERTIES = {"depth" => "Float64", "near" => "Float64", "far" => "Float64", "angle_of_view" => "Float64", "viewport" => "Rect"} of String => String

Camera component

Class Method Summary

Instance Method Summary

Instance methods inherited from class Nya::Component

log log, metadata metadata, metadata=(metadata : Nya::Render::Backend::Metadata | Nil) metadata=, metadata? : Nya::Render::Backend::Metadata? metadata?, parent parent, parent=(parent : Nil | Nya::GameObject) parent=, parent? : Nya::GameObject? parent?

Class methods inherited from class Nya::Component

deserialize(xml, ctx : SerializationContext | Nil = nil) deserialize, transform_name(name) transform_name, xml_name xml_name

Instance methods inherited from class Nya::Object

ancestor_or_same?(u : U.class) forall U ancestor_or_same?, awake awake, backend backend, enabled : Bool enabled, enabled=(enabled : Bool) enabled=, enabled? : Bool enabled?, engine engine, id : String? id, id=(id : Nil | String) id=, matches_tag?(tag) matches_tag?, render(tag : String | Nil = nil) render, tag : String? tag, tag=(tag : Nil | String) tag=, update update

Class methods inherited from class Nya::Object

deserialize(xml, ctx : SerializationContext | Nil = nil) deserialize, transform_name(name) transform_name, xml_name xml_name

Class Method Detail

def self.deserialize(xml, ctx : SerializationContext | Nil = nil) #

Camera component


[View source]
def self.transform_name(name) #

Camera component


def self.xml_name #

Returns XML compatible name of a type (see Nya::Serializable.translate_type)


Instance Method Detail

def angle_of_view : Float64 #

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

[View source]
def awake #
Description copied from class Nya::Object

Post-initializes this object

Override this method to implement custom post-initialization behaviour Remember to call super when necessary (for example, before custom logic)


[View source]
def depth : Float64 #

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

[View source]
def far : Float64 #

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

[View source]
def near : Float64 #

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

[View source]
def render! #

[View source]
def update #

[View source]
def viewport : Nya::Render::Rect #

[View source]
def viewport=(viewport : Nya::Render::Rect) #

[View source]