forked from AcademySoftwareFoundation/openvdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
16 changed files
with
174 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright Contributors to the OpenVDB Project | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#ifndef OPENVDB_HALFDECL_HAS_BEEN_INCLUDED | ||
#define OPENVDB_HALFDECL_HAS_BEEN_INCLUDED | ||
|
||
#ifdef OPENVDB_USE_IMATH_HALF | ||
#ifdef OPENVDB_IMATH_VERSION | ||
#include <Imath/half.h> | ||
#else | ||
#include <OpenEXR/half.h> | ||
#endif | ||
namespace openvdb { | ||
OPENVDB_USE_VERSION_NAMESPACE | ||
namespace OPENVDB_VERSION_NAME { | ||
namespace math { | ||
using half = half; | ||
}}} | ||
#else | ||
#include <openvdb/math/Half.h> | ||
namespace openvdb { | ||
OPENVDB_USE_VERSION_NAMESPACE | ||
namespace OPENVDB_VERSION_NAME { | ||
namespace math { | ||
using half = internal::half; | ||
}}} | ||
#endif | ||
|
||
|
||
#endif // OPENVDB_HALFDECL_HAS_BEEN_INCLUDED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.