From 88ab79e436aec6ede0fca4949570f534ffb1b853 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 9 Mar 2024 09:29:52 -0800 Subject: Rename RenderBackend -> GfxCore. --- game/src/game.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'game/src/game.c') diff --git a/game/src/game.c b/game/src/game.c index bc85691..425119f 100644 --- a/game/src/game.c +++ b/game/src/game.c @@ -11,8 +11,8 @@ #include "plugins/plugin.h" #include +#include #include -#include #include #include #include @@ -204,18 +204,18 @@ void app_update(Game* game, double t, double dt) { } void app_render(const Game* game) { - RenderBackend* render_backend = gfx_get_render_backend(game->gfx); - gfx_start_frame(render_backend); + GfxCore* gfxcore = gfx_get_core(game->gfx); + gfx_start_frame(gfxcore); render_plugin(game); - gfx_end_frame(render_backend); + gfx_end_frame(gfxcore); } void app_resize(Game* game, int width, int height) { game->width = width; game->height = height; - RenderBackend* render_backend = gfx_get_render_backend(game->gfx); - gfx_set_viewport(render_backend, width, height); + GfxCore* gfxcore = gfx_get_core(game->gfx); + gfx_set_viewport(gfxcore, width, height); resize_plugin(game, width, height); } -- cgit v1.2.3