summaryrefslogtreecommitdiff
path: root/include/position2d.h
diff options
context:
space:
mode:
authorMirrorbot <mirrorbot@cogarr.net>2025-12-27 17:53:06 -0600
committerMirrorbot <mirrorbot@cogarr.net>2025-12-27 17:53:06 -0600
commit71e94ee161447b84c0eaabf6567f8fa62262cd3e (patch)
tree391064cc6173a6fe75069af2fdc1978af12f623e /include/position2d.h
downloadirrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.tar.gz
irrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.tar.bz2
irrlicht-71e94ee161447b84c0eaabf6567f8fa62262cd3e.zip
Inital commitHEADmaster
Diffstat (limited to 'include/position2d.h')
-rw-r--r--include/position2d.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/position2d.h b/include/position2d.h
new file mode 100644
index 0000000..63275d2
--- /dev/null
+++ b/include/position2d.h
@@ -0,0 +1,32 @@
+// Copyright (C) 2002-2012 Nikolaus Gebhardt
+// This file is part of the "Irrlicht Engine".
+// For conditions of distribution and use, see copyright notice in irrlicht.h
+
+//! As of Irrlicht 1.6, position2d is a synonym for vector2d.
+/** You should consider position2d to be deprecated, and use vector2d by preference. */
+
+#ifndef __IRR_POSITION_H_INCLUDED__
+#define __IRR_POSITION_H_INCLUDED__
+
+#include "vector2d.h"
+
+namespace irr
+{
+namespace core
+{
+
+// Use typedefs where possible as they are more explicit...
+
+//! \deprecated position2d is now a synonym for vector2d, but vector2d should be used directly.
+typedef vector2d<f32> position2df;
+
+//! \deprecated position2d is now a synonym for vector2d, but vector2d should be used directly.
+typedef vector2d<s32> position2di;
+} // namespace core
+} // namespace irr
+
+// ...and use a #define to catch the rest, for (e.g.) position2d<f64>
+#define position2d vector2d
+
+#endif // __IRR_POSITION_H_INCLUDED__
+