PDA

View Full Version : Porting QTValuePak


Josh
2002.05.31, 08:59 AM
I am almost done porting the QTValuePak but when I come to the OpenGLImage.c and I try to run my ported version it says:

Error : undefined identifier 'QTNewGWorldFromPtr'
LoadGLTexture.c line 21 0, buffer, 4 * natbounds.right);

Error : undefined identifier 'GL_BGRA_EXT'
LoadGLTexture.c line 33 GL_BGRA_EXT, GL_UNSIGNED_INT_8_8_8_8_REV,

Anyone know what header/library I am missing?

OneSadCookie
2002.05.31, 07:21 PM
Is this a back-port to Classic or 'across the ditch' to Windows?

For QTNewGWorldFromPtr, you need to include <ImageCompression.h>; for GL_BGRA_EXT you need to include <GL/glext.h>

HTH...

Josh
2002.05.31, 09:01 PM
This is for Classic, I have no desire to defile myself with Windows programming :) I included <ImageCompression.h> and it still gives the same errors. I did a find and glext.h doesn't exist on my computer. Anyone know where I can get it and where to find QTNewGWorldFromPtr?

OneSadCookie
2002.05.31, 09:42 PM
GL/glext.h should be in the OpenGL SDK. If it's not, GL_BGRA might be defined in GL/gl.h

QTNewGWorldFromPtr was introduced in QuickTime 4, so if you have an earlier version of QuickTime or an old version of the universal interfaces, you might need to upgrade.