Added debug renderer + imgui renderer

All code made by gemini with some help
This commit is contained in:
2026-01-20 22:46:10 -05:00
parent 0687ce5af1
commit 891c404889
31 changed files with 2023 additions and 237 deletions

View File

@@ -22,6 +22,20 @@ class JulietApplication : public Juliet::IApplication
void Update() override;
bool IsRunning() override;
Juliet::Window* GetPlatformWindow() override { return MainWindow; }
Juliet::GraphicsDevice* GetGraphicsDevice() override { return GraphicsDevice; }
// Render Lifecycle
void OnPreRender(Juliet::CommandList* cmd) override;
void OnRender(Juliet::RenderPass* pass, Juliet::CommandList* cmd) override;
Juliet::ColorTargetInfo GetColorTargetInfo(Juliet::Texture* swapchainTexture) override;
Juliet::DepthStencilTargetInfo* GetDepthTargetInfo() override;
Juliet::Camera GetDebugCamera() override;
public:
void SetAutoCloseFrameCount(int count) { AutoCloseFrameCount = count; }
int GetAutoCloseFrameCount() const { return AutoCloseFrameCount; }
private:
Juliet::Window* MainWindow = {};
Juliet::GraphicsDevice* GraphicsDevice = {};
@@ -32,6 +46,7 @@ class JulietApplication : public Juliet::IApplication
Juliet::Texture* DepthBuffer = {};
bool Running = false;
int AutoCloseFrameCount = -1;
};
JulietApplication& GetEditorApplication();