diff options
Diffstat (limited to 'gltfview/src/plugins')
-rw-r--r-- | gltfview/src/plugins/texture_view.c | 22 | ||||
-rw-r--r-- | gltfview/src/plugins/texture_view.h | 6 |
2 files changed, 1 insertions, 27 deletions
diff --git a/gltfview/src/plugins/texture_view.c b/gltfview/src/plugins/texture_view.c index f2c650f..2bca4a1 100644 --- a/gltfview/src/plugins/texture_view.c +++ b/gltfview/src/plugins/texture_view.c | |||
@@ -1,6 +1,7 @@ | |||
1 | #include "texture_view.h" | 1 | #include "texture_view.h" |
2 | 2 | ||
3 | #include <gfx/render_backend.h> | 3 | #include <gfx/render_backend.h> |
4 | #include <gfx/scene.h> | ||
4 | #include <gfx/util/geometry.h> | 5 | #include <gfx/util/geometry.h> |
5 | #include <gfx/util/shader.h> | 6 | #include <gfx/util/shader.h> |
6 | #include <gfx/util/texture.h> | 7 | #include <gfx/util/texture.h> |
@@ -13,15 +14,7 @@ | |||
13 | // Default texture to load if no texture is provided. | 14 | // Default texture to load if no texture is provided. |
14 | static const char* CLOUDS1_TEXTURE = "/assets/skybox/clouds1/clouds1_west.bmp"; | 15 | static const char* CLOUDS1_TEXTURE = "/assets/skybox/clouds1/clouds1_west.bmp"; |
15 | 16 | ||
16 | State* init(Game* game) { | ||
17 | assert(game); | ||
18 | |||
19 | State* state = calloc(1, sizeof(State)); | ||
20 | return state; | ||
21 | } | ||
22 | |||
23 | bool boot(State* state, Game* game) { | 17 | bool boot(State* state, Game* game) { |
24 | assert(state); | ||
25 | assert(game); | 18 | assert(game); |
26 | 19 | ||
27 | // Usage: [texture file] | 20 | // Usage: [texture file] |
@@ -37,9 +30,6 @@ bool boot(State* state, Game* game) { | |||
37 | .mipmaps = false, | 30 | .mipmaps = false, |
38 | .data.texture.filepath = mstring_make(texture_file)}); | 31 | .data.texture.filepath = mstring_make(texture_file)}); |
39 | 32 | ||
40 | Camera* camera = gfx_get_camera_camera(game->camera); | ||
41 | spatial3_set_position(&camera->spatial, vec3_make(0, 0, 1)); | ||
42 | |||
43 | ShaderProgram* shader = gfx_make_view_texture_shader(render_backend); | 33 | ShaderProgram* shader = gfx_make_view_texture_shader(render_backend); |
44 | if (!shader) { | 34 | if (!shader) { |
45 | return false; | 35 | return false; |
@@ -82,13 +72,3 @@ bool boot(State* state, Game* game) { | |||
82 | 72 | ||
83 | return true; | 73 | return true; |
84 | } | 74 | } |
85 | |||
86 | void update(State* state, Game* game, double t, double dt) { | ||
87 | assert(state); | ||
88 | assert(game); | ||
89 | } | ||
90 | |||
91 | void render(State* state, const Game* game) { | ||
92 | assert(state); | ||
93 | assert(game); | ||
94 | } | ||
diff --git a/gltfview/src/plugins/texture_view.h b/gltfview/src/plugins/texture_view.h index 670d88d..956f34a 100644 --- a/gltfview/src/plugins/texture_view.h +++ b/gltfview/src/plugins/texture_view.h | |||
@@ -1,9 +1,3 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include "plugin.h" | 3 | #include "plugin.h" |
4 | |||
5 | #include <gfx/scene.h> | ||
6 | |||
7 | typedef struct State { | ||
8 | int unused; | ||
9 | } State; | ||