23 lines
469 B
C++
23 lines
469 B
C++
|
struct Window_Data {
|
||
|
// Real width and height of the window
|
||
|
i32 width;
|
||
|
i32 height;
|
||
|
bool size_just_changed;
|
||
|
|
||
|
f32 desired_aspect_ratio;
|
||
|
};
|
||
|
|
||
|
struct App_State {
|
||
|
Window_Data win_data;
|
||
|
User_Input user_input;
|
||
|
};
|
||
|
|
||
|
internal void update_and_render(Arena *arena, App_State &app, f32 delta_time)
|
||
|
{
|
||
|
ImGui::SetNextWindowPos({ 0, 0 });
|
||
|
ImGui::SetNextWindowSize({ (f32)app.win_data.width, (f32)app.win_data.height });
|
||
|
if (ImGui::Begin("test")) {
|
||
|
ImGui::End();
|
||
|
}
|
||
|
}
|