Fx. when using Ogre as the renderer, everything is translated into triangles... The diagonal between these triangles is currently fixed at top-left to bottom-right.
I would like to be able to control wether the diagonal is TL->BR or BL-TR.
The reason for this is that I'm trying to make a widget set that mainly uses a white image and instead creates the look by using colour-gradients.
These gradients are different with the two diagonal orientations.
It might be a little difficult to see the difference but it's the bright background that does it. Try viewing them on a black background or zoom alot

[img align=left]http://www.helix.dk/shots/gradient1.jpg[/img]
[img align=left]http://www.helix.dk/shots/gradient2.jpg[/img]
the first shot is from my current test...
the second is from my old homemade gui system. and I'd really like to keep the look while changing to CEGUI instead.
Writing a GUI from scratch is pretty hard, and my planning was not good enough.
From looking at the OgreRenderer source it seems that making the feature should be pretty straightforward. But I'm still very new to CEGUI, and I'm not sure which class should control it.
But I'm thinking something like:
Code: Select all
image->setTriangleDiagonalMode( TopLeftToBottomRight );