position2d.h 855 B

12345678910111213141516171819202122232425262728
  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. #pragma once
  7. #include "vector2d.h"
  8. namespace irr
  9. {
  10. namespace core
  11. {
  12. // Use typedefs where possible as they are more explicit...
  13. //! \deprecated position2d is now a synonym for vector2d, but vector2d should be used directly.
  14. typedef vector2d<f32> position2df;
  15. //! \deprecated position2d is now a synonym for vector2d, but vector2d should be used directly.
  16. typedef vector2d<s32> position2di;
  17. } // namespace core
  18. } // namespace irr
  19. // ...and use a #define to catch the rest, for (e.g.) position2d<f64>
  20. #define position2d vector2d