mirror of
https://github.com/tonytins/playbark.git
synced 2025-04-30 02:21:41 -04:00
Renamed World to World3D
- Renamed World3D's Camera to InitCamera
This commit is contained in:
parent
f1141d836c
commit
b8cd12302e
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
Loading…
Add table
Reference in a new issue