diff options
author | 2025-05-17 01:33:50 +0200 | |
---|---|---|
committer | 2025-05-17 01:33:50 +0200 | |
commit | e93cb094b5cc95b636e2fcac31fcfe328ebc650d (patch) | |
tree | 49b69a29d59da56629d98237d648086dc02a2765 /src/main/engine/engine.c | |
parent | 87cde6f952917522a1c13524354ac52f2bcb0fbe (diff) | |
download | tris-e93cb094b5cc95b636e2fcac31fcfe328ebc650d.tar.gz tris-e93cb094b5cc95b636e2fcac31fcfe328ebc650d.zip |
Move the GL init inside the engine
Diffstat (limited to 'src/main/engine/engine.c')
-rw-r--r-- | src/main/engine/engine.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/engine/engine.c b/src/main/engine/engine.c index 7752095..e45909a 100644 --- a/src/main/engine/engine.c +++ b/src/main/engine/engine.c @@ -77,6 +77,12 @@ engine_calculate_fps() static void draw_frames() { + glClearColor(0.0f, 0.0f, 0.2f, 1.0f); + glClear(GL_COLOR_BUFFER_BIT); + glEnable(GL_LINE_SMOOTH); + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + engine.draw_frame(); engine_calculate_fps(); } |