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
22  const IMATH_INTERNAL_NAMESPACE::V3f& interest,
24 {
25  gluLookAt (
26  pos.x,
27  pos.y,
28  pos.z,
29  interest.x,
30  interest.y,
31  interest.z,
32  up.x,
33  up.y,
34  up.z);
35 }
36 
37 #endif
Vec3< float > V3f
Vec3 of float.
Definition: ImathVec.h:1064
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