[orx-camera] add defaults() to Camera2D and OrbitalCamera.

Add DemoCamera2DManual01.kt
This commit is contained in:
Abe Pazos
2025-08-08 12:50:18 +02:00
parent 7b101297c8
commit d9e50d46de
6 changed files with 111 additions and 18 deletions

View File

@@ -21,8 +21,8 @@ fun main() = application {
colorBuffer()
depthBuffer()
}
// Create camera and apply an initial transformation
// so the origin is no longer in the top left corner.
// Create a camera and apply an initial transformation
// so the origin is no longer in the top-left corner.
val cam = Camera2D()
cam.view *= transform {
translate(width * 0.5, height * 1.0)