I am making a 2D puzzle game with Irrlicht engine and during making
i got problem about transparent image, which you can see from the
below example screen shot.
I used IVideoDriver::draw2DImage functions and I recognized the bug
of the function and fixed that bug by referencing this post..
http://irrlicht.sourceforge.net/phpBB2/ ... ates2dmode
Then i set the parameter of draw2DImage for the mouse cursor like this.
Code: Select all
my_videoDriver->draw2DImage(
this->my_cursorTexture.imageTexture,
irr::core::position2d<irr::s32>(
my_currentMousePos.x - this->my_startPoint.x,
my_currentMousePos.y - this->my_startPoint.y),
this->my_cursorImage[this->my_currentCursorIndex].sourceRect,
NULL,
irr::video::SColor(130, 255, 255, 255), false);
draw2DImage to 'true'. However, i realized using AlphaChannel and
transparented image can't be used together. Then,
HOW TO MAKE TRANSPARENT IMAGE WITH SETTING ALPHACHANNEL?
Above picture's cursor is TRANSPARENT IMAGE WITHOUT SETTING ALPHA
CHANNEL.
By the way, i found a post handling the similar problem.
http://irrlicht.sourceforge.net/phpBB2/ ... ding+image
But i am not sure how to use EMT_TRANSPARENT_ADD_COLOR. Is this
solution? then how can i set the value?
Any advice will be very helpful. Thanks.