Game rendering now.

This commit is contained in:
2022-10-18 15:58:21 -07:00
parent 6f10535962
commit 8698ef318b
3 changed files with 30 additions and 14 deletions

View File

@ -15,17 +15,16 @@ RenderManager::RenderManager(std::weak_ptr<DawnGame> game) {
void RenderManager::init() {
glClearColor(
0.39215686274f,
0.39215686274f,
0.58431372549f,
0.9294117647f,
1.0f
);
glViewport(0, 0, 500, 500);
glViewport(0, 0, 1280, 720);
}
void RenderManager::update() {
printf("Rendering\n");
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}