aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/common.h
diff options
context:
space:
mode:
authorMatthew Stewart2018-02-25 02:01:02 -0500
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commita69f025818224c9bfeb52be11f31a2b6387bb76f (patch)
treed398acfc0660500df8f03fb8e836b87b58d40fee /engines/startrek/common.h
parent7c62092367d00418d930411ff4a080f6ad2d0417 (diff)
downloadscummvm-rg350-a69f025818224c9bfeb52be11f31a2b6387bb76f.tar.gz
scummvm-rg350-a69f025818224c9bfeb52be11f31a2b6387bb76f.tar.bz2
scummvm-rg350-a69f025818224c9bfeb52be11f31a2b6387bb76f.zip
STARTREK: Implement drawAllSprites properly.
Still need to do the part which calculates sprite priorities.
Diffstat (limited to 'engines/startrek/common.h')
-rw-r--r--engines/startrek/common.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/engines/startrek/common.h b/engines/startrek/common.h
new file mode 100644
index 0000000000..4598085a27
--- /dev/null
+++ b/engines/startrek/common.h
@@ -0,0 +1,39 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef STARTREK_COMMON_H
+#define STARTREK_COMMON_H
+
+#include "common/rect.h"
+
+namespace StarTrek {
+
+template<class T>
+T min(T a, T b) { return a < b ? a : b; }
+
+template<class T>
+T max(T a, T b) { return a > b ? a : b; }
+
+Common::Rect getRectEncompassing(Common::Rect r1, Common::Rect r2);
+
+}
+
+#endif