ImathGLU.h 628 B

123456789101112131415161718192021222324252627
  1. //
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. // Copyright Contributors to the OpenEXR Project.
  4. //
  5. //
  6. // Convenience functions that call GLU with Imath types
  7. //
  8. #ifndef INCLUDED_IMATHGLU_H
  9. #define INCLUDED_IMATHGLU_H
  10. #include <GL/gl.h>
  11. #include <GL/glu.h>
  12. #include "ImathVec.h"
  13. /// Call gluLookAt with the given position, interest, and up-vector.
  14. inline void
  15. gluLookAt (const IMATH_INTERNAL_NAMESPACE::V3f& pos,
  16. const IMATH_INTERNAL_NAMESPACE::V3f& interest,
  17. const IMATH_INTERNAL_NAMESPACE::V3f& up)
  18. {
  19. gluLookAt (pos.x, pos.y, pos.z, interest.x, interest.y, interest.z, up.x, up.y, up.z);
  20. }
  21. #endif