loading textures

Started by
2 comments, last by deepblack 22 years, 8 months ago
hi, i have problems during loading textures. the code based on nehe's lesson 6. when i load nehe's textur the window work but i can't load my texture. the quad is gray. pleas help me.

if (TextureImage[0]=LoadBMP("Data/cm.bmp"))
	{
		Status=TRUE;									

		glGenTextures(1, &texture[0]);			
 
Edited by - deepblack on August 6, 2001 5:24:09 AM
Advertisement
Did you enable glEnable(GL_TEXTURE_2D)??
Ethereal
yes, but i don''t know why it dosn''t work.
the quad is grey and when i load NeHe.bmp the texture load.
ok, it works
thanx for the answere

This topic is closed to new replies.

Advertisement