2022-03-22 18:13:06 +00:00
|
|
|
|
2022-03-27 10:47:18 +00:00
|
|
|
|
|
|
|
internal void
|
|
|
|
edr_render(App_State* state)
|
|
|
|
{
|
|
|
|
Platform_Graphics_Frame_Desc desc = {};
|
|
|
|
desc.clear_color = { 0.1f, 0.1f, 0.1f, 1 };
|
|
|
|
desc.viewport_min = { 0, 0 };
|
2022-03-29 16:09:50 +00:00
|
|
|
desc.viewport_max = state->editor->window_dim;
|
2022-03-27 10:47:18 +00:00
|
|
|
platform_frame_begin(desc);
|
|
|
|
platform_frame_clear();
|
2022-03-22 18:13:06 +00:00
|
|
|
|
2022-03-29 16:09:50 +00:00
|
|
|
platform_geometry_bind(state->editor->renderer.geo);
|
|
|
|
platform_texture_bind(state->editor->renderer.tex);
|
|
|
|
platform_shader_bind(state->editor->renderer.shd);
|
|
|
|
platform_geometry_draw(state->editor->renderer.geo);
|
2022-03-22 18:13:06 +00:00
|
|
|
}
|