Jump to content
  • Advertisement
Sign in to follow this  
giugio

OpenGL opengl ,textures and 2d shapes

This topic is 2251 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'm creating a 2d interface in opengl with lines , rectangle and some other 2d shapes with qt.
I must have a background texture and the shapes on it.
I use vbo , shader ecc...
How i can positioning the lines and the shapes for appear on the background texture?
and what i can use for display the background texture?
i can create a textured plane for example with z = 0 and the shapes with z = 0.01 ecc...?
Is a correct approach?

thanks.

Share this post


Link to post
Share on other sites
Advertisement
Poorly translated to English.

Your background should be z = -10, and shapes be z = -9 to z = -1. Something like that.
and what i can use for display the background texture?[/quote]
You said you have a vbo. I don't know what you are asking. Draw a quad with a texture on it?

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.

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

Sign me up!