├── .editorconfig ├── .gitignore ├── CMakeLists.txt ├── README.md ├── clear.sh ├── config.h.in ├── img ├── 1.png ├── 2.png ├── 3.png ├── 4.png └── 5.png ├── include ├── KHR │ └── khrplatform.h ├── config.h ├── glad │ └── glad.h └── omp.h ├── resources ├── font.ttf ├── mesh.frag.glsl ├── mesh.vert.glsl ├── noise.png ├── rect.frag.glsl ├── rect.vert.glsl ├── seven.png ├── sky.frag.glsl ├── sky.vert.glsl ├── splat.frag.glsl ├── splat.vert.glsl ├── test.txt ├── text.frag.glsl ├── text.vert.glsl ├── wire.frag.glsl └── wire.vert.glsl ├── src ├── CMakeLists.txt ├── cfg.c ├── cfg.h ├── chunkset.c ├── chunkset.h ├── chunkset │ ├── .mesher.c.swp │ ├── edit.c │ ├── edit.h │ ├── gen.c │ ├── gen.h │ ├── import.c │ ├── import.h │ ├── mesher.c │ ├── mesher.h │ ├── rle.c │ ├── rle.h │ ├── shadow.h │ └── shadow.h_backup ├── cpp │ ├── CMakeLists.txt │ ├── noise.cpp │ └── noise.h ├── ctx.c ├── ctx.h ├── ctx │ ├── input.c │ ├── input.h │ └── labels.h ├── deadcode.c ├── entity.c ├── event.c ├── event.h ├── events.h ├── game.c ├── game.h ├── gfx.c ├── gfx.h ├── gfx │ ├── aabb.c │ ├── aabb.h │ ├── camera.c │ ├── camera.h │ ├── crosshair.c │ ├── crosshair.h │ ├── fcull.c │ ├── fcull.h │ ├── ppm.c │ ├── ppm.h │ ├── rect.c │ ├── rect.h │ ├── shell.c │ ├── shell.h │ ├── sky.c │ ├── sky.h │ ├── text.c │ ├── text.h │ ├── vmesh.c │ ├── vmesh.h │ ├── vsplat.c │ └── vsplat.h ├── glad.c ├── main.c ├── mem.c ├── mem.h ├── res.c ├── res.h ├── shell.c ├── shell.c_old ├── shell.h ├── threadpool.c └── threadpool.h └── tests └── glslvalidator.sh /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ext/ 2 | build/ 3 | *.swap 4 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/README.md -------------------------------------------------------------------------------- /clear.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/clear.sh -------------------------------------------------------------------------------- /config.h.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/config.h.in -------------------------------------------------------------------------------- /img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/img/1.png -------------------------------------------------------------------------------- /img/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/img/2.png -------------------------------------------------------------------------------- /img/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/img/3.png -------------------------------------------------------------------------------- /img/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/img/4.png -------------------------------------------------------------------------------- /img/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/img/5.png -------------------------------------------------------------------------------- /include/KHR/khrplatform.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/include/KHR/khrplatform.h -------------------------------------------------------------------------------- /include/config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/include/config.h -------------------------------------------------------------------------------- /include/glad/glad.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/include/glad/glad.h -------------------------------------------------------------------------------- /include/omp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/include/omp.h -------------------------------------------------------------------------------- /resources/font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/font.ttf -------------------------------------------------------------------------------- /resources/mesh.frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/mesh.frag.glsl -------------------------------------------------------------------------------- /resources/mesh.vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/mesh.vert.glsl -------------------------------------------------------------------------------- /resources/noise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/noise.png -------------------------------------------------------------------------------- /resources/rect.frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/rect.frag.glsl -------------------------------------------------------------------------------- /resources/rect.vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/rect.vert.glsl -------------------------------------------------------------------------------- /resources/seven.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/seven.png -------------------------------------------------------------------------------- /resources/sky.frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/sky.frag.glsl -------------------------------------------------------------------------------- /resources/sky.vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/sky.vert.glsl -------------------------------------------------------------------------------- /resources/splat.frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/splat.frag.glsl -------------------------------------------------------------------------------- /resources/splat.vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/splat.vert.glsl -------------------------------------------------------------------------------- /resources/test.txt: -------------------------------------------------------------------------------- 1 | RES module is working correctly. 2 | -------------------------------------------------------------------------------- /resources/text.frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/text.frag.glsl -------------------------------------------------------------------------------- /resources/text.vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/text.vert.glsl -------------------------------------------------------------------------------- /resources/wire.frag.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/wire.frag.glsl -------------------------------------------------------------------------------- /resources/wire.vert.glsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/resources/wire.vert.glsl -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/cfg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/cfg.c -------------------------------------------------------------------------------- /src/cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/cfg.h -------------------------------------------------------------------------------- /src/chunkset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset.c -------------------------------------------------------------------------------- /src/chunkset.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset.h -------------------------------------------------------------------------------- /src/chunkset/.mesher.c.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/.mesher.c.swp -------------------------------------------------------------------------------- /src/chunkset/edit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/edit.c -------------------------------------------------------------------------------- /src/chunkset/edit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/edit.h -------------------------------------------------------------------------------- /src/chunkset/gen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/gen.c -------------------------------------------------------------------------------- /src/chunkset/gen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/gen.h -------------------------------------------------------------------------------- /src/chunkset/import.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/import.c -------------------------------------------------------------------------------- /src/chunkset/import.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/import.h -------------------------------------------------------------------------------- /src/chunkset/mesher.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/mesher.c -------------------------------------------------------------------------------- /src/chunkset/mesher.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/mesher.h -------------------------------------------------------------------------------- /src/chunkset/rle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/rle.c -------------------------------------------------------------------------------- /src/chunkset/rle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/rle.h -------------------------------------------------------------------------------- /src/chunkset/shadow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/shadow.h -------------------------------------------------------------------------------- /src/chunkset/shadow.h_backup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/chunkset/shadow.h_backup -------------------------------------------------------------------------------- /src/cpp/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/cpp/CMakeLists.txt -------------------------------------------------------------------------------- /src/cpp/noise.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/cpp/noise.cpp -------------------------------------------------------------------------------- /src/cpp/noise.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/cpp/noise.h -------------------------------------------------------------------------------- /src/ctx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/ctx.c -------------------------------------------------------------------------------- /src/ctx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/ctx.h -------------------------------------------------------------------------------- /src/ctx/input.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/ctx/input.c -------------------------------------------------------------------------------- /src/ctx/input.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/ctx/input.h -------------------------------------------------------------------------------- /src/ctx/labels.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/ctx/labels.h -------------------------------------------------------------------------------- /src/deadcode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/deadcode.c -------------------------------------------------------------------------------- /src/entity.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/entity.c -------------------------------------------------------------------------------- /src/event.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/event.c -------------------------------------------------------------------------------- /src/event.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/event.h -------------------------------------------------------------------------------- /src/events.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/events.h -------------------------------------------------------------------------------- /src/game.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/game.c -------------------------------------------------------------------------------- /src/game.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/game.h -------------------------------------------------------------------------------- /src/gfx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx.c -------------------------------------------------------------------------------- /src/gfx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx.h -------------------------------------------------------------------------------- /src/gfx/aabb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/aabb.c -------------------------------------------------------------------------------- /src/gfx/aabb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/aabb.h -------------------------------------------------------------------------------- /src/gfx/camera.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/camera.c -------------------------------------------------------------------------------- /src/gfx/camera.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/camera.h -------------------------------------------------------------------------------- /src/gfx/crosshair.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/crosshair.c -------------------------------------------------------------------------------- /src/gfx/crosshair.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/crosshair.h -------------------------------------------------------------------------------- /src/gfx/fcull.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/fcull.c -------------------------------------------------------------------------------- /src/gfx/fcull.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/fcull.h -------------------------------------------------------------------------------- /src/gfx/ppm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/ppm.c -------------------------------------------------------------------------------- /src/gfx/ppm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/ppm.h -------------------------------------------------------------------------------- /src/gfx/rect.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/rect.c -------------------------------------------------------------------------------- /src/gfx/rect.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/rect.h -------------------------------------------------------------------------------- /src/gfx/shell.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/shell.c -------------------------------------------------------------------------------- /src/gfx/shell.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/shell.h -------------------------------------------------------------------------------- /src/gfx/sky.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/sky.c -------------------------------------------------------------------------------- /src/gfx/sky.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/sky.h -------------------------------------------------------------------------------- /src/gfx/text.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/text.c -------------------------------------------------------------------------------- /src/gfx/text.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/text.h -------------------------------------------------------------------------------- /src/gfx/vmesh.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/vmesh.c -------------------------------------------------------------------------------- /src/gfx/vmesh.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/vmesh.h -------------------------------------------------------------------------------- /src/gfx/vsplat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/vsplat.c -------------------------------------------------------------------------------- /src/gfx/vsplat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/gfx/vsplat.h -------------------------------------------------------------------------------- /src/glad.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/glad.c -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/main.c -------------------------------------------------------------------------------- /src/mem.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/mem.c -------------------------------------------------------------------------------- /src/mem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/mem.h -------------------------------------------------------------------------------- /src/res.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/res.c -------------------------------------------------------------------------------- /src/res.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/res.h -------------------------------------------------------------------------------- /src/shell.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/shell.c -------------------------------------------------------------------------------- /src/shell.c_old: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/shell.c_old -------------------------------------------------------------------------------- /src/shell.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/shell.h -------------------------------------------------------------------------------- /src/threadpool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/threadpool.c -------------------------------------------------------------------------------- /src/threadpool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/src/threadpool.h -------------------------------------------------------------------------------- /tests/glslvalidator.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosshi-net/voxplat/HEAD/tests/glslvalidator.sh --------------------------------------------------------------------------------