This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Intersect confusion


Intersect confusion

Postby fzammetti » Jan 11, 2005 @ 5:55pm

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
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Johan » Jan 11, 2005 @ 9:09pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby fzammetti » Jan 11, 2005 @ 9:13pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum