I have run into a challenge using the DrawMask function to add masks to my GapiMaskSurface. The game I am working on is tile based and certain tiles that affect sprite movement are drawn to the GapiMaskSurface using DrawMask. I can call DrawMask 7 times. On the 8th time, a INVALIDRECT error is generated.
The code is as follows:
I am using Visual Studio .NET and GapiDrawNet version 3.0 Beta3. Any suggestions on what may be the problem would be greatly appreciated.
Cheers,
Joe
The code is as follows:
- Code:
rectCellRect = new GDRect (
iRelativeLeft,
iRelativeTop,
iRelativeLeft + gsCellGraphic.Width,
iRelativeTop + gsCellGraphic.Height);
maskSurface.DrawMask (
ref rectCellRect,
m_GameMap [iRow, iColumn, iLayer].m_Tile.iMaskID);
I am using Visual Studio .NET and GapiDrawNet version 3.0 Beta3. Any suggestions on what may be the problem would be greatly appreciated.
Cheers,
Joe