position2d.h 986 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. //! As of Irrlicht 1.6, position2d is a synonym for vector2d.
  5. /** You should consider position2d to be deprecated, and use vector2d by preference. */
  6. #ifndef __IRR_POSITION_H_INCLUDED__
  7. #define __IRR_POSITION_H_INCLUDED__
  8. #include "vector2d.h"
  9. namespace irr
  10. {
  11. namespace core
  12. {
  13. // Use typedefs where possible as they are more explicit...
  14. //! \deprecated position2d is now a synonym for vector2d, but vector2d should be used directly.
  15. typedef vector2d<f32> position2df;
  16. //! \deprecated position2d is now a synonym for vector2d, but vector2d should be used directly.
  17. typedef vector2d<s32> position2di;
  18. } // namespace core
  19. } // namespace irr
  20. // ...and use a #define to catch the rest, for (e.g.) position2d<f64>
  21. #define position2d vector2d
  22. #endif // __IRR_POSITION_H_INCLUDED__