Here's the my source code :
Code: Select all
video::IVideoDriver* driver = device->getVideoDriver();
gui::IGUIEnvironment* env = device->getGUIEnvironment();
driver-> draw2DLine (position2d <s32> (20, 20), position2d <s32> (80, 80), SColor(0, 0, 0, 0));
env->addImage(driver->getTexture("speedometer.png"),
core::position2d<s32>(800,10));