我有一段代碼加載使用glTexImage2D這樣的紋理: // to test texturing
CGImageRef imageRef = [[UIImage imageNamed:@"Blob.png"] CGImage];
int width = CGImageGetWidth(imageRef);
int height = CGImageGetHeight(imageRef);
在我的程序中,我使用了2種紋理:t0和t1。 T1是額外的,只是在某些情況下需要: .....
glActiveTexture (GL_TEXTURE1);
if (mDisplayMode == EDM_DEFAULT){
glBindTexture(GL_TEXTURE_2D, 0); // In this case I don't need t1
}else{
gl