Render GUI in texture

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
FLUF
Posts: 14
Joined: Fri Jan 12, 2007 11:32 pm
Contact:

Render GUI in texture

Post by FLUF »

I render gui in texture such as:

Code: Select all

        driver->beginScene(true, true, 0);

        driver->setRenderTarget(rt);
        env->drawAll();
        driver->setRenderTarget(0);

        smgr->drawAll();
        driver->endScene();
But I have trouble. Position all widgest stay old.
For example, I have button on top left corner. Whan gui renden in texture on object, I can see my button on center screen. And whan I try push this button... I think you undestend )

How render GUI in texture whith position widgets?
Post Reply