OpenVDB 13.0.1
Loading...
Searching...
No Matches
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
13namespace openvdb {
15namespace OPENVDB_VERSION_NAME {
16namespace math {
17using half = half;
18}}}
19#else
20#include <openvdb/math/Half.h>
21namespace openvdb {
23namespace OPENVDB_VERSION_NAME {
24namespace math {
25using half = internal::half;
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:283
internal::half half
Definition HalfDecl.h:25
Definition Exceptions.h:13
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:218