Drawing text at end.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
alfabeta90
Posts: 52
Joined: Wed Dec 06, 2006 5:18 pm

Drawing text at end.

Post by alfabeta90 »

I render a black bitmap, map and a text. I run the program and i see only the black bitmap at first place and the map but no text. I think the text is behind the map. How may i change code to draw the text first?

Code: Select all

	IGUIFont* font = device->getGUIEnvironment()->getFont("images/courier.bmp");
    while(device->run())
    { 
        driver->beginScene(true, true, SColor(0,192,192,192));
			font->draw(L"Also mixing with 3d graphics is possible.",rect<s32>(10,10,300,60),SColor(255,255,255,0));
			smgr->drawAll();
            guienv->drawAll();
	    driver->endScene();
	}  
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

maybe you should first:

Code: Select all

smgr->drawAll();
and then:

Code: Select all

font->draw(L"Also mixing with 3d graphics is possible.",rect<s32>(10,10,300,60),SColor(255,255,255,0));
?
alfabeta90
Posts: 52
Joined: Wed Dec 06, 2006 5:18 pm

Post by alfabeta90 »

Ofcourse, stupid of me :)
Post Reply