lgvier
17-04-2009 17:55:27
Hello everybody,
I'd like to implement rotation to MyGUI widgets, and as I'm new to MyGUI, I'm wondering if you could give me some advice so I can do the right thing from the beginning
I already adapted an opengl gui recently and those were the changes required:
1. Stored rotation on each widget
2. When rendering, applied 2d rotation to x and y and used glRotate
3. For mouse picking, used the rotated x and y for the intersects and rotated the mouse coordinates on the container widgets for the children component picking tests.
4. For clipping, switched from scissoring to stencil patterns to support irregular shapes - could also have used render to texture.
Any suggestion will be much appreciated.
Thanks a bunch!
I'd like to implement rotation to MyGUI widgets, and as I'm new to MyGUI, I'm wondering if you could give me some advice so I can do the right thing from the beginning

I already adapted an opengl gui recently and those were the changes required:
1. Stored rotation on each widget
2. When rendering, applied 2d rotation to x and y and used glRotate
3. For mouse picking, used the rotated x and y for the intersects and rotated the mouse coordinates on the container widgets for the children component picking tests.
4. For clipping, switched from scissoring to stencil patterns to support irregular shapes - could also have used render to texture.
Any suggestion will be much appreciated.

Thanks a bunch!