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/plugins/texture_view.c | |
| parent | f9e38bf24e1874d773083d06ca443cce9bd92d56 (diff) | |
Rename RenderBackend -> GfxCore.
Diffstat (limited to 'game/src/plugins/texture_view.c')
| -rw-r--r-- | game/src/plugins/texture_view.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game/src/plugins/texture_view.c b/game/src/plugins/texture_view.c index 52dff57..a8b2a94 100644 --- a/game/src/plugins/texture_view.c +++ b/game/src/plugins/texture_view.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #include "plugin.h" | 1 | #include "plugin.h" |
| 2 | 2 | ||
| 3 | #include <gfx/asset.h> | 3 | #include <gfx/asset.h> |
| 4 | #include <gfx/render_backend.h> | 4 | #include <gfx/core.h> |
| 5 | #include <gfx/renderer.h> | 5 | #include <gfx/renderer.h> |
| 6 | #include <gfx/scene.h> | 6 | #include <gfx/scene.h> |
| 7 | #include <gfx/util/geometry.h> | 7 | #include <gfx/util/geometry.h> |
| @@ -33,7 +33,7 @@ bool init(Game* game, State** pp_state) { | |||
| 33 | // Usage: [texture file] | 33 | // Usage: [texture file] |
| 34 | const char* texture_file = game->argc > 1 ? game->argv[1] : DEFAULT_TEXTURE; | 34 | const char* texture_file = game->argc > 1 ? game->argv[1] : DEFAULT_TEXTURE; |
| 35 | 35 | ||
| 36 | RenderBackend* render_backend = gfx_get_render_backend(game->gfx); | 36 | GfxCore* gfxcore = gfx_get_core(game->gfx); |
| 37 | 37 | ||
| 38 | const Texture* texture = gfx_load_texture( | 38 | const Texture* texture = gfx_load_texture( |
| 39 | game->gfx, &(LoadTextureCmd){ | 39 | game->gfx, &(LoadTextureCmd){ |
| @@ -46,12 +46,12 @@ bool init(Game* game, State** pp_state) { | |||
| 46 | goto cleanup; | 46 | goto cleanup; |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | ShaderProgram* shader = gfx_make_view_texture_shader(render_backend); | 49 | ShaderProgram* shader = gfx_make_view_texture_shader(gfxcore); |
| 50 | if (!shader) { | 50 | if (!shader) { |
| 51 | goto cleanup; | 51 | goto cleanup; |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | Geometry* geometry = gfx_make_quad_11(render_backend); | 54 | Geometry* geometry = gfx_make_quad_11(gfxcore); |
| 55 | if (!geometry) { | 55 | if (!geometry) { |
| 56 | goto cleanup; | 56 | goto cleanup; |
| 57 | } | 57 | } |
