ocharles / zero-to-quake-3

Implementing Quake 3 in Haskell & Vulkan
BSD 3-Clause "New" or "Revised" License
162 stars 7 forks source link

Add stack file and fix build #6

Open TristanCacqueray opened 4 years ago

TristanCacqueray commented 4 years ago

This change adds a stack file to build the project with lts-11.22 and a compatible vulkan-api version.

This change also fixes the defaultWindow record for VulkanContext and update the shader path to be relative.

TristanCacqueray commented 4 years ago

Not sure if that is correct, the extra deps versions was picked randomly until the project built. In particular, I couldn't find the library that provided the SDL.windowVulkan defaultWindow constructor. This PR let me build and run the project using stack build.

dpwiz commented 4 years ago

I'm too using SDL.windowGraphicsContext = SDL.VulkanContext for this.

dpwiz commented 4 years ago

BTW, I can run it with LTS-14. Pushing into LTS-15 should require only minor tweaks here and there.

ocharles commented 4 years ago

Thanks for the feedback folks! I'm trying to keep all dev on this strictly on stream, and will leave the PR for that too. Maybe this is motivation to crack on with the project again! 😆

TristanCacqueray commented 4 years ago

Thank you for putting that project together @ocharles, it's very instructive. I find nix difficult to use for OpenGL outside of nixos, even with nixgl, thus having a cabal or stack build would be even better :-)