Porting QTValuePak
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?
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?
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...
For QTNewGWorldFromPtr, you need to include <ImageCompression.h>; for GL_BGRA_EXT you need to include <GL/glext.h>
HTH...
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?
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?
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.
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.

