Drawing some statistics nice graphics

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

User avatar
vinny_the_true
Just popping in
Just popping in
Posts: 7
Joined: Wed Aug 10, 2005 10:11

Drawing some statistics nice graphics

Postby vinny_the_true » Mon Mar 20, 2006 15:23

Hi !

I want to put some nice statistics in my GUI, represented by graphical curves, lines, bars, or whatever.

Are you guys thinking in something right now in CEGUI that I should know ? Something to help me doing this ?

The ideal would be anything that let me directly draw lines, in imageset images for example. So far I found nothing, but I'm sure there is something somewhere, right ? :D

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Mon Mar 20, 2006 17:51

CEGUI does'nt provide this kind of rendering functions, but a Imageset is just a texture, and a image is just some part of this texture.

So to do this you'll need to render your statistics to a texture. The CEGUI renderer you use is providing a specialised CEGUI::Texture to match your "platform". By casting the Imageset texture pointer to this you should be able to extract the texture id or whatever it's called in your case.

If you update the texture, you should request a redraw.

HTH

User avatar
vinny_the_true
Just popping in
Just popping in
Posts: 7
Joined: Wed Aug 10, 2005 10:11

Postby vinny_the_true » Tue Mar 21, 2006 12:15

ok, thanks for the help :)

I'm working with Ogre, and I just found something in it that could help me, I will check this out.

If someone here wants to be informed, let me know :P


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 6 guests