Anyway, for those who don't know how to center an image. Here's a quick How-to.
Code: Select all
ITexture* BackGround_Tex = _driver->getTexture("IMAGE.jpg");
s32 BGPosX = (_driver->getScreenSize().Width - BackGround_Tex->getSize().Width)/2; //ScreenX - BMP_Width / 2
s32 BGPosY = (_driver->getScreenSize().Height - BackGround_Tex->getSize().Height)/2; //ScreenY - BMP_Height / 2
_driver->draw2DImage(BackGround_Tex,core::position2d<s32>(BGPosX,BGPosY));