Best way to render into a window using latest CEGUI
Posted: Fri May 16, 2008 16:17
I was wondering whether there is an optimized way of rendering to a window in CCEGUI in a way that does not really effect performance to badly.
This is the Ogre article on it (see render to texture section:
http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_7
I have a API in my framework that wraps GUI libraries and I use CEGUI trough a GUI driver I made. I was thinking of adding support for a RenderContext Widget which would be defined as a widget that gives you an optimized section to render in that can be embedded within other GUI widgets which in the case of the CEGUI driver can then be a CEGUI FrameWindow or something similar.
I'm thinking of defining a custom CEGUI widget that I can hook to and detect from a .layout file. Such a widget should ideally not do anything at all with the contents of the window and if possible provide an easy to use API for updating the CEGUI texture used if a texture is required, although again I'd prefer to delegate rendering control completely.
Suggestions are welcome as to the best way to achieve this, the aim is finding the fastest method of rendering using Ogre into a CEGUI widget.
This is the Ogre article on it (see render to texture section:
http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_7
I have a API in my framework that wraps GUI libraries and I use CEGUI trough a GUI driver I made. I was thinking of adding support for a RenderContext Widget which would be defined as a widget that gives you an optimized section to render in that can be embedded within other GUI widgets which in the case of the CEGUI driver can then be a CEGUI FrameWindow or something similar.
I'm thinking of defining a custom CEGUI widget that I can hook to and detect from a .layout file. Such a widget should ideally not do anything at all with the contents of the window and if possible provide an easy to use API for updating the CEGUI texture used if a texture is required, although again I'd prefer to delegate rendering control completely.
Suggestions are welcome as to the best way to achieve this, the aim is finding the fastest method of rendering using Ogre into a CEGUI widget.