Renamed World to World3D

- Renamed World3D's Camera to InitCamera
This commit is contained in:
Tony Bark 2025-03-21 00:43:27 -04:00
parent f1141d836c
commit b8cd12302e
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ void Init(int screenWidth, int screenHeight, int fps)
var up = new Vector3(0.0f, 1.0f, 0.0f);
InitWindow(screenWidth, screenHeight, $"PlayBark");
World.Camera(pos, target, up, CameraProjection.Perspective);
World3D.InitCamera(pos, target, up, CameraProjection.Perspective);
SetTargetFPS(fps);
}

View file

@ -1,9 +1,9 @@
// I hereby waive this project under the public domain - see UNLICENSE for details.
namespace PlayBark;
internal static class World
internal static class World3D
{
public static Camera3D Camera(Vector3 pos, Vector3 target, Vector3 up, CameraProjection projection)
public static Camera3D InitCamera(Vector3 pos, Vector3 target, Vector3 up, CameraProjection projection)
{
Camera3D camera = new();
camera.Position = pos;