Possible to do odd shapes (circles ect) with a mask?

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

Azure
Just popping in
Just popping in
Posts: 13
Joined: Thu Dec 28, 2006 22:37

Possible to do odd shapes (circles ect) with a mask?

Postby Azure » Tue Jan 02, 2007 20:42

I want to do a minimap, but would like it to be a circle shape. It seems this would require some kind of 'mask image' to define where cegui would draw the window. Without such a mask, it seems we are limited to square/rectangular shapes no?

What are our options here?

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Tue Jan 02, 2007 21:01

AFAIK, masks doesn't exist (or only rectangular ones). If the minimap is fixed-size maybe you could accomplis it by creating a new widget type, but i don't know much about how to accomplis this.

Azure
Just popping in
Just popping in
Posts: 13
Joined: Thu Dec 28, 2006 22:37

Postby Azure » Tue Jan 02, 2007 21:55

Even creating a new widget would require some kind of mask though right?

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Tue Jan 02, 2007 22:19

right :) but as a last chance you could try to implement a pseudo-mask (by rewriting some methods atc. but i really dont know much about that.)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests