plumageRender/src/render/glTFModel_Common.h

30 lines
813 B
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
/// 命名空间宏
#define GLTFLOADER_NAMESPACE_BEGIN namespace glTFLoader {
#define GLTFLOADER_NAMESPACE_END }
/// windows 导入导出宏GLTFLOADER_EXPORTS将在cmake中定义
/// unix-like 下提供符号可见性控制
#ifdef GLTFLOADER_STATIC_BUILD
#define GLTFLOADER_API
#define GLTFLOADER_LOCAL
#else
#ifdef _WIN32
#ifdef GLTFLOADER_EXPORTS
#define GLTFLOADER_API __declspec(dllexport)
#define GLTFLOADER_LOCAL
#else
#define GLTFLOADER_API __declspec(dllimport)
#define GLTFLOADER_LOCAL
#endif
#else
#if __GNUC__ >= 4 || defined(__clang__)
#define GLTFLOADER_API __attribute__ ((visibility ("default")))
#define GLTFLOADER_LOCAL __attribute__ ((visibility ("hidden")))
#else
#define GLTFLOADER_API
#define GLTFLOADER_LOCAL
#endif
#endif
#endif