class Nya::Engine

Overview

An engine class

Defined in:

nya/engine.cr

Constant Summary

FIBER_NAME = "Nya Engine"

Main engine fiber name

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(title, w, h) #

[View source]

Class Method Detail

def self.instance #

[View source]

Instance Method Detail

def backend : Render::Backend | Nil #

def backend=(backend : Render::Backend | Nil) #

[View source]
def backend? : Render::Backend | Nil | Nil #

def camera_list : Array(Nya::Render::Camera) #

[View source]
def camera_list=(camera_list : Array(Nya::Render::Camera)) #

[View source]
def frame! #

Update engine state.

Run this in a loop


[View source]