Code: Select all
while(device->run() && driver)
if (device->isWindowActive())
{
driver->beginScene(true, true, SColor(0,0,0,0));
driver->draw2DLine(position2d<s32>(0,0),position2d<s32>(500,500),SColor(255,255,255,255));
driver->draw2DRectangle(SColor(255,255,255,255),rect<s32>(10,10,54,54));
driver->endScene();
}
}