Skip to main content
GameDev.net gamedev.net
🔒 Locked

loading textures

Started by deepblack Aug 6, 2001 at 4:21 AM 2 replies 350+ views
Original Post
deepblack
deepblack
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
Metus
Metus
Did you enable glEnable(GL_TEXTURE_2D)??
Ethereal
deepblack
deepblack
yes, but i don''t know why it dosn''t work.
the quad is grey and when i load NeHe.bmp the texture load.
deepblack
deepblack
ok, it works
thanx for the answere

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.