Seems imposible to create ECF_R8G8B8 textures

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
cederron
Posts: 53
Joined: Thu Jul 13, 2006 11:35 pm

Seems imposible to create ECF_R8G8B8 textures

Post 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 ???????
cederron
Posts: 53
Joined: Thu Jul 13, 2006 11:35 pm

Post 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.
Post Reply