mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Fixes from Mike Christel to work with the latest Direct X SDK
This commit is contained in:
parent
eaa2b052cb
commit
d427b8559f
@ -762,6 +762,12 @@ def SdkLocateDirectX():
|
||||
if (sys.platform != "win32"): return
|
||||
if (os.path.isdir("sdks/directx8")): SDK["DX8"]="sdks/directx8"
|
||||
if (os.path.isdir("sdks/directx9")): SDK["DX9"]="sdks/directx9"
|
||||
if (SDK.has_key("DX9")==0):
|
||||
## Try to locate the key within the "new" March 2009 location in the registry (yecch):
|
||||
dir = GetRegistryKey("SOFTWARE\\Microsoft\\DirectX\\Microsoft DirectX SDK (March 2009)", "InstallPath")
|
||||
if (dir != 0):
|
||||
SDK["DX9"] = dir.replace("\\", "/").rstrip("/")
|
||||
if (SDK.has_key("DX9")==0 or SDK.has_key("DX8")==0):
|
||||
uninstaller = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall";
|
||||
for subdir in ListRegistryKeys(uninstaller):
|
||||
if (subdir[0]=="{"):
|
||||
|
@ -60,6 +60,17 @@
|
||||
#include <wchar.h>
|
||||
#include <string.h>
|
||||
#include <windows.h>
|
||||
|
||||
// NOTE: there is a problem with dxtrans.h missing from newer Microsoft DirectX SDKs (including March 2009)
|
||||
// See "dxtrans.h missing in Microsoft DirectX SDK" at
|
||||
// http://social.msdn.microsoft.com/forums/en-US/windowssdk/thread/ed097d2c-3d68-4f48-8448-277eaaf68252/ for example.
|
||||
// This header file is referenced only by qedit.h and not needed.
|
||||
// Solution: add this pragma and these 4 defines before the qedit.h inclusion:
|
||||
#pragma include_alias( "dxtrans.h", "qedit.h" )
|
||||
#define __IDxtCompositor_INTERFACE_DEFINED__
|
||||
#define __IDxtAlphaSetter_INTERFACE_DEFINED__
|
||||
#define __IDxtJpeg_INTERFACE_DEFINED_
|
||||
#define __IDxtKey_INTERFACE_DEFINED__
|
||||
#include <qedit.h>
|
||||
#include <atlbase.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user