//////////////////////////////////////////////////////////////////////////////////
//
//  utils.h  --  Some shared definitions 
//

#ifndef UTILS_H
#define UTILS_H

// Check for intersection of two rectangles. 
// Return true if they intersect, false otherwise.

bool IntersectRects( const Rect& r1, const Rect& r2 );

// My own struct to hold color. CoreTools has an RGB class, but
//  due to the name collision with the standard Win32 macro of the same name, 
//  the emulator has no class RGB.   

struct myRGB {  
      int red;
      int green;
      int blue;
      myRGB() : red(0), green(0), blue(0) {}  // black by default
      myRGB( int r, int g, int b ) : red(r), green(g), blue(b) {}
};

#endif  // UTILS_H
