[Haskell-cafe] Mapping a Texture in OpenGL?
hectorg87 at gmail.com
Sun Jul 11 00:07:02 EDT 2010
I already send this to the HOpenGL list, but I'm kind of in a hurry with
this and I'll probabbly get more responses from you...
I've been looking for a way to map a texture into a Quad primitive with
HOpenGL with no luck. I've already done this in C++ and had no problem. I
did the tutorial in
the sources, compiled them and it worked great (After changing a 2 lines to
make it work with OpenGL's latest version), but when I change the code to
use a .rgb file created by me with the program they provide from a .png file
of 256x256 pixels I don't have the same luck... My OpenGL version
I'm REALLY lost, clueless, so any kind of help would be greatly appreciated.
I checked the textures in the examples of the red book, but they are
"procedural" textures, and I need to map an image.
One of the pictures I need to map is in
Are six like that one and are for making a Rubik's Cube. After I finish it
I'll upload it to hackage and let you all know.
Thanks a lot,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe