Quantcast
Viewing all articles
Browse latest Browse all 6821

Rounded rectangles in MonoGame?

@Watercolor_Games wrote:

So basically I'm trying to write a window manager inside MonoGame. I'm going for a Linux-y kind of look, so slightly rounded corners on most things. Well, I guess that's more of a GTK look than Linux in general, you get the point though, I hope.

The goal is to hopefully have rounded title bars, like this:

As you can see, the corner where the close/minimize/maximize buttons are is rounded. I'd like to achieve this effect in MonoGame, without having to bake it into the texture.

Not baking it into the texture allows me to easily adjust the amount of rounding to apply to each corner - oh yeah, I also want to choose which corners I want to round - whether it's only one corner, two, three, four, etc, and which ones do and don't get rounded.

If there's any way to achieve this, please let me know Image may be NSFW.
Clik here to view.
:smiley:

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles