Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

sergil

stexturing problems

This topic is 5810 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello!! I have a problem when I wnat to draw a TGA-textured poly and other non-textured poly (using primitives with color). When I render the textured poly I use glEnable(GL_TEXTURE_2D), and when I want to draw a non-textured poly I use glDisable(GL_TEXTURE_2D) (because if I draw the non-textured poly with glEnable(GL_TEXTURE_2D), I can''t see the true colors of the non-textured poly). When I use glDisable(GL_TEXTURE_2D) and draw the non-textured poly, the color of the textured poly changes,.... whats wrong? Thanks and sorry for my english!!

Share this post


Link to post
Share on other sites
Advertisement
I think, you should enable GL_COLOR_MATERIAL
But I''m not sure!
Test it out.

PM

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!