diff options
| author | kkard2 <[email protected]> | 2025-09-22 17:21:30 +0200 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2025-09-22 17:21:30 +0200 |
| commit | a17e7369bfe9cb4a23225084a396ec92823bad2b (patch) | |
| tree | b229b07c1a1c131467f61010eec985b62293897e /examples/cube.c | |
| parent | 2d0894f9887f9e100d7546b6ca93934eced93e39 (diff) | |
reorganize examples
Diffstat (limited to 'examples/cube.c')
| -rw-r--r-- | examples/cube.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cube.c b/examples/cube.c index 240c387..c346d16 100644 --- a/examples/cube.c +++ b/examples/cube.c @@ -5,9 +5,9 @@ #define SPONGE_EXAMPLE_INIT_DEFINED #define SPONGE_EXAMPLE_MOUSE_MOVE_DEFINED #define SPONGE_EXAMPLE_DRAW_FRAME_3D_DEFINED -#include "../example.h" +#include "example.h" -#include "../stb_image.h" +#include "vendor/stb_image.h" #define FOV (60.0f / PI * 2.0f) #define DISTANCE (10.0f) @@ -17,7 +17,7 @@ static int32_t mouse_x; static int32_t mouse_y; void init() { - unsigned char *data = stbi_load("examples/kothd.png", &texture.width, &texture.height, NULL, 4); + unsigned char *data = stbi_load("examples/assets/kothd.png", &texture.width, &texture.height, NULL, 4); if (!data) { printf("%s\n", stbi_failure_reason()); assert(0); |
