├── .gitignore ├── deps ├── glfw │ ├── examples │ │ ├── glfw.rc │ │ ├── glfw.icns │ │ ├── glfw.ico │ │ └── CMakeLists.txt │ ├── src │ │ ├── glfw3Config.cmake.in │ │ ├── glfw3.pc.in │ │ ├── xkb_unicode.h │ │ ├── null_joystick.h │ │ ├── posix_time.h │ │ ├── null_joystick.c │ │ ├── posix_tls.h │ │ ├── posix_thread.h │ │ ├── null_init.c │ │ ├── cocoa_joystick.h │ │ ├── nsgl_context.h │ │ ├── win32_joystick.h │ │ ├── cocoa_time.c │ │ ├── linux_joystick.h │ │ ├── null_platform.h │ │ ├── null_monitor.c │ │ ├── posix_tls.c │ │ ├── win32_tls.c │ │ ├── win32_time.c │ │ ├── glfw_config.h.in │ │ ├── posix_time.c │ │ └── win32_thread.c │ ├── docs │ │ ├── html │ │ │ ├── bc_s.png │ │ │ ├── bdwn.png │ │ │ ├── doc.png │ │ │ ├── nav_f.png │ │ │ ├── nav_g.png │ │ │ ├── nav_h.png │ │ │ ├── open.png │ │ │ ├── tab_a.png │ │ │ ├── tab_b.png │ │ │ ├── tab_h.png │ │ │ ├── tab_s.png │ │ │ ├── closed.png │ │ │ ├── doxygen.png │ │ │ ├── sync_on.png │ │ │ ├── arrowdown.png │ │ │ ├── arrowright.png │ │ │ ├── folderopen.png │ │ │ ├── splitbar.png │ │ │ ├── sync_off.png │ │ │ ├── folderclosed.png │ │ │ ├── search │ │ │ │ ├── close.png │ │ │ │ ├── mag_sel.png │ │ │ │ ├── search_l.png │ │ │ │ ├── search_m.png │ │ │ │ ├── search_r.png │ │ │ │ ├── all_b.js │ │ │ │ ├── files_5.js │ │ │ │ ├── all_6.js │ │ │ │ ├── files_0.js │ │ │ │ ├── files_6.js │ │ │ │ ├── files_7.js │ │ │ │ ├── files_8.js │ │ │ │ ├── all_2.js │ │ │ │ ├── all_7.js │ │ │ │ ├── groups_1.js │ │ │ │ ├── groups_3.js │ │ │ │ ├── pages_7.js │ │ │ │ ├── pages_8.js │ │ │ │ ├── groups_4.js │ │ │ │ ├── groups_6.js │ │ │ │ ├── pages_2.js │ │ │ │ ├── groups_8.js │ │ │ │ ├── groups_9.js │ │ │ │ ├── groups_0.js │ │ │ │ ├── pages_6.js │ │ │ │ ├── groups_7.js │ │ │ │ ├── all_a.js │ │ │ │ ├── variables_3.js │ │ │ │ ├── variables_5.js │ │ │ │ ├── pages_5.js │ │ │ │ ├── files_3.js │ │ │ │ ├── files_2.js │ │ │ │ ├── pages_0.js │ │ │ │ ├── pages_1.js │ │ │ │ ├── pages_3.js │ │ │ │ ├── pages_4.js │ │ │ │ ├── all_4.js │ │ │ │ ├── files_4.js │ │ │ │ ├── variables_2.js │ │ │ │ ├── variables_6.js │ │ │ │ ├── files_1.js │ │ │ │ ├── all_e.js │ │ │ │ ├── classes_0.js │ │ │ │ ├── groups_2.js │ │ │ │ ├── variables_0.js │ │ │ │ ├── variables_1.js │ │ │ │ ├── groups_5.js │ │ │ │ ├── all_9.js │ │ │ │ ├── all_d.js │ │ │ │ ├── all_c.js │ │ │ │ ├── variables_4.js │ │ │ │ ├── all_f.js │ │ │ │ ├── all_0.js │ │ │ │ ├── all_1.js │ │ │ │ ├── nomatches.html │ │ │ │ ├── all_5.js │ │ │ │ ├── all_8.js │ │ │ │ ├── searchdata.js │ │ │ │ ├── all_0.html │ │ │ │ ├── all_1.html │ │ │ │ ├── all_2.html │ │ │ │ ├── all_3.html │ │ │ │ ├── all_4.html │ │ │ │ ├── all_5.html │ │ │ │ ├── all_6.html │ │ │ │ ├── all_7.html │ │ │ │ ├── all_8.html │ │ │ │ ├── all_9.html │ │ │ │ ├── all_a.html │ │ │ │ ├── all_b.html │ │ │ │ ├── all_c.html │ │ │ │ ├── all_d.html │ │ │ │ ├── all_e.html │ │ │ │ ├── all_f.html │ │ │ │ ├── files_0.html │ │ │ │ ├── files_1.html │ │ │ │ ├── files_2.html │ │ │ │ ├── files_3.html │ │ │ │ ├── files_4.html │ │ │ │ ├── files_5.html │ │ │ │ ├── files_6.html │ │ │ │ ├── files_7.html │ │ │ │ ├── files_8.html │ │ │ │ ├── groups_0.html │ │ │ │ ├── groups_1.html │ │ │ │ ├── groups_2.html │ │ │ │ ├── groups_3.html │ │ │ │ ├── groups_4.html │ │ │ │ ├── groups_5.html │ │ │ │ ├── groups_6.html │ │ │ │ ├── groups_7.html │ │ │ │ ├── groups_8.html │ │ │ │ ├── groups_9.html │ │ │ │ ├── pages_0.html │ │ │ │ ├── pages_1.html │ │ │ │ ├── pages_2.html │ │ │ │ ├── pages_3.html │ │ │ │ ├── pages_4.html │ │ │ │ ├── pages_5.html │ │ │ │ ├── pages_6.html │ │ │ │ ├── pages_7.html │ │ │ │ ├── pages_8.html │ │ │ │ ├── classes_0.html │ │ │ │ ├── defines_0.html │ │ │ │ ├── functions_0.html │ │ │ │ ├── typedefs_0.html │ │ │ │ ├── variables_0.html │ │ │ │ ├── variables_1.html │ │ │ │ ├── variables_2.html │ │ │ │ ├── variables_3.html │ │ │ │ ├── variables_4.html │ │ │ │ ├── variables_5.html │ │ │ │ ├── variables_6.html │ │ │ │ └── typedefs_0.js │ │ │ ├── tabs.css │ │ │ └── dynsections.js │ │ ├── footer.html │ │ ├── CMakeLists.txt │ │ ├── header.html │ │ ├── main.dox │ │ └── DoxygenLayout.xml │ ├── CMake │ │ ├── modules │ │ │ ├── FindMir.cmake │ │ │ ├── FindOSMesa.cmake │ │ │ ├── FindEpollShim.cmake │ │ │ ├── FindWaylandProtocols.cmake │ │ │ ├── FindXKBCommon.cmake │ │ │ └── FindVulkan.cmake │ │ ├── i586-mingw32msvc.cmake │ │ ├── amd64-mingw32msvc.cmake │ │ ├── i686-w64-mingw32.cmake │ │ ├── i686-pc-mingw32.cmake │ │ ├── x86_64-w64-mingw32.cmake │ │ ├── GenerateMappings.cmake │ │ └── MacOSXBundleInfo.plist.in │ ├── .appveyor.yml │ ├── .travis.yml │ ├── LICENSE.md │ ├── COPYING.txt │ ├── cmake_uninstall.cmake.in │ ├── deps │ │ ├── vulkan │ │ │ └── vulkan.h │ │ └── getopt.h │ └── tests │ │ ├── title.c │ │ └── timeout.c └── miniz │ ├── LICENSE │ └── examples │ └── example4.c ├── res ├── textures │ ├── ascii.png │ ├── terrain.png │ └── widgets.png └── shaders │ ├── lines.fsh │ ├── lines.vsh │ ├── blocks.fsh │ ├── gui.vsh │ ├── gui.fsh │ └── blocks.vsh ├── src ├── entity.h ├── bounding_box.h ├── block_data.h ├── util.h ├── shader.h ├── block.h ├── mesh.h ├── chunk.h ├── game.h ├── input.h ├── bounding_box.c ├── gui.h ├── server │ ├── server.h │ └── main.c ├── glmath.h ├── sockets.h ├── block_data.c ├── world.h └── util.c ├── README.md └── CMakeLists.txt /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | 3 | build/ -------------------------------------------------------------------------------- /deps/glfw/examples/glfw.rc: -------------------------------------------------------------------------------- 1 | 2 | GLFW_ICON ICON "glfw.ico" 3 | 4 | -------------------------------------------------------------------------------- /deps/glfw/src/glfw3Config.cmake.in: -------------------------------------------------------------------------------- 1 | include("${CMAKE_CURRENT_LIST_DIR}/glfw3Targets.cmake") 2 | -------------------------------------------------------------------------------- /res/textures/ascii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/res/textures/ascii.png -------------------------------------------------------------------------------- /res/textures/terrain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/res/textures/terrain.png -------------------------------------------------------------------------------- /res/textures/widgets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/res/textures/widgets.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/bc_s.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/bdwn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/bdwn.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/doc.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/nav_f.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/nav_g.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/nav_g.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/nav_h.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/open.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/tab_a.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/tab_b.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/tab_h.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/tab_s.png -------------------------------------------------------------------------------- /deps/glfw/examples/glfw.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/examples/glfw.icns -------------------------------------------------------------------------------- /deps/glfw/examples/glfw.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/examples/glfw.ico -------------------------------------------------------------------------------- /deps/glfw/docs/html/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/closed.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/doxygen.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/sync_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/sync_on.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/arrowdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/arrowdown.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/arrowright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/arrowright.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/folderopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/folderopen.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/splitbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/splitbar.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/sync_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/sync_off.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/folderclosed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/folderclosed.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/search/close.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/mag_sel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/search/mag_sel.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/search_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/search/search_l.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/search_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/search/search_m.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/search_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knicked/CCraft/HEAD/deps/glfw/docs/html/search/search_r.png -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/all_b.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['quick_2edox',['quick.dox',['../quick_8dox.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/files_5.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['news_2edox',['news.dox',['../news_8dox.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/all_6.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['joysticks',['Joysticks',['../group__joysticks.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/files_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['build_2edox',['build.dox',['../build_8dox.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/files_6.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['quick_2edox',['quick.dox',['../quick_8dox.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/files_7.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['vulkan_2edox',['vulkan.dox',['../vulkan_8dox.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/files_8.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['window_2edox',['window.dox',['../window_8dox.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/all_2.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['error_20codes',['Error codes',['../group__errors.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/all_7.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['keyboard_20keys',['Keyboard keys',['../group__keys.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/groups_1.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['error_20codes',['Error codes',['../group__errors.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/groups_3.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['joysticks',['Joysticks',['../group__joysticks.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/pages_7.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['vulkan_20guide',['Vulkan guide',['../vulkan_guide.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/pages_8.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['window_20guide',['Window guide',['../window_guide.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/groups_4.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['keyboard_20keys',['Keyboard keys',['../group__keys.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/groups_6.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['native_20access',['Native access',['../group__native.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/pages_2.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['getting_20started',['Getting started',['../quick_guide.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/groups_8.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['vulkan_20reference',['Vulkan reference',['../group__vulkan.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/groups_9.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['window_20reference',['Window reference',['../group__window.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /res/shaders/lines.fsh: -------------------------------------------------------------------------------- 1 | #version 150 core 2 | 3 | out vec4 out_color; 4 | 5 | void main() 6 | { 7 | out_color = vec4(0.0, 0.0, 0.0, 0.7); 8 | } 9 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/groups_0.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['context_20reference',['Context reference',['../group__context.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/html/search/pages_6.js: -------------------------------------------------------------------------------- 1 | var searchData= 2 | [ 3 | ['standards_20conformance',['Standards conformance',['../compat_guide.html',1,'']]] 4 | ]; 5 | -------------------------------------------------------------------------------- /deps/glfw/docs/footer.html: -------------------------------------------------------------------------------- 1 |
2 |3 | Last update on $date for $projectname $projectnumber 4 |
5 | 6 |