How could I use draw Image to paint window?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

kofight
Just popping in
Just popping in
Posts: 8
Joined: Tue Dec 12, 2006 02:01

How could I use draw Image to paint window?

Postby kofight » Thu Dec 14, 2006 09:47

I want to draw some content in a window by Image.draw().

It contains some animation, and maybe a little complicate. So I don't think use staticImage control is a good way.

I can't draw image on the window, it just draw above the window.

I mean that all the child window is covered.

How could I draw a Image only on the window, below the child window?

I try to override some method.

virtual void onRenderingStarted(WindowEventArgs& e);
virtual void drawSelf(float z);
virtual void populateRenderCache() {}

The result is same.

kofight
Just popping in
Just popping in
Posts: 8
Joined: Tue Dec 12, 2006 02:01

Postby kofight » Wed Dec 20, 2006 03:01

Could some one help me?

Did I express it clearly?

I only want do the same things like MFC's OnPaint().


Return to “Help”

Who is online

Users browsing this forum: No registered users and 25 guests