Lumenarium/src_v2/editor/lumenarium_editor_renderer.cpp

17 lines
493 B
C++
Raw Normal View History

2022-03-22 18:13:06 +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;
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
}