You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
60 lines
1.1 KiB
C
60 lines
1.1 KiB
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#if PLATFORM_WINDOWS
|
|
|
|
#define OPENVDB_AVAILABLE 1
|
|
|
|
THIRD_PARTY_INCLUDES_START
|
|
|
|
UE_PUSH_MACRO("check")
|
|
#undef check
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma warning (push)
|
|
#pragma warning (disable : 4146) // unary minus operator applied to unsigned type, result still unsigned
|
|
#pragma warning (disable : 6297) // Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value.
|
|
#endif
|
|
|
|
#ifndef M_PI
|
|
#define M_PI 3.14159265358979323846
|
|
#define LOCAL_M_PI 1
|
|
#endif
|
|
|
|
#ifndef M_PI_2
|
|
#define M_PI_2 1.57079632679489661923 // pi/2
|
|
#define LOCAL_M_PI_2 1
|
|
#endif
|
|
|
|
#define BOOST_ALLOW_DEPRECATED_HEADERS
|
|
|
|
#include <openvdb/openvdb.h>
|
|
#include <openvdb/io/Stream.h>
|
|
#include <openvdb/io/File.h>
|
|
#include <openvdb/tools/Prune.h>
|
|
#include <openvdb/tools/Dense.h>
|
|
#include <openvdb/math/Vec4.h>
|
|
#include <openvdb/math/Half.h>
|
|
|
|
#if LOCAL_M_PI
|
|
#undef M_PI
|
|
#endif
|
|
|
|
#if LOCAL_M_PI_2
|
|
#undef M_PI_2
|
|
#endif
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma warning (pop)
|
|
#endif
|
|
|
|
UE_POP_MACRO("check")
|
|
|
|
THIRD_PARTY_INCLUDES_END
|
|
|
|
#else
|
|
|
|
#define OPENVDB_AVAILABLE 0
|
|
|
|
#endif |