HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HalfDecl.h
Go to the documentation of this file.
1 // Copyright Contributors to the OpenVDB Project
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #ifndef OPENVDB_HALFDECL_HAS_BEEN_INCLUDED
5 #define OPENVDB_HALFDECL_HAS_BEEN_INCLUDED
6 
7 #ifdef OPENVDB_USE_IMATH_HALF
8 #ifdef OPENVDB_IMATH_VERSION
9 #include <Imath/half.h>
10 #else
11 #include <OpenEXR/half.h>
12 #endif
13 namespace openvdb {
15 namespace OPENVDB_VERSION_NAME {
16 namespace math {
17 using half = half;
18 }}}
19 #else
20 #include <openvdb/math/Half.h>
21 namespace openvdb {
23 namespace OPENVDB_VERSION_NAME {
24 namespace math {
26 }}}
27 #endif
28 
29 
30 #endif // OPENVDB_HALFDECL_HAS_BEEN_INCLUDED
imath_half_bits_t half
if we're in a C-only context, alias the half bits type to half
Definition: half.h:268
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:246
imath_half_bits_t half
if we're in a C-only context, alias the half bits type to half
Definition: Half.h:283
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:119