Panda3D
|
00001 // Filename: winDetectDx8.cxx 00002 // Created by: aignacio (18Jan07) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "pandabase.h" 00016 00017 #ifdef HAVE_DX8 00018 00019 #define WIN32_LEAN_AND_MEAN 00020 #include <d3d8.h> 00021 #include "graphicsStateGuardian.h" 00022 #include "graphicsPipe.h" 00023 #include "displaySearchParameters.h" 00024 00025 00026 #define DX8 1 00027 #define Direct3DCreate Direct3DCreate8 00028 00029 typedef LPDIRECT3D8 (WINAPI *DIRECT3DCREATE8)(UINT SDKVersion); 00030 typedef LPDIRECT3D8 DIRECT_3D; 00031 typedef D3DCAPS8 D3DCAPS; 00032 typedef D3DADAPTER_IDENTIFIER8 D3DADAPTER_IDENTIFIER; 00033 typedef LPDIRECT3DDEVICE8 DIRECT_3D_DEVICE; 00034 typedef DIRECT3DCREATE8 DIRECT_3D_CREATE; 00035 00036 static char *d3d_dll_name = "d3d8.dll"; 00037 static char *direct_3d_create_function_name = "Direct3DCreate8"; 00038 00039 00040 // include common source code 00041 #include "winDetectDx.h" 00042 00043 00044 int dx8_display_information (DisplaySearchParameters &display_search_parameters, DisplayInformation *display_information) { 00045 return get_display_information (display_search_parameters, display_information); 00046 } 00047 00048 #endif