mirror of https://github.com/auygun/kaliber.git
Reformat
This commit is contained in:
parent
874fec434a
commit
849599afd8
|
@ -146,16 +146,16 @@ void ImguiBackend::Draw() {
|
||||||
if (!draw_data || draw_data->CmdListsCount <= 0)
|
if (!draw_data || draw_data->CmdListsCount <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
renderer_->SetViewport(0, 0, draw_data->DisplaySize.x, draw_data->DisplaySize.y);
|
renderer_->SetViewport(0, 0, draw_data->DisplaySize.x,
|
||||||
|
draw_data->DisplaySize.y);
|
||||||
|
|
||||||
base::Matrix4f ortho_projection;
|
base::Matrix4f proj;
|
||||||
ortho_projection.CreateOrthoProjection(
|
proj.CreateOrthoProjection(draw_data->DisplayPos.x,
|
||||||
draw_data->DisplayPos.x,
|
|
||||||
draw_data->DisplayPos.x + draw_data->DisplaySize.x,
|
draw_data->DisplayPos.x + draw_data->DisplaySize.x,
|
||||||
draw_data->DisplayPos.y + draw_data->DisplaySize.y,
|
draw_data->DisplayPos.y + draw_data->DisplaySize.y,
|
||||||
draw_data->DisplayPos.y);
|
draw_data->DisplayPos.y);
|
||||||
shader_->Activate();
|
shader_->Activate();
|
||||||
shader_->SetUniform("projection", ortho_projection);
|
shader_->SetUniform("projection", proj);
|
||||||
shader_->UploadUniforms();
|
shader_->UploadUniforms();
|
||||||
|
|
||||||
for (int n = 0; n < draw_data->CmdListsCount; n++) {
|
for (int n = 0; n < draw_data->CmdListsCount; n++) {
|
||||||
|
|
Loading…
Reference in New Issue