Page 1 of 1

Drawing some statistics nice graphics

Posted: Mon Mar 20, 2006 15:23
by vinny_the_true
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

Posted: Mon Mar 20, 2006 17:51
by lindquist
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

Posted: Tue Mar 21, 2006 12:15
by vinny_the_true
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