Skip to main content
gamedev.net
🔒 Locked

opengl ,textures and 2d shapes

Started by giugio Apr 23, 2012 at 9:57 AM 1 replies 1.2k views
Original Post
giugio
giugio
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.
giugio
giugio
nobody?
dpadam450
dpadam450
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?
NBA2K, Madden, Maneater, Killing Floor, Sims 

Topic Locked

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

Sign in to reply to this topic.