geometry_type.hpp

Go to the documentation of this file.
00001 /* $Id: geometry_type.hpp 11688 2007-12-23 18:08:39Z egladil $ */
00002 
00005 #ifndef GEOMETRY_TYPE_HPP
00006 #define GEOMETRY_TYPE_HPP
00007 
00008 #if defined(__AMIGA__)
00009   /* AmigaOS already has a Point declared */
00010   #define Point OTTD_Point
00011 #endif /* __AMIGA__ */
00012 
00013 #if defined(__APPLE__)
00014   /* Mac OS X already has both Rect and Point declared */
00015   #define Rect OTTD_Rect
00016   #define Point OTTD_Point
00017 #endif /* __APPLE__ */
00018 
00019 
00020 struct Point {
00021   int x;
00022   int y;
00023 };
00024 
00025 struct Dimension {
00026   int width;
00027   int height;
00028 };
00029 
00030 struct Rect {
00031   int left;
00032   int top;
00033   int right;
00034   int bottom;
00035 };
00036 
00037 struct PointDimension {
00038   int x;
00039   int y;
00040   int width;
00041   int height;
00042 };
00043 
00044 struct Pair {
00045   int a;
00046   int b;
00047 };
00048 
00049 #endif /* GEOMETRY_TYPE_HPP */

Generated on Wed Oct 1 17:03:20 2008 for openttd by  doxygen 1.5.6