[GtkGLExt] flipping Pixbuf images



Hello,

I am slowly learning gtkglextmm and opengl. I wrote a small program that does texturing, and I've run into a small problem I was wondering if you could help me with. I used Gdk::Pixbuf::create_from_file() to load the image and later a call to glTexImage2D() setup the texture. However, the image is displayed backwards on its quad. The image has text in it, so I couldn't leave it that way. I ended up flipping the image with a paint program.

I am wondering if Gdk or GL provides a ready made function that could have done the flipping for me at run time.
--
phil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]