haskell-game / sdl2

Haskell bindings to the SDL2 library
Other
362 stars 87 forks source link

Support SDL 2.0.6 #171

Open ocharles opened 7 years ago

ocharles commented 7 years ago

The usual caveat about when to do this applies, but at least here we can track it.

expipiplus1 commented 6 years ago

One handy feature in 2.0.6 is the vulkan functionality support.

nickkuk commented 6 years ago

Hi, @expipiplus1, I've done it here. I didn't make PR because haven't done any nontrivial example. Do you have any suggestions?

expipiplus1 commented 6 years ago

@nickkuk I'll let you know when I've done a triangle rendering example with this patch and vulkan. No harm in opening a PR before then though.

Thanks for the hard work!

expipiplus1 commented 6 years ago

FYI I've rebased this change on the current master in my fork.

sheaf commented 6 years ago

Using nicckuk's changes, I was able to modify the vulkan-triangles example to use SDL2, see here.

I've only tested this on my system (Windows 7 x64).

nickkuk commented 6 years ago

Thanks, @expipiplus1 and @sheaf, I can confirm that it works on Linux too.

nickkuk commented 6 years ago

@expipiplus1 and @sheaf, I've rebased this change again and made PR.