00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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
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