mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 18:59:09 +00:00
Remove unused platform code (MacOS9, PS2, XBox).
This commit is contained in:
@ -49,10 +49,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "hsWindows.h"
|
||||
typedef HWND hsWinRef;
|
||||
|
||||
#elif HS_BUILD_FOR_MACPPC
|
||||
|
||||
typedef WindowRef hsWinRef;
|
||||
|
||||
#else // Whatever
|
||||
|
||||
typedef void* hsWinRef;
|
||||
|
@ -217,7 +217,6 @@ HRESULT hsGDirect3DTnLEnumerate::D3DEnum_SelectDefaultDriver( DWORD dwFlags )
|
||||
}
|
||||
else
|
||||
{
|
||||
#if !HS_BUILD_FOR_XBOX
|
||||
if( dwFlags & D3DENUM_CANWINDOW )
|
||||
{
|
||||
if( (pDriver == &fDrivers[0])
|
||||
@ -229,7 +228,6 @@ HRESULT hsGDirect3DTnLEnumerate::D3DEnum_SelectDefaultDriver( DWORD dwFlags )
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if( dwFlags & D3DENUM_PRIMARYHAL )
|
||||
{
|
||||
if( pDriver == &fDrivers[0] )
|
||||
@ -292,7 +290,6 @@ hsGDirect3DTnLEnumerate::hsGDirect3DTnLEnumerate()
|
||||
/// New DX Enumeration
|
||||
|
||||
// Get a pointer to the creation function
|
||||
#if !HS_BUILD_FOR_XBOX
|
||||
if( hsGDDrawDllLoad::GetD3DDll() == nil )
|
||||
{
|
||||
strcpy( fEnumeErrorStr, "Cannot load Direct3D driver!" );
|
||||
@ -308,10 +305,7 @@ hsGDirect3DTnLEnumerate::hsGDirect3DTnLEnumerate()
|
||||
}
|
||||
|
||||
// Create a D3D object to use
|
||||
IDirect3D9 *pD3D = procPtr( D3D_SDK_VERSION );
|
||||
#else
|
||||
IDirect3D9 *pD3D = Direct3DCreate9( D3D_SDK_VERSION );
|
||||
#endif
|
||||
IDirect3D9 *pD3D = procPtr( D3D_SDK_VERSION );
|
||||
if( pD3D == nil )
|
||||
{
|
||||
strcpy( fEnumeErrorStr, "Cannot load DirectX!" );
|
||||
@ -519,12 +513,8 @@ void hsGDirect3DTnLEnumerate::IEnumAdapterDevices( IDirect3D9 *pD3D, UINT iAd
|
||||
hsBool hsGDirect3DTnLEnumerate::IFindDepthFormats( IDirect3D9 *pD3D, UINT iAdapter, D3DDEVTYPE deviceType,
|
||||
D3DEnum_ModeInfo *modeInfo )
|
||||
{
|
||||
#if HS_BUILD_FOR_XBOX
|
||||
D3DFORMAT formats[] = { D3DFMT_D16, D3DFMT_D24S8, D3DFMT_UNKNOWN };
|
||||
#else
|
||||
D3DFORMAT formats[] = { D3DFMT_D16, D3DFMT_D24X8, D3DFMT_D32,
|
||||
D3DFMT_D15S1, D3DFMT_D24X4S4, D3DFMT_D24S8, D3DFMT_UNKNOWN };
|
||||
#endif
|
||||
|
||||
/// Try 'em
|
||||
for( int i = 0; formats[ i ] != D3DFMT_UNKNOWN; i++ )
|
||||
|
@ -5367,13 +5367,11 @@ void plDXPipeline::ISetFogParameters(const plSpan* span, const plLayerInterface*
|
||||
bool forceLoad = false;
|
||||
D3DRENDERSTATETYPE d3dFogType = D3DRS_FOGTABLEMODE; // Use VERTEXMODE for vertex fog
|
||||
|
||||
#if !HS_BUILD_FOR_XBOX
|
||||
if (!(fSettings.fD3DCaps & kCapsPixelFog) || isShader)
|
||||
{
|
||||
d3dFogType = D3DRS_FOGVERTEXMODE;
|
||||
isVertex = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Quick check
|
||||
if ((fCurrFog.fEnvPtr == fog) && (fCurrFog.fIsVertex == isVertex) && (fCurrFog.fIsShader == isShader))
|
||||
|
@ -57,10 +57,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include <ddraw.h>
|
||||
#include <d3dx9mesh.h>
|
||||
|
||||
#if HS_BUILD_FOR_MAC
|
||||
#include <QuickDraw.h>
|
||||
#endif
|
||||
|
||||
#include "hsWinRef.h"
|
||||
#include "hsTypes.h"
|
||||
#include "plDXTextFont.h"
|
||||
|
Reference in New Issue
Block a user