Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef OVR_Platform_Default_h
00025 #define OVR_Platform_Default_h
00026
00027
00028 #include <Kernel/OVR_Types.h>
00029
00030 #if defined(OVR_OS_WIN32)
00031 #include "Win32_Platform.h"
00032
00033 #include "../Render/Render_D3D11_Device.h"
00034 #undef OVR_D3D_VERSION
00035 #include "../Render/Render_D3D10_Device.h"
00036
00037
00038
00039
00040 #define OVR_DEFAULT_RENDER_DEVICE_SET \
00041 SetupGraphicsDeviceSet("D3D11", &OVR::Render::D3D11::RenderDevice::CreateDevice, \
00042 SetupGraphicsDeviceSet("D3D10", &OVR::Render::D3D10::RenderDevice::CreateDevice) )
00043
00044 #elif defined(OVR_OS_MAC) && !defined(OVR_MAC_X11)
00045 #include "OSX_Platform.h"
00046
00047 #define OVR_DEFAULT_RENDER_DEVICE_SET \
00048 SetupGraphicsDeviceSet("GL", &OVR::Render::GL::OSX::RenderDevice::CreateDevice)
00049
00050 #else
00051
00052 #include "Linux_Platform.h"
00053
00054 #define OVR_DEFAULT_RENDER_DEVICE_SET \
00055 SetupGraphicsDeviceSet("GL", &OVR::Render::GL::Linux::RenderDevice::CreateDevice)
00056
00057 #endif
00058
00059 #endif // OVR_Platform_Default_h