void draw(int xpos,int ypos,int xto = -1,int yto = -1)
{
// Draws this image as it would be shown normally
src.bottom = height;
src.left = 0;
src.right = width;
src.top = 0;
dst.bottom = ypos+height;
dst.left = xpos;
dst.right = xpos+width;
dst.top = ypos;
// Are we scaling?
if(xto != -1 && yto != -1)
{
dst.right = xto+xpos;
dst.bottom = yto+ypos;
}
if(FAILED(back->Blt(&dst,data,&src,DDBLT_WAIT | DDBLT_KEYSRC,NULL)))
error_debug("DirectX Normal 2D Image Draw Error. Either your video card sucks or DirectX is broken.");
fatal_debug("***Drawing Error.***");
}
What must I do to the function or DDBLTFX struct to get alpha effects working. I have already played with the values in DDBLTFX and DDBLT flags and that doesn't work.
*** Do not refer me to another site, i've already been everywhere else.
*** Do not tell me a software equivalent method, it must be accelerated by hardware.

New Topic/Question
Reply





MultiQuote


|