position2d.h 972 B

1234567891011121314151617181920212223242526272829303132
  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