And,can the window use Shadow Progaramming? Please help me

PS:I'm a totally new learner for CEGUI and a poor English learner.So please excuse me and point out the mistakes in my words,Thanks~~

Moderators: CEGUI MVP, CEGUI Team
CrazyEddie wrote:I'm uncertain as to what you mean by the terms 'dynamic window' and 'shadow programming'
CE.
Oh ok "shadow programming" should have been "shader programming"
For dynamic windows there are a couple of opportunities. You can hook into the WIndow::update function either directly by subclassing and registering your new window type with the system or via the events system and the Window::EventWindowUpdated event (which can also be used to trigger scripts and such). The other way and is probably more what you're looking for is to use a CEGUI::RenderEffect attached to some Window that's backed by a CEGUI::RenderingWindow - this is the approach taken in CEGUI 0.7.0 for the wobbly windows in Demo7. Note that is is quite a low-level interface, it makes it more powerful, but also a bit more 'raw'
For shaders, the situation is basically the same. You can do it via RenderingWindow and RenderEffect objects. There's no concrete example's been released of how to do this - also note that this is not abstracted at all from the underlying API or engine. Also be aware this part of the system is not finished 100% so there is some variation at far as support goes (for example, shaders in DX10 does not work at the moment due to the way we incorrectly always install our own shader to do the 'normal' rendering) - shaders under OpenGL definitely works though and was used to produce a couple of the videos I put up on YouTube
The math in Demo7 is probably not a good example of how to do a wobbly effect. I just hacked it together one afternoon and that was that
Users browsing this forum: No registered users and 12 guests