updated project structure
This commit is contained in:
@ -13,7 +13,7 @@ internal class GuiController : IDisposable
|
||||
{
|
||||
public event Action OnGui;
|
||||
|
||||
private readonly string shaderContentPath = Path.Combine(System.AppContext.BaseDirectory, "Assets", "Shaders");
|
||||
private readonly string shaderContentPath = Path.Combine(System.AppContext.BaseDirectory, "Content", "Shaders");
|
||||
|
||||
private readonly GraphicsDevice graphicsDevice;
|
||||
private readonly Window mainWindow;
|
||||
@ -175,7 +175,7 @@ internal class GuiController : IDisposable
|
||||
io.DeltaTime = deltaSeconds; // DeltaTime is in seconds.
|
||||
}
|
||||
|
||||
private static void UpdateInput()
|
||||
private void UpdateInput()
|
||||
{
|
||||
ImGuiIOPtr io = ImGui.GetIO();
|
||||
|
||||
@ -240,7 +240,7 @@ internal class GuiController : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
private static void UpdateCursor()
|
||||
private void UpdateCursor()
|
||||
{
|
||||
ImGuiIOPtr io = ImGui.GetIO();
|
||||
|
||||
@ -500,6 +500,7 @@ internal class GuiController : IDisposable
|
||||
commandBuffer.EndRenderPass(renderPass);
|
||||
}
|
||||
|
||||
#region Resources
|
||||
private unsafe void BuildFontAtlas()
|
||||
{
|
||||
ResourceUploader resourceUploader = new ResourceUploader(graphicsDevice);
|
||||
@ -528,6 +529,7 @@ internal class GuiController : IDisposable
|
||||
textureStorage.Add(fontTexture); // <-- The fontTexture seems to get lost after some time (CG?).
|
||||
this.fontTexture = fontTexture; // <-- So we also keep a reference to make sure it doesn't happen.
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Window
|
||||
private void CreateWindow(ImGuiViewportPtr vp)
|
||||
|
Binary file not shown.
Binary file not shown.
@ -9,15 +9,12 @@
|
||||
<Compile Include="Libraries\RefreshCS\RefreshCS.cs" />
|
||||
<Compile Include="Libraries\FAudio\csharp\FAudio.cs" />
|
||||
<Compile Include="Libraries\WellspringCS\WellspringCS.cs" />
|
||||
<Compile Include="Libraries\dav1dfile\csharp\dav1dfile.cs" />
|
||||
<Compile Include="Libraries\dav1dfile\csharp\dav1dfile.cs" />
|
||||
<Compile Include="Libraries\ImGui.NET\src\ImGui.NET\**\*.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="Libraries\ImGui.NET\src\ImGui.NET\ImGui.NET.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="Assets\**\*.*">
|
||||
<Content Include="Content\**\*.*">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
Reference in New Issue
Block a user