mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
remove Viewport class
This commit is contained in:
parent
105561ad77
commit
9843a1fc27
17 changed files with 60 additions and 115 deletions
|
|
@ -211,7 +211,7 @@ void Engine::updateFrontend() {
|
|||
double delta = time.getDelta();
|
||||
updateHotkeys();
|
||||
audio::update(delta);
|
||||
gui->act(delta, Viewport(window->getSize()));
|
||||
gui->act(delta, window->getSize());
|
||||
screen->update(delta);
|
||||
gui->postAct();
|
||||
}
|
||||
|
|
@ -229,7 +229,6 @@ void Engine::nextFrame() {
|
|||
void Engine::renderFrame() {
|
||||
screen->draw(time.getDelta());
|
||||
|
||||
Viewport viewport(window->getSize());
|
||||
DrawContext ctx(nullptr, *window, nullptr);
|
||||
gui->draw(ctx, *assets);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue