mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
more complicated viewport resizing logic to make sure viewport offset works
This commit is contained in:
@ -3,13 +3,13 @@ public protocol GameDelegate {
|
||||
func fixedUpdate(_ time: GameTime)
|
||||
func update(_ time: GameTime)
|
||||
func draw(_ renderer: Renderer, _ time: GameTime)
|
||||
func resize(_ size: Size<Int>)
|
||||
func resize(_ frame: Rect<Int>)
|
||||
}
|
||||
|
||||
public extension GameDelegate {
|
||||
func fixedUpdate(_ time: GameTime) {}
|
||||
func update(_ time: GameTime) {}
|
||||
func resize(_ size: Size<Int>) {}
|
||||
func resize(_ frame: Rect<Int>) {}
|
||||
}
|
||||
|
||||
public struct GameTime {
|
||||
|
Reference in New Issue
Block a user