Page 1 of 1

Seems imposible to create ECF_R8G8B8 textures

Posted: Sat Feb 17, 2007 7:01 pm
by cederron
I want to create a texture with ECF_R8G8B8 color format, this way it
matches the format of a movie and i don't have to convert color formats.

I have tried setting the flag:

pDevice->getVideoDriver()->setTextureCreationFlag(irr::video::ETCF_ALWAYS_32_BIT, true);

and I have also tried to set it false.

Then I call :

pDevice->getVideoDriver()->addTexture(irr::core::dimension2d<irr::s32>(width, height),
str, irr::video::ECF_R8G8B8);

But the texture returned is always ECF_A1R5G5B5 or ECF_A8R8G8B8.

How the hell do i get a ECF_R8G8B8 ???????

Posted: Sat Feb 17, 2007 7:23 pm
by cederron
Well, after debugging I see it's imposible to create ECF_R8G8B8, isn't it?

only solution is to use ECF_A8R8G8B8, and I won't need to convert color format anyway.