diff options
author | rubidium <rubidium@openttd.org> | 2007-12-22 23:30:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-22 23:30:28 +0000 |
commit | 1f6043458c2677f3651618bc23f8b0a24598bffb (patch) | |
tree | bb7b4abc525aa4e79b1a40ebe21516d9c47244e1 /src/core | |
parent | f9c26f80c5f95e1860722a33bdc6e8af39beb482 (diff) | |
download | openttd-1f6043458c2677f3651618bc23f8b0a24598bffb.tar.xz |
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/geometry_type.hpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/core/geometry_type.hpp b/src/core/geometry_type.hpp new file mode 100644 index 000000000..f2759ef4d --- /dev/null +++ b/src/core/geometry_type.hpp @@ -0,0 +1,37 @@ +/* $Id$ */ + +/** @file geometry_type.hpp All geometry types in OpenTTD. */ + +#ifndef GEOMETRY_TYPE_HPP +#define GEOMETRY_TYPE_HPP + +struct Point { + int x; + int y; +}; + +struct Dimension { + int width; + int height; +}; + +struct Rect { + int left; + int top; + int right; + int bottom; +}; + +struct PointDimension { + int x; + int y; + int width; + int height; +}; + +struct Pair { + int a; + int b; +}; + +#endif /* GEOMETRY_TYPE_HPP */ |