Debian Codegraph @

src/Imath/ImathGLU.h

raw
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
20 gluLookAt (const IMATH_INTERNAL_NAMESPACE::V3f& pos,
21 const IMATH_INTERNAL_NAMESPACE::V3f& interest,
22 const IMATH_INTERNAL_NAMESPACE::V3f& up)
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