PICT resource as texture

I’m trying to load a texture from a PICT resource-- after i call GetPicture, how would i get the texture data needed for glTexImage2D?

Use QTNewGWorldFromPtr to create a GWorld with a backing store of your own buffer, draw the picture to the GWorld, TexImage2D from your buffer.

Get QTValuePak from http://homepage.mac.com/onesadcookie & have a look in there for a similar thing done with QuickTime’s GraphicImporter components.

ALright, thanks; ill try that.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.