Code: Select all
int main( )
{
config=new Config( );
device=createDevice(video::EDT_DIRECT3D8, // ^_^'
dimension2d<s32>(config->screen_w, config->screen_h),
config->screen_bpp,
config->screen_full,
config->screen_stencil,
config->screen_vsync);
device->setWindowCaption(L"Cruel Track");
driver = device->getVideoDriver( );
ITexture *teh0=driver->getTexture("f:/1.png");
ITexture *teh1=driver->getTexture("f:/2.png");
while (device->run( )){
driver->beginScene(true, true, SColor(100,0,0,0));
driver->draw2DImage(teh0, core::position2d< s32 >(100,100),
core::rect< s32 >(40,40,500,500), 0, SColor(150, 25, 255, 255), true);
driver->draw2DImage(teh1, core::position2d< s32 >(170,170),
core::rect< s32 >(40,40,500,500), 0, SColor(150, 255, 255, 255), true);
driver->endScene();
}
return 0;
}