Page 1 of 1

Intersect confusion

PostPosted: Jan 11, 2005 @ 5:55pm
by fzammetti
I'm having some trouble with Intersect in GD 3.50. The following line:

CGapiSurface::Intersect(loc.x, loc.y, pBlitSurface, NULL, x * CMG_TILE_WIDTH, y * CMG_TILE_HEIGHT, pCurrentLevelTiles[*boardData], NULL, &colPoint);

...results in the error:

c:\temp\etc\kgarcade2\source\common\cplatformerplayer.cpp(191) : error C2660: 'Intersect' : function does not take 9 parameters

Now, I'm looking at the docs that shipped with this, and I see:

CGapiSurface::Intersect

static HRESULT Intersect(
LONG x1, LONG y1,
CGapiSurface* pSrcSurface1, RECT* pSrcRect1,
LONG x2, LONG y2,
CGapiSurface* pSrcSurface2, RECT* pSrcRect2,
POINT* pIntersection);

I count nine parameters there. Now, strangely, the following compiles:

pBlitSurface->Intersect(loc.x, loc.y, NULL, pCurrentLevelTiles[*boardData], x * CMG_TILE_WIDTH, y * CMG_TILE_HEIGHT, NULL, &colPoint);

I'm sure this is something stupid on my part, but I'm at a loss to spot it. Anyone? Thanks!

Frank

PostPosted: Jan 11, 2005 @ 9:09pm
by Johan

PostPosted: Jan 11, 2005 @ 9:13pm
by fzammetti