how to use CEGUI draw "Circle Control"

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

jasonjzz
Not too shy to talk
Not too shy to talk
Posts: 40
Joined: Mon Dec 22, 2008 06:37

how to use CEGUI draw "Circle Control"

Postby jasonjzz » Thu Jun 03, 2010 05:30

CEGUI default control All are based on Rectangle.

I dont know whether to support the draw "Circle Control".


like this:

Image


thanks!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: how to use CEGUI draw "Circle Control"

Postby CrazyEddie » Thu Jun 03, 2010 09:03

To do something like in the image posted you just ensure your 'fill' image is circular also, and just treat the thing as a square otherwise. Since you have transparent regions, it shows as circular, and this is the way probably 99% of these things are handled. To have actual circular windows, where child content is clipped to the inner edge of the circle is not currently supported.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: Bing [Bot] and 6 guests