summaryrefslogtreecommitdiff
path: root/gltfview/src/plugins/texture_view.c
diff options
context:
space:
mode:
Diffstat (limited to 'gltfview/src/plugins/texture_view.c')
-rw-r--r--gltfview/src/plugins/texture_view.c22
1 files changed, 1 insertions, 21 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.
14static const char* CLOUDS1_TEXTURE = "/assets/skybox/clouds1/clouds1_west.bmp"; 15static const char* CLOUDS1_TEXTURE = "/assets/skybox/clouds1/clouds1_west.bmp";
15 16
16State* init(Game* game) {
17 assert(game);
18
19 State* state = calloc(1, sizeof(State));
20 return state;
21}
22
23bool boot(State* state, Game* game) { 17bool 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
86void update(State* state, Game* game, double t, double dt) {
87 assert(state);
88 assert(game);
89}
90
91void render(State* state, const Game* game) {
92 assert(state);
93 assert(game);
94}