Jump to content
  • Advertisement
Sign in to follow this  
RobAU78

OpenGL Displaying Primitives with Textures

This topic is 4518 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

Hey guys, I'm sure this question has been answered many times, but how can you draw primitives along with textures in OpenGL? I ask this because I have a program that could draw a simple selection box, to which I added texture-loading-and-displaying capabilities. However, once I added those, the texture would display fine, but the selection box would no longer appear! Can anyone help? Thanks, Rob

Share this post


Link to post
Share on other sites
Advertisement
Did you glDisable(GL_TEXTURE_2D); before drawing your box, which is probably done in a color lined mode? otherwise you are going to get the lines using the currently bound texture object.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!