[Haskell-beginners] texture mapping with SDL

Florian Gillard florian.gillard at gmail.com
Fri Apr 17 13:09:49 UTC 2015


Hi everyone,

I am trying to make a basic raycaster (something like the first wolfenstein
3D) using haskell and SDL 1.2

So far I have it working using coloured lines and I would like to know if
there is any way to apply transforms to textures loaded in memory using
SDL, in order to achieve basic texture mapping on the walls.

I looked at the SDL doc but I didn't find anything looking like what I need.

The code is there:

https://github.com/eniac314/maze-generator/blob/master/raycaster.hs

(the last part is not done yet but has nothing to do with the raycaster)

I would appreciate any suggestion :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150417/ed5aa652/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raycaster.png
Type: image/png
Size: 6078 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150417/ed5aa652/attachment.png>


More information about the Beginners mailing list