-
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.
Allocation of some modules into separate projects
- Loading branch information
1 parent
da6637d
commit 5bc21f2
Showing
16 changed files
with
205 additions
and
48 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
Hypercube.Client/Graphics/Realisation/OpenGL/Rendering/Renderer.Render.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
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,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="ImGui.NET" Version="1.91.0.1" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Hypercube.Math\Hypercube.Math.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
5 changes: 4 additions & 1 deletion
5
Hypercube.Client/Graphics/Shaders/IShader.cs → Hypercube.Graphics/Shaders/IShader.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
4 changes: 3 additions & 1 deletion
4
...Client/Graphics/Shaders/IShaderProgram.cs → Hypercube.Graphics/Shaders/IShaderProgram.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
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,47 @@ | ||
using ImGuiNET; | ||
using JetBrains.Annotations; | ||
|
||
namespace Hypercube.ImGui; | ||
|
||
[PublicAPI] | ||
public class GlfwImGuiController : IDisposable | ||
{ | ||
private readonly nint _window; | ||
|
||
private readonly bool[] _mousePressed; | ||
private readonly nint[] _mouseCursors; | ||
|
||
private ImGuiIOPtr _io; | ||
|
||
public GlfwImGuiController(nint window) | ||
{ | ||
_window = window; | ||
_mousePressed = new bool[(int) ImGuiMouseButton.COUNT]; | ||
_mouseCursors = new nint[(int) ImGuiMouseCursor.COUNT]; | ||
|
||
ImGuiNET.ImGui.CreateContext(); | ||
ImGuiNET.ImGui.StyleColorsDark(); | ||
|
||
InitializeIo(); | ||
InitializeGlfw(); | ||
} | ||
|
||
public void InitializeIo() | ||
{ | ||
_io = ImGuiNET.ImGui.GetIO(); | ||
|
||
_io.BackendFlags |= ImGuiBackendFlags.HasMouseCursors; | ||
_io.BackendFlags |= ImGuiBackendFlags.HasSetMousePos; | ||
_io.BackendFlags |= ImGuiBackendFlags.RendererHasVtxOffset; | ||
} | ||
|
||
public void InitializeGlfw() | ||
{ | ||
|
||
} | ||
|
||
public void Dispose() | ||
{ | ||
|
||
} | ||
} |
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,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="ImGui.NET" Version="1.91.0.1" /> | ||
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Hypercube.OpenGL\Hypercube.OpenGL.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" /> | ||
<PackageReference Include="OpenToolkit.Core" Version="4.0.0-pre9.3" /> | ||
<PackageReference Include="OpenToolkit.Graphics" Version="4.0.0-pre9.3" /> | ||
<PackageReference Include="OpenToolkit.Input" Version="4.0.0-pre9.3" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Hypercube.Graphics\Hypercube.Graphics.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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
8 changes: 5 additions & 3 deletions
8
...hics/Realisation/OpenGL/Shaders/Shader.cs → Hypercube.OpenGL/Shaders/Shader.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
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.