HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImathGLU.h
Go to the documentation of this file.
1 //
2 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright Contributors to the OpenEXR Project.
4 //
5 
6 //
7 // Convenience functions that call GLU with Imath types
8 //
9 
10 #ifndef INCLUDED_IMATHGLU_H
11 #define INCLUDED_IMATHGLU_H
12 
13 #include <GL/gl.h>
14 #include <GL/glu.h>
15 
16 #include "ImathVec.h"
17 
18 /// Call gluLookAt with the given position, interest, and up-vector.
19 inline void
21  const IMATH_INTERNAL_NAMESPACE::V3f& interest,
23 {
24  gluLookAt (pos.x, pos.y, pos.z, interest.x, interest.y, interest.z, up.x, up.y, up.z);
25 }
26 
27 #endif
Vec3< float > V3f
Vec3 of float.
Definition: ImathVec.h:849
GA_API const UT_StringHolder up
void gluLookAt(const IMATH_INTERNAL_NAMESPACE::V3f &pos, const IMATH_INTERNAL_NAMESPACE::V3f &interest, const IMATH_INTERNAL_NAMESPACE::V3f &up)
Call gluLookAt with the given position, interest, and up-vector.
Definition: ImathGLU.h:20