Page 1 of 1
About makeColorKeyTexture
Posted: Mon Feb 22, 2010 9:13 am
by wuyihao
Code: Select all
video::ITexture* image = driver->getTexture("./media/hero.png");
driver->makeColorKeyTexture(image,core::position2d<s32>(0,0));
driver->draw2DImage(image,core::position2d<s32>(x,y));
Those are parts of my project.
But after it drew on the device.I found it does'nt have a Alpha channel.Why?
Thank you
Posted: Mon Feb 22, 2010 9:34 am
by Bear_130278
BC Color-key and Alpha blending could not be together... you have to choose.
))
Posted: Mon Feb 22, 2010 12:12 pm
by hybrid
Question is, if the previous alpha channel is meant, or alpha channel at all. You may have to pass the correct parameter to the draw2DImage method.
Posted: Tue Feb 23, 2010 1:52 pm
by wuyihao
Sorry.I don't quit understand what I should do
Posted: Tue Feb 23, 2010 6:32 pm
by hybrid
You shall explain what you really meant with your statement. What part of the alpha channel is broken?