Multiple Textures OpenGL GLUT C++
问题 Okay still having a few problems with it, this is what I have so far: Bitmap Display::m_HeightMap; unsigned int Display:: textures; My initialise method: glEnable(GL_TEXTURE_2D); Bitmap image[2]; GLuint *textures = new GLuint[2]; glGenTextures(1, textures); glGenTextures(2, textures); image[0].loadBMP("myTexture.bmp"); image[1].loadBMP("myOtherTexture.bmp"); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE , GL_MODULATE); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP