Reimplementing DearImGui

This commit is contained in:
2025-03-22 01:04:15 +01:00
parent dfa5d1245f
commit 9a8ab7853a
8 changed files with 768 additions and 4 deletions

View File

@@ -434,6 +434,8 @@ Render_Command_Type :: enum {
SET_DRAW_MODE;
SET_CULL_FACE;
SET_DEPTH_WRITE;
RENDER_IMGUI;
}
MAX_RENDER_TARGETS :: 8;
@@ -1108,6 +1110,12 @@ create_pipeline_state :: (using renderer: *Renderer, vs: Shader_Handle, ps: Shad
return xx pipeline_states.count;
}
push_cmd_render_imgui :: (using renderer: *Renderer) {
command : Render_Command;
command.type = .RENDER_IMGUI;
array_add(*engine.renderer.command_buffer.commands, command);
}
push_cmd_set_pipeline_state :: (using renderer: *Renderer, handle: Pipeline_State_Handle) {
assert(handle > 0);
@@ -1647,7 +1655,6 @@ render :: () {
// #load "ui_system.jai";
// #load "ui.jai";
//}
//ImGui :: #import "ImGui";
#scope_module
#load "dx11_renderer.jai";