Re: [GtkGLExt] flipping Pixbuf images
- From: Philipp Klaus Krause <pkk spth de>
- To: Phillip Neiswanger <sigsegv prodigy net>
- Cc: gtkglext-list gnome org
- Subject: Re: [GtkGLExt] flipping Pixbuf images
- Date: Sun, 13 Mar 2005 10:27:14 +0100
Phillip Neiswanger schrieb:
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.
You could have used different texture coordiantes (either manually or
using the texture matrix).
Philipp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]