class Nya::SceneManager

Defined in:

nya/scene_manager.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.current_scene #

Returns current scene object. Raises an exception if current scene is nil


[View source]
def self.current_scene=(s : Nil | Nya::Scene) #

Sets the current scene


[View source]
def self.current_scene? #

[View source]
def self.load_from_file(filename : String) #

Loads current scene from file


[View source]
def self.render(tag) #

[View source]
def self.update #

Updates current scene


[View source]

Instance Method Detail

def render(tag : String | Nil = nil) #

Renders current scene with tag (Tag is used for selective rendering)


[View source]