I am trying to draw rounded edges for my own custom button.
does anyone know how to draw slightly rounded edges for a rectangle/square shape?
I can't post images but i have examples.
examples
- the chrome browser address bar
- the search button beside the search edit box at http://www.youtube.com
this is in 2d btw.
Rounded edges?
-
- Posts: 126
- Joined: Wed Sep 29, 2010 8:23 pm
Thanks for the reply.
I could do it by having a background image but that would mean creating a texture for each size of button/area as you lose quality when you stretch a texture to fit all buttons/areas.
Look at my examples to see what i want to do.
Yes but how? What api call? what function? How? I can not see where there is a flag you set.Um...well...I guess you would just draw the GUI elements...and...give them round edges?!? uh.. I don't know...
No textures, i just want to draw a square/rectangle with rounded edges and place some text in the center of it. That way i can have any size button or area with rounded edges.So, these are textures you're using for your GUI? Or is it for something else?
I could do it by having a background image but that would mean creating a texture for each size of button/area as you lose quality when you stretch a texture to fit all buttons/areas.
Look at my examples to see what i want to do.