-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started camera projection implemetation
- Loading branch information
1 parent
b3eb798
commit 735f943
Showing
22 changed files
with
378 additions
and
117 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
namespace Hypercube.Client.Graphics.Shading; | ||
using Hypercube.Shared.Math.Matrix; | ||
|
||
namespace Hypercube.Client.Graphics.Shading; | ||
|
||
public interface IShader | ||
{ | ||
void Use(); | ||
int GetUniformLocation(string name); | ||
void SetUniform(string name, int value); | ||
void SetUniform(string name, Matrix4X4 value, bool transpose = false); | ||
void SetUniform(int index, Matrix4X4 value, bool transpose = false); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
namespace Hypercube.Client.Graphics.Viewports; | ||
using Hypercube.Shared.Math.Matrix; | ||
using Hypercube.Shared.Math.Vector; | ||
|
||
namespace Hypercube.Client.Graphics.Viewports; | ||
|
||
public interface ICamera | ||
{ | ||
|
||
Matrix4X4 Projection { get; } | ||
Vector3 Position { get; } | ||
void SetPosition(Vector3 position); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
namespace Hypercube.Client.Graphics.Viewports; | ||
using Hypercube.Shared.Math.Matrix; | ||
using Hypercube.Shared.Math.Vector; | ||
|
||
namespace Hypercube.Client.Graphics.Viewports; | ||
|
||
public interface ICameraManager | ||
{ | ||
|
||
ICamera? MainCamera { get; } | ||
Matrix4X4 Projection { get; } | ||
void SetMainCamera(ICamera camera); | ||
ICamera CreateCamera2D(Vector2Int size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.