PocketMatrix forums

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

GapiDrawNet: GapiSurface.Intersect

Hello Forum,

I am trying to use the GapiSurface.Intersect method from GapiDrawNet and have run into a challenge with passing it null parameters. The method accepts references to rectangle objects that specify (I am assuming) the area of a sprite that is to be monitored for collisions. However, I want to monitor the whole sprite for collisions so I passed null for the rectangle paratmers. When I go to compile the code, I am informed that the compiler cannot convert null to a rectangle reference.

How do I use the Interesect method without specifying a rectangle?

I am using C# and Visual Studio.NET 2003. I am new to c# and gapidrawnet so maybe I am overlooking something.

Any suggestions would be greatly appreciated,
Joe
I'll have a look at it tonight
I have just uploaded a new version which has a few more overloaded versions of inteersect. I have not tested the new versions (hey, it's a beta right) so please let me know how they work for you.
Many thanks.

So far GapiDrawNet has been fantastic. When I get a chance to test out the update, I will let you know how it goes.

Cheers,
Joe