From 30151d75dddd651faa1b27148a052ced7d0f190a Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 10 Mar 2026 05:18:33 +0100 Subject: 2d batch rendering --- src/game.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index a0452db..092da55 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -58,6 +58,7 @@ GAME_DATA* game_init( GL_DATA* gl ) { } void game_create_batches( GAME_DATA *game ) { + game->render.batch_2d = gl_batch_create( game->gl, game->shaders.gl2d, &gl_2d_batch_setup ); game->render.batch_3d = gl_batch_create( game->gl, game->shaders.gl3d, &gl_3d_batch_setup ); } @@ -222,5 +223,7 @@ void game_on_tick( GAME_DATA* game ) { _profiled } void game_destroy( GAME_DATA *game ) { + gl_batch_destroy( game->render.batch_2d ); + gl_batch_destroy( game->render.batch_3d ); free( game ); } -- cgit v1.2.3