lucidmm
12-10-2002, 10:37 AM
Each pixel is one byte.
What is the correct call to glTexImage2D?
Old GLman
12-10-2002, 10:41 AM
It would most likely be:
glTexImage2D(GL_TEXTURE_2D,0,GL_LUMINANCE8,width,h eight,0,GL_LUMINANCE,GL_UNSIGNED_BYTE,data);
Ofcourse, change parameters where necessary.
Old GLman
lucidmm
12-10-2002, 10:50 AM
that did it. THANKS!
http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.