Textures from SDL upside down

Bas van Dijk <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
Hi,

I am using HOpenGL in combination with hsSDL
(http://darcs.haskell.org/~lemmih/hsSDL). This works great except for
texture loading. All my textures are mirrored over the v-axis. So the
top of a texture becomes the bottom. I first thought that I got the
texture coordinates wrong. But the textures are also flipped on the GLU
quadrics.

Is there some way to tell (H)OpenGL that a texture is mirrored? I tried
glPixelStore parameters but I don't think it is possible that way.
Perhaps it is possible to change a hsSDL surface before loading the
pixel data. Any advice is welcome.

regards,

Bas van Dijk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.