// SPDX-FileCopyrightText: 2021 Jorrit Rouwe // SPDX-License-Identifier: MIT #pragma once #include #pragma warning (push, 0) #pragma warning (disable : 5039) // winbase.h(13179): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. #pragma warning (disable : 5204) // implements.h(65): warning C5204: 'Microsoft::WRL::CloakedIid': class has virtual functions, but its trivial destructor is not virtual; instances of objects derived from this class may not be destructed correctly #pragma warning (disable : 4265) // implements.h(1449): warning C4265: 'Microsoft::WRL::FtmBase': class has virtual functions, but its non-trivial destructor is not virtual; instances of this class may not be destructed correctly #pragma warning (disable : 5220) // implements.h(1648): warning C5220: 'Microsoft::WRL::Details::RuntimeClassImpl,true,false,true,IWeakReference>::refcount_': a non-static data member with a volatile qualified type no longer implies #pragma warning (disable : 4986) // implements.h(2343): warning C4986: 'Microsoft::WRL::Details::RuntimeClassImpl::GetWeakReference': exception specification does not match previous declaration #define WIN32_LEAN_AND_MEAN #define Ellipse DrawEllipse // Windows.h defines a name that we would like to use #include #undef Ellipse #undef min // We'd like to use std::min and max instead of the ones defined in windows.h #undef max #undef DrawText // We don't want this to map to DrawTextW #include #include #include // for ComPtr #pragma warning (pop) #if defined(__clang__) #pragma clang diagnostic ignored "-Wheader-hygiene" #endif using Microsoft::WRL::ComPtr; using namespace JPH;