source: trunk/Utilities/DirectShowReferenceSource/Sample/Unity01/RenderingPlugin/RenderingPlugin.h @ 937

Last change on this file since 937 was 638, checked in by roman, 8 years ago

Media source texture reader and Unity 3D sample project

File size: 1.0 KB
Line 
1#pragma once
2
3#include "Unity/IUnityInterface.h"
4
5
6// Which platform we are on?
7#if _MSC_VER
8#define UNITY_WIN 1
9#elif defined(__APPLE__)
10        #if defined(__arm__)
11                #define UNITY_IPHONE 1
12        #else
13                #define UNITY_OSX 1
14        #endif
15#elif defined(UNITY_METRO) || defined(UNITY_ANDROID) || defined(UNITY_LINUX)
16// these are defined externally
17#else
18#error "Unknown platform!"
19#endif
20
21
22
23// Which graphics device APIs we possibly support?
24#if UNITY_METRO
25        #define SUPPORT_D3D11 1
26        #if WINDOWS_UWP
27                #define SUPPORT_D3D12 1
28        #endif
29#elif UNITY_WIN
30        //#define SUPPORT_D3D9 1
31        #define SUPPORT_D3D11 1 // comment this out if you don't have D3D11 header/library files
32        #ifdef _MSC_VER
33                #if _MSC_VER >= 1900
34                        //#define SUPPORT_D3D12 1
35                #endif
36        #endif
37        //#define SUPPORT_OPENGL_LEGACY 1
38        //#define SUPPORT_OPENGL_UNIFIED 1
39        #define SUPPORT_OPENGL_CORE 1
40#elif UNITY_IPHONE || UNITY_ANDROID
41        #define SUPPORT_OPENGL_UNIFIED 1
42        #define SUPPORT_OPENGL_ES 1
43#elif UNITY_OSX || UNITY_LINUX
44        #define SUPPORT_OPENGL_LEGACY 1
45        #define SUPPORT_OPENGL_UNIFIED 1
46        #define SUPPORT_OPENGL_CORE 1
47#endif
Note: See TracBrowser for help on using the repository browser.