Porting QTValuePak - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Porting QTValuePak (/thread-7729.html)
Porting QTValuePak - Josh - May 31, 2002 05: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?
Porting QTValuePak - OneSadCookie - May 31, 2002 04: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>
Porting QTValuePak - Josh - May 31, 2002 06: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?
Porting QTValuePak - OneSadCookie - May 31, 2002 06: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.