Page 1 of 1

Drawing text at end.

Posted: Wed Jun 27, 2007 3:20 pm
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();
	}  

Posted: Wed Jun 27, 2007 3:44 pm
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));
?

Posted: Wed Jun 27, 2007 4:00 pm
by alfabeta90
Ofcourse, stupid of me :)