-
Help, dib and opengl
I am using Vfw.h and its functions. To get the packed DIB off each AVI frame. This is what I do:
pPackedDib = (GLubyte *)AVIStreamGetFrame(pGetFrame, j);
tempPtr=pPackedDib;
tempPtr += sizeof(BITMAPINFOHEADER);
glTexImage2D(GL_TEXTURE_2D, 0, 3, width, height, 0, GL_BGR_EXT,GL_UNSIGNED_BYTE, tempPtr);
Of course I bind them all properly and rebind when I need to texture map... but I dont see a thing. What can be wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules