summaryrefslogtreecommitdiff
path: root/src/T2DLL/UT2Coordinate.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/UT2Coordinate.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/T2DLL/UT2Coordinate.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/T2DLL/UT2Coordinate.h b/src/T2DLL/UT2Coordinate.h
new file mode 100644
index 0000000..a9e3586
--- /dev/null
+++ b/src/T2DLL/UT2Coordinate.h
@@ -0,0 +1,47 @@
+#pragma once
+#include "common.h"
+
+class UT2Coordinate {
+public:
+ static void UnitToQD(int&, int&, int);
+ static void UnitToQD(POINT&, int, int);
+ static void UnitToQD(RECT&, int, int);
+ static void UnitToQD(const RECT&, RECT&, int, int);
+ static void UnitToQDRoof(const RECT&, RECT&, int);
+ static void UnitToQDFloor(const RECT&, RECT&, int);
+ static void UnitToOffRect(const RECT&, RECT&, int);
+ static void QDToUnit(int&, int&, int);
+ static void QDToUnit(POINT&, int);
+ static void QDToUnit(SDimension16&, int);
+ static void QDToUnit(RECT&, int);
+ static void QDToUnit(const RECT&, RECT&, int);
+ static void NoRoofQDToUnit(const RECT&, RECT&, int);
+ static void BkgndToQD(int&, int&, int);
+ static void BkgndToQD(POINT&, int);
+ static void BkgndToQD(RECT&, int);
+ static void BkgndToQD(const RECT&, RECT&, int);
+ static void QDToBkgnd(int&, int&, int);
+ static void QDToBkgnd(POINT&, int);
+ static void QDToBkgnd(SDimension16&, int);
+ static void QDToBkgnd(RECT&, int);
+ static void QDToBkgnd(const RECT&, RECT&, int);
+ static void UnitToBkgnd(const RECT&, RECT&);
+ static void BkgndToUnit(const RECT&, RECT&);
+ static void MakeRect(RECT&, const POINT&, const SDimension16&);
+ static void MakeRect(RECT&, const POINT&, int, int);
+ static void MakeRect(RECT&, int, int);
+ static void MakeCenterRect(RECT&, const POINT&, int, int);
+ static void AddRect(RECT&, const RECT&);
+ static void SubRect(RECT&, const RECT&);
+ static void ZoomOut(RECT&, int);
+
+ // fixme
+ static int UnitVSize(int) { return 0; }
+ static int UnitHSize(int) { return 0; }
+ static int BkgndVSize(int) { return 0; }
+ static int BkgndHSize(int) { return 0; }
+ static int CalcRoofThick(int) { return 0; }
+ static int CalcFloorThick(int) { return 0; }
+ static void QDToOff(POINT&, int) {}
+ static int RectWidth(const RECT&) { return 0; }
+};