Porting QTValuePak

Moderator
Posts: 608
Joined: 2002.04
Post: #1
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?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
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...
Quote this message in a reply
Moderator
Posts: 608
Joined: 2002.04
Post: #3
This is for Classic, I have no desire to defile myself with Windows programming Smile 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?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
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.
Quote this message in a reply
Post Reply