summaryrefslogtreecommitdiff
path: root/examples/teapot.c
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-22 17:21:30 +0200
committerkkard2 <[email protected]>2025-09-22 17:21:30 +0200
commita17e7369bfe9cb4a23225084a396ec92823bad2b (patch)
treeb229b07c1a1c131467f61010eec985b62293897e /examples/teapot.c
parent2d0894f9887f9e100d7546b6ca93934eced93e39 (diff)
reorganize examples
Diffstat (limited to 'examples/teapot.c')
-rw-r--r--examples/teapot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/teapot.c b/examples/teapot.c
index 026de22..4652e65 100644
--- a/examples/teapot.c
+++ b/examples/teapot.c
@@ -7,7 +7,7 @@
#define SPONGE_EXAMPLE_INIT_DEFINED
#define SPONGE_EXAMPLE_MOUSE_MOVE_DEFINED
#define SPONGE_EXAMPLE_DRAW_FRAME_3D_DEFINED
-#include "../example.h"
+#include "example.h"
#define FOV (60.0f / PI * 2.0f)
#define DISTANCE (10.0f)
@@ -22,7 +22,7 @@ static size_t triangles_count;
// TODO(kard): make proper error checking
void init() {
- FILE *handle = fopen("./examples/teapot.txt", "r");
+ FILE *handle = fopen("examples/assets/teapot.txt", "r");
assert(handle);
fscanf(handle, "%zu", &triangles_count);
triangles_count *= 3;