Platform_Default.h
Go to the documentation of this file.
00001 /************************************************************************************
00002 
00003 Filename    :   Platform_Default.h
00004 Content     :   Default Platform class and RenderDevice selection file
00005 Created     :   October 4, 2012
00006 Authors     :   
00007 
00008 Copyright   :   Copyright 2012 Oculus VR, Inc. All Rights reserved.
00009 
00010 Licensed under the Apache License, Version 2.0 (the "License");
00011 you may not use this file except in compliance with the License.
00012 You may obtain a copy of the License at
00013 
00014 http://www.apache.org/licenses/LICENSE-2.0
00015 
00016 Unless required by applicable law or agreed to in writing, software
00017 distributed under the License is distributed on an "AS IS" BASIS,
00018 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019 See the License for the specific language governing permissions and
00020 limitations under the License.
00021 
00022 *************************************************************************************/
00023 
00024 #ifndef OVR_Platform_Default_h
00025 #define OVR_Platform_Default_h
00026 
00027 // This should select proper header file for the platform/compiler.
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 //  #include "../Render/Render_GL_Win32_Device.h"
00037 
00038 // Modify this list or pass a smaller set to select a specific render device,
00039 // while avoiding linking extra classes.
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


oculus_sdk
Author(s):
autogenerated on Fri Aug 28 2015 11:53:11