If I move the draw2dRectangle to before env->drawAll() then it doesn't draw at all. I'm thinking that the GUI env clears the display then draws, so it is drawing, but I just can't see it. When I draw it after env->drawAll, then it covers my items.
Works - draws box in front/on top of GUI items
Code: Select all
driver->beginScene(true, true, irr::video::SColor(0,0,0,0));
env->drawAll();
driver->draw2DRectangle(irr::video::SColor(225,209,199,73), irr::core::rect<irr::s32>(20,175,250,450));
driver->endScene();
Code: Select all
driver->beginScene(true, true, irr::video::SColor(0,0,0,0));
driver->draw2DRectangle(irr::video::SColor(225,209,199,73), irr::core::rect<irr::s32>(20,175,250,450));
env->drawAll();
driver->endScene();