I think some people already posted about this but here is a clean screenshot that shows a bmp rendered in Software, OpenGL, DirectX8 and DirectX9 :
Original BMP :
Here is the code I used :
Code: Select all
driver->setTextureCreationFlag(ETCF_OPTIMIZED_FOR_QUALITY, true);
ITexture *image = driver->getTexture("sp1.bmp");
driver->makeColorKeyTexture(image, position2d<s32>(0,0));
while(device->run()) {
driver->beginScene(true, true, SColor(0,100,100,100));
driver->draw2DImage(image, position2d<s32>(380,180), rect<s32>(0,0,40,96), 0, SColor(255,255,255,255), true);
driver->endScene();
}