abstract class App

Overview

A Bismuth application.

Defined in:

bismuth.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, width : UInt16 = 800, height : UInt16 = 600, fullscreen = false, desired_fps : UInt32 = 60_u32) #

[View source]

Instance Method Detail

def desired_fps(fps : UInt32) #

[View source]
def desired_fps : UInt32 #

[View source]
def device : WGPU::Device #

[View source]
abstract def render(window : Window) #

Called at intervals designated by the configured frame rate. This is used to render the scene for each of the app's windows.


[View source]
def run #

[View source]
abstract def startup #

Called when the main loop is starting up. Use this to set things up.


[View source]
abstract def tick(tick : Tick) #

Called at each iteration of the main loop. This is when application state should be updated.


[View source]