Difference between revisions of "CColMask"

From Project X Wiki
Jump to: navigation, search
 
(No difference)

Latest revision as of 03:45, 27 July 2011

Structure that contains mask for collision checking.

class CColMask
{
     int SX;
     int SY;
     CBitmap1* masks[32];
     
     bool Check(int x, int y, CColMask* trg, int trgx, int trgy);
     void CColMask(int ox, int oy, CBitmap1* Image);
};

masks - array of bitmap mask, shifted by one pixel for faster collision checking.
SX, SY - size by X and Y


     void CColMask(int ox, int oy, CBitmap1* Image);

Constructor. ox , oy - coordinates of mask center.