From e93cb094b5cc95b636e2fcac31fcfe328ebc650d Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Sat, 17 May 2025 01:33:50 +0200 Subject: Move the GL init inside the engine --- src/main/engine/engine.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/engine/engine.c') 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(); } -- cgit v1.2.3