Panda3D
winDetectDx9.cxx
1 // Filename: winDetectDx9.cxx
2 // Created by: aignacio (18Jan07)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "pandabase.h"
16 
17 #ifdef HAVE_DX9
18 
19 #ifndef WIN32_LEAN_AND_MEAN
20 #define WIN32_LEAN_AND_MEAN 1
21 #endif
22 #include <d3d9.h>
23 #include "graphicsStateGuardian.h"
24 #include "graphicsPipe.h"
25 #include "displaySearchParameters.h"
26 
27 #define Direct3DCreate Direct3DCreate9
28 
29 typedef LPDIRECT3D9 (WINAPI *DIRECT3DCREATE9)(UINT SDKVersion);
30 
31 typedef LPDIRECT3D9 DIRECT_3D;
32 typedef D3DCAPS9 D3DCAPS;
33 typedef D3DADAPTER_IDENTIFIER9 D3DADAPTER_IDENTIFIER;
34 typedef LPDIRECT3DDEVICE9 DIRECT_3D_DEVICE;
35 typedef DIRECT3DCREATE9 DIRECT_3D_CREATE;
36 
37 static char *d3d_dll_name = "d3d9.dll";
38 static char *direct_3d_create_function_name = "Direct3DCreate9";
39 
40 
41 // include common source code
42 #include "winDetectDx.h"
43 
44 
45 int dx9_display_information (DisplaySearchParameters &display_search_parameters, DisplayInformation *display_information) {
46  return get_display_information (display_search_parameters, display_information);
47 }
48 
49 #endif
This class contains various display information.
Parameters used for searching display capabilities.