diff options
author | 3gg <3gg@shellblade.net> | 2024-03-09 09:29:52 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-03-09 09:29:52 -0800 |
commit | 88ab79e436aec6ede0fca4949570f534ffb1b853 (patch) | |
tree | 4b362ac106f8cc7aa49013cad9d288aba6b1d4d2 /game/src/game.c | |
parent | f9e38bf24e1874d773083d06ca443cce9bd92d56 (diff) |
Rename RenderBackend -> GfxCore.
Diffstat (limited to 'game/src/game.c')
-rw-r--r-- | game/src/game.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 @@ | |||
11 | #include "plugins/plugin.h" | 11 | #include "plugins/plugin.h" |
12 | 12 | ||
13 | #include <gfx/app.h> | 13 | #include <gfx/app.h> |
14 | #include <gfx/core.h> | ||
14 | #include <gfx/gfx.h> | 15 | #include <gfx/gfx.h> |
15 | #include <gfx/render_backend.h> | ||
16 | #include <gfx/renderer.h> | 16 | #include <gfx/renderer.h> |
17 | #include <gfx/scene/camera.h> | 17 | #include <gfx/scene/camera.h> |
18 | #include <gfx/scene/node.h> | 18 | #include <gfx/scene/node.h> |
@@ -204,18 +204,18 @@ void app_update(Game* game, double t, double dt) { | |||
204 | } | 204 | } |
205 | 205 | ||
206 | void app_render(const Game* game) { | 206 | void app_render(const Game* game) { |
207 | RenderBackend* render_backend = gfx_get_render_backend(game->gfx); | 207 | GfxCore* gfxcore = gfx_get_core(game->gfx); |
208 | gfx_start_frame(render_backend); | 208 | gfx_start_frame(gfxcore); |
209 | render_plugin(game); | 209 | render_plugin(game); |
210 | gfx_end_frame(render_backend); | 210 | gfx_end_frame(gfxcore); |
211 | } | 211 | } |
212 | 212 | ||
213 | void app_resize(Game* game, int width, int height) { | 213 | void app_resize(Game* game, int width, int height) { |
214 | game->width = width; | 214 | game->width = width; |
215 | game->height = height; | 215 | game->height = height; |
216 | 216 | ||
217 | RenderBackend* render_backend = gfx_get_render_backend(game->gfx); | 217 | GfxCore* gfxcore = gfx_get_core(game->gfx); |
218 | gfx_set_viewport(render_backend, width, height); | 218 | gfx_set_viewport(gfxcore, width, height); |
219 | 219 | ||
220 | resize_plugin(game, width, height); | 220 | resize_plugin(game, width, height); |
221 | } | 221 | } |