Panda3D
winDetectDx9.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file winDetectDx9.cxx
10  * @author aignacio
11  * @date 2007-01-18
12  */
13 
14 #include "pandabase.h"
15 
16 #ifdef HAVE_DX9
17 
18 #ifndef WIN32_LEAN_AND_MEAN
19 #define WIN32_LEAN_AND_MEAN 1
20 #endif
21 #undef Configure
22 #include <d3d9.h>
23 #include "graphicsStateGuardian.h"
24 #include "graphicsPipe.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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Parameters used for searching display capabilities.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.