(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.

This commit is contained in:
rubidium
2007-12-22 23:30:28 +00:00
parent a7d54cf946
commit 8f0e68285b
79 changed files with 87 additions and 120 deletions

View File

@@ -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 */