PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Creating sprites in memory and blitting those onthe screen

Hi all!

I'm new to GapiTools and was playing around with it. I asked myself: Can I create a sprite in memory and blit it with a mask like MaskBlt does for resources? The problem is that I want to change the sprites during the game, so using static resources is impossible. What I'd like to have is a method like

void MaskBlt(CGapiBuffer* pBuffer, DWORD dwLeft, DWORD dwTop, DWORD dwWidth, DWORD dwHeight, DWORD dwSourceLeft, DWORD dwSourceTop, COLORREF maskColor, BOOL bScreen = FALSE)

Any help is appreciated :D

Thanks,

FunkyMonk
Hi,

GapiTools does not support MaskBlt between buffers. If you are not too far into your project I would recommend you to try out the new GapiDraw (it has all features of GapiTools + much more).

If I get the time I will try to add buffered MaskBlt in GapiTools 1.09, which will be released before Friday.

/Johan
Hi Johan,

thanks for your reply. I really like the light-weight GapiTools (keep up the good work ;-)). And I think a buffered MaskBlt would really be a big plus for the GapiTools. BTW, the source code isn't free, right? Otherwise, I might put in the MaskBlt myself 8).

FunkyMonk