spring
11-02-2005, 06:47 AM
I use "int data" as teture data ,but it don't work why?
I modify the example program of red book checker.c
To change the GLubyte to int and modify the :
glTexImage2D(GL_TEXTURE_2D, 0, 3, checkImageWidth,
checkImageHeight, 0, GL_RGB, GL_INT,
&checkImage[0][0][0]);
it only display two black rectangle??
I modify the example program of red book checker.c
To change the GLubyte to int and modify the :
glTexImage2D(GL_TEXTURE_2D, 0, 3, checkImageWidth,
checkImageHeight, 0, GL_RGB, GL_INT,
&checkImage[0][0][0]);
it only display two black rectangle??