I'm playing a bit with Repa library and its DevIL bindings. I tried to modify
one of the examples
from tutorial on HaskellWiki. I want to load an image, rotate it and save it to
disk. I managed
to write something like this:
import Foreign.Ptr
import System.Environment
import Data.Array.Repa
You do not have to use computeIntoP. You can just use computeP followed by
toForeignPtr (i don't remember the exact name for that and am on my phone
so it would be awkward to look up). So Repa can create the buffer for you.
Coincidentally, I didn't realize computeIntoP even existed, and I want it
You do not have to use computeIntoP. You can just use computeP followed by
toForeignPtr (i don't remember the exact name for that and am on my phone
so it would be awkward to look up). So Repa can create the buffer for you.
Coincidentally, I didn't realize computeIntoP even existed, and I want