Panda3D

winDetectDx9.cxx

00001 // Filename: winDetectDx9.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_DX9
00018 
00019 #define WIN32_LEAN_AND_MEAN
00020 #include <d3d9.h>
00021 #include "graphicsStateGuardian.h"
00022 #include "graphicsPipe.h"
00023 #include "displaySearchParameters.h"
00024 
00025 #define DX8 0
00026 #define Direct3DCreate Direct3DCreate9
00027 
00028 typedef LPDIRECT3D9 (WINAPI *DIRECT3DCREATE9)(UINT SDKVersion);
00029 
00030 typedef LPDIRECT3D9 DIRECT_3D;
00031 typedef D3DCAPS9 D3DCAPS;
00032 typedef D3DADAPTER_IDENTIFIER9 D3DADAPTER_IDENTIFIER;
00033 typedef LPDIRECT3DDEVICE9 DIRECT_3D_DEVICE;
00034 typedef DIRECT3DCREATE9 DIRECT_3D_CREATE;
00035 
00036 static char *d3d_dll_name = "d3d9.dll";
00037 static char *direct_3d_create_function_name = "Direct3DCreate9";
00038 
00039 
00040 // include common source code
00041 #include "winDetectDx.h"
00042 
00043 
00044 int dx9_display_information (DisplaySearchParameters &display_search_parameters, DisplayInformation *display_information) {
00045   return get_display_information (display_search_parameters, display_information);
00046 }
00047 
00048 #endif
 All Classes Functions Variables Enumerations