Re: [gtkmm] Gdk::Pixbuf data storage



On Fri, 2004-04-23 at 06:33, Jonathan Brandmeyer wrote:
> I am using the Pixbuf class to load image data for use as an OpenGL
> texture and I ran across something strange - the images appear to be
> upside-down.  OpenGL uses a bottom-row-first storage order for pixel
> data.  Is Gdk::Pixbuf's storage order top-row-first?  I just want to
> make sure I haven't made a mistake in my code.
> 
> Thanks,
> Jonathan Brandmeyer

Gdk::Pixbufs are top-to-bottom, it's not a mistake. IIRC, you can
compensate for that by fiddling with th texture parameters for the
polygons.

HTH,
Tassos

-- 
Beware of he who would deny you access to information, for in his
heart he dreams himself your master." 
	-- Commissioner Pravin Lal, Sid Meier's Alpha Centauri




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