Fixed time.

This commit is contained in:
2025-08-22 22:42:38 -05:00
parent 1fb9485ee8
commit 995bbe1acd
9 changed files with 68 additions and 63 deletions

View File

@@ -10,6 +10,8 @@
#include "display/renderer.h"
#include "ecs/ecssystem.h"
#include "display/mesh/quad.h"
display_t DISPLAY;
errorret_t displayInit(void) {
@@ -55,7 +57,8 @@ errorret_t displayInit(void) {
glEnableClientState(GL_VERTEX_ARRAY);
#endif
// For now, we just return an OK error.
quadInit();
errorOk();
}
@@ -73,9 +76,9 @@ errorret_t displayUpdate(void) {
}
}
// Set viewport size.
// TODO: move to framebuffer component
int32_t windowWidth, windowHeight;
// SDL_GetWindowSize(DISPLAY.window, &windowWidth, &windowHeight);
SDL_GetWindowSize(DISPLAY.window, &windowWidth, &windowHeight);
glViewport(0, 0, windowWidth, windowHeight);
#endif