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/plugins/viewer.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'game/src/plugins/viewer.c') diff --git a/game/src/plugins/viewer.c b/game/src/plugins/viewer.c index 5e8d7d3..f621b00 100644 --- a/game/src/plugins/viewer.c +++ b/game/src/plugins/viewer.c @@ -58,14 +58,14 @@ static SceneNode* load_skyquad(Gfx* gfx, SceneNode* root) { assert(gfx); assert(root); - RenderBackend* render_backend = gfx_get_render_backend(gfx); + GfxCore* gfxcore = gfx_get_core(gfx); const Texture* environment_map = load_environment_map(gfx); if (!environment_map) { return 0; } - return gfx_setup_skyquad(render_backend, root, environment_map); + return gfx_setup_skyquad(gfxcore, root, environment_map); } /// Load the 3D scene. @@ -222,17 +222,17 @@ static void render_bounding_boxes(const Game* game, const State* state) { assert(game); assert(state); - RenderBackend* render_backend = gfx_get_render_backend(game->gfx); - ImmRenderer* imm = gfx_get_imm_renderer(game->gfx); - assert(render_backend); + GfxCore* gfxcore = gfx_get_core(game->gfx); + ImmRenderer* imm = gfx_get_imm_renderer(game->gfx); + assert(gfxcore); assert(imm); const mat4 id = mat4_id(); Anima* anima = 0; - gfx_set_blending(render_backend, true); - gfx_set_depth_mask(render_backend, false); - gfx_set_polygon_offset(render_backend, -1.5f, -1.0f); + gfx_set_blending(gfxcore, true); + gfx_set_depth_mask(gfxcore, false); + gfx_set_polygon_offset(gfxcore, -1.5f, -1.0f); gfx_imm_start(imm); gfx_imm_set_camera(imm, gfx_get_camera_camera(state->camera)); @@ -240,9 +240,9 @@ static void render_bounding_boxes(const Game* game, const State* state) { render_bounding_boxes_rec(imm, anima, &id, gfx_get_scene_root(state->scene)); gfx_imm_end(imm); - gfx_reset_polygon_offset(render_backend); - gfx_set_depth_mask(render_backend, true); - gfx_set_blending(render_backend, false); + gfx_reset_polygon_offset(gfxcore); + gfx_set_depth_mask(gfxcore, true); + gfx_set_blending(gfxcore, false); } void render(const Game* game, const State* state) { -- cgit v1.2.3