-
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.
Removed GraphicsApi & fixed shaders work
- Loading branch information
1 parent
cd9b42b
commit 4c75aa0
Showing
92 changed files
with
738 additions
and
21,038 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Hypercube.Core.Execution.Timing; | ||
|
||
public interface ITiming | ||
{ | ||
uint Frame { get; } | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Hypercube.Core.Execution.Timing; | ||
|
||
public class Timing : ITiming | ||
{ | ||
public uint Frame { get; private set; } | ||
} |
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
17 changes: 17 additions & 0 deletions
17
src/Hypercube.Core/Utilities/Helpers/RenderingApiSettingsHelper.cs
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Hypercube.Graphics.Rendering.Api; | ||
|
||
namespace Hypercube.Core.Utilities.Helpers; | ||
|
||
public static class RenderingApiSettingsHelper | ||
{ | ||
public static RenderingApiSettings FromConfig() | ||
{ | ||
return new RenderingApiSettings | ||
{ | ||
Api = Config.Rendering, | ||
ClearColor = Config.RenderingClearColor, | ||
MaxVertices = Config.RenderingMaxVertices, | ||
IndicesPerVertex = Config.RenderingIndicesPerVertex | ||
}; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Hypercube.Core/Utilities/Helpers/WindowingApiSettingsHelper.cs
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Hypercube.Graphics.Windowing.Api; | ||
|
||
namespace Hypercube.Core.Utilities.Helpers; | ||
|
||
public static class WindowingApiSettingsHelper | ||
{ | ||
public static WindowingApiSettings FromConfig() | ||
{ | ||
return new WindowingApiSettings | ||
{ | ||
Api = Config.Windowing, | ||
WaitEventsTimeout = Config.WindowingWaitEventsTimeout, | ||
EventBridgeBufferSize = Config.WindowingThreadEventBridgeBufferSize | ||
}; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Hypercube.Core/Utilities/Helpers/WindowingThreadSettingsHelper.cs
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Hypercube.Graphics.Rendering; | ||
|
||
namespace Hypercube.Core.Utilities.Helpers; | ||
|
||
public static class WindowingThreadSettingsHelper | ||
{ | ||
public static WindowingThreadSettings? FromConfig() | ||
{ | ||
return Config.WindowingThreading ? new WindowingThreadSettings | ||
{ | ||
Name = Config.WindowingThreadName, | ||
StackSize = Config.WindowingThreadStackSize, | ||
Priority = Config.WindowingThreadPriority, | ||
} : null; | ||
} | ||
} |
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,8 +1,8 @@ | ||
using Hypercube.Graphics.Rendering; | ||
using Hypercube.Graphics.Rendering.Context; | ||
|
||
namespace Hypercube.Graphics.Patching; | ||
|
||
public interface IPatch | ||
{ | ||
void Draw(IRenderer renderer); | ||
void Draw(IRenderContext renderer); | ||
} |
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,8 +1,8 @@ | ||
using Hypercube.Graphics.Rendering; | ||
using Hypercube.Graphics.Rendering.Context; | ||
|
||
namespace Hypercube.Graphics.Patching; | ||
|
||
public abstract class Patch : IPatch | ||
{ | ||
public abstract void Draw(IRenderer renderer); | ||
public abstract void Draw(IRenderContext renderer); | ||
} |
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.