geometry_type.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef GEOMETRY_TYPE_HPP
00013 #define GEOMETRY_TYPE_HPP
00014
00015 #if defined(__AMIGA__)
00016
00017 #define Point OTTD_Point
00018 #endif
00019
00020 #if defined(__APPLE__)
00021
00022 #define Rect OTTD_Rect
00023 #define Point OTTD_Point
00024 #endif
00025
00026
00028 struct Point {
00029 int x;
00030 int y;
00031 };
00032
00034 struct Dimension {
00035 uint width;
00036 uint height;
00037 };
00038
00040 struct Rect {
00041 int left;
00042 int top;
00043 int right;
00044 int bottom;
00045 };
00046
00051 struct PointDimension {
00052 int x;
00053 int y;
00054 int width;
00055 int height;
00056 };
00057
00059 struct Pair {
00060 int a;
00061 int b;
00062 };
00063
00064 #endif