fogleman / Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).
http://www.michaelfogleman.com/craft/
MIT License
10.39k stars 1.39k forks source link

Add vulkan renderer to Craft #222

Open pow2clk opened 5 years ago

pow2clk commented 5 years ago

Abstract the rendering interface of Craft and add an OpenGL and then a Vulkan implementation. This also converts the shaders to spir-v that is used for both. The Vulkan port required a later version of GL and thus a later version of glfw and glew, which was acquired by adding a system dependency on them.

pow2clk commented 5 years ago

First a disclaimer. I did this project for my own benefit to better familiarize myself with Vulkan and porting to it. That said, I would be perfectly content for it to be accepted into the main branch, but I am not as insistent as the volume of the changes might suggest. If any part of this is appealing, please feel free to take what you want and leave the rest. I'd be happy to continue collaborating as well.

Uploaded at @chaoticbob's suggestion.