Remove redundant namespaces from enums (#178)

This commit is contained in:
vent 2024-12-23 20:27:02 +00:00 committed by GitHub
parent 0dcee846f4
commit 845af357e4
Failed to generate hash of commit
15 changed files with 620 additions and 620 deletions

View file

@ -20,7 +20,7 @@ pub fn main() anyerror!void {
.target = rl.Vector3.init(0, 0, 0),
.up = rl.Vector3.init(0, 1, 0),
.fovy = 45,
.projection = rl.CameraProjection.camera_perspective,
.projection = .perspective,
};
const cubePosition = rl.Vector3.init(0, 0, 0);
@ -33,9 +33,9 @@ pub fn main() anyerror!void {
while (!rl.windowShouldClose()) { // Detect window close button or ESC key
// Update
//-----------------------------------------------------------------------------
camera.update(rl.CameraMode.camera_free);
camera.update(.free);
if (rl.isKeyPressed(rl.KeyboardKey.key_z)) {
if (rl.isKeyPressed(.z)) {
camera.target = rl.Vector3.init(0, 0, 0);
}
//-----------------------------------------------------------------------------