d3dx9: Merge "main" source files.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fad999e367
commit
6697de156e
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=24
|
||||||
MODULE = d3dx9_24.dll
|
MODULE = d3dx9_24.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_24_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==24)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=25
|
||||||
MODULE = d3dx9_25.dll
|
MODULE = d3dx9_25.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_25_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
@ -22,5 +23,4 @@ C_SRCS = \
|
||||||
volume.c \
|
volume.c \
|
||||||
xfile.c
|
xfile.c
|
||||||
|
|
||||||
|
|
||||||
RC_SRCS = version.rc
|
RC_SRCS = version.rc
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==25)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=26
|
||||||
MODULE = d3dx9_26.dll
|
MODULE = d3dx9_26.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_26_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==26)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=27
|
||||||
MODULE = d3dx9_27.dll
|
MODULE = d3dx9_27.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_27_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==27)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=28
|
||||||
MODULE = d3dx9_28.dll
|
MODULE = d3dx9_28.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_28_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
@ -22,5 +23,4 @@ C_SRCS = \
|
||||||
volume.c \
|
volume.c \
|
||||||
xfile.c
|
xfile.c
|
||||||
|
|
||||||
|
|
||||||
RC_SRCS = version.rc
|
RC_SRCS = version.rc
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==28)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=29
|
||||||
MODULE = d3dx9_29.dll
|
MODULE = d3dx9_29.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_29_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
@ -22,5 +23,4 @@ C_SRCS = \
|
||||||
volume.c \
|
volume.c \
|
||||||
xfile.c
|
xfile.c
|
||||||
|
|
||||||
|
|
||||||
RC_SRCS = version.rc
|
RC_SRCS = version.rc
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==29)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=30
|
||||||
MODULE = d3dx9_30.dll
|
MODULE = d3dx9_30.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_30_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,77 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
#include "wine/debug.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==30)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef enum _D3DX_CPU_OPTIMIZATION
|
|
||||||
{
|
|
||||||
D3DX_NOT_OPTIMIZED = 0,
|
|
||||||
D3DX_3DNOW_OPTIMIZED = 1,
|
|
||||||
D3DX_SSE2_OPTIMIZED = 2,
|
|
||||||
D3DX_SSE_OPTIMIZED = 3
|
|
||||||
} D3DX_CPU_OPTIMIZATION;
|
|
||||||
|
|
||||||
D3DX_CPU_OPTIMIZATION WINAPI D3DXCpuOptimizations(BOOL enable)
|
|
||||||
{
|
|
||||||
FIXME("%i - stub\n", enable);
|
|
||||||
return D3DX_NOT_OPTIMIZED;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=31
|
||||||
MODULE = d3dx9_31.dll
|
MODULE = d3dx9_31.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_31_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==31)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=32
|
||||||
MODULE = d3dx9_32.dll
|
MODULE = d3dx9_32.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_32_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==32)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=33
|
||||||
MODULE = d3dx9_33.dll
|
MODULE = d3dx9_33.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_33_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==33)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=34
|
||||||
MODULE = d3dx9_34.dll
|
MODULE = d3dx9_34.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_34_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==34)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=35
|
||||||
MODULE = d3dx9_35.dll
|
MODULE = d3dx9_35.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_35_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==35)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=36
|
||||||
MODULE = d3dx9_36.dll
|
MODULE = d3dx9_36.dll
|
||||||
IMPORTLIB = d3dx9
|
IMPORTLIB = d3dx9
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
|
@ -5,10 +6,10 @@ IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_36_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -26,9 +26,8 @@
|
||||||
#include "initguid.h"
|
#include "initguid.h"
|
||||||
#include "d3dx9_private.h"
|
#include "d3dx9_private.h"
|
||||||
|
|
||||||
/***********************************************************************
|
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
|
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
|
||||||
{
|
{
|
||||||
switch(reason)
|
switch(reason)
|
||||||
|
@ -42,14 +41,13 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
BOOL WINAPI D3DXCheckVersion(UINT d3d_sdk_ver, UINT d3dx_sdk_ver)
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
{
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==36)
|
return d3d_sdk_ver == D3D_SDK_VERSION && d3dx_sdk_ver == D3DX_SDK_VERSION;
|
||||||
return TRUE;
|
}
|
||||||
else
|
|
||||||
return FALSE;
|
DWORD WINAPI D3DXCpuOptimizations(BOOL enable)
|
||||||
|
{
|
||||||
|
FIXME("%#x - stub\n", enable);
|
||||||
|
return 0;
|
||||||
}
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=37
|
||||||
MODULE = d3dx9_37.dll
|
MODULE = d3dx9_37.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_37_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==37)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=38
|
||||||
MODULE = d3dx9_38.dll
|
MODULE = d3dx9_38.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_38_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==38)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=39
|
||||||
MODULE = d3dx9_39.dll
|
MODULE = d3dx9_39.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_39_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==39)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=40
|
||||||
MODULE = d3dx9_40.dll
|
MODULE = d3dx9_40.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_40_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
* Copyright (C) 2009 Rico Schüller
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==40)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=41
|
||||||
MODULE = d3dx9_41.dll
|
MODULE = d3dx9_41.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_41_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
* Copyright (C) 2009 Rico Schüller
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==41)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=42
|
||||||
MODULE = d3dx9_42.dll
|
MODULE = d3dx9_42.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_42_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
* Copyright (C) 2009 Rico Schüller
|
|
||||||
* Copyright (C) 2009 Ričardas Barkauskas
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==42)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -DD3DX_SDK_VERSION=43
|
||||||
MODULE = d3dx9_43.dll
|
MODULE = d3dx9_43.dll
|
||||||
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
IMPORTS = d3d9 d3dcompiler dxguid d3dxof ole32 gdi32 user32
|
||||||
PARENTSRC = ../d3dx9_36
|
PARENTSRC = ../d3dx9_36
|
||||||
|
@ -5,10 +6,10 @@ PARENTSRC = ../d3dx9_36
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
animation.c \
|
animation.c \
|
||||||
core.c \
|
core.c \
|
||||||
d3dx9_43_main.c \
|
|
||||||
effect.c \
|
effect.c \
|
||||||
font.c \
|
font.c \
|
||||||
line.c \
|
line.c \
|
||||||
|
main.c \
|
||||||
math.c \
|
math.c \
|
||||||
mesh.c \
|
mesh.c \
|
||||||
preshader.c \
|
preshader.c \
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
/*
|
|
||||||
* Direct3D X 9 main file
|
|
||||||
*
|
|
||||||
* Copyright (C) 2007 David Adam
|
|
||||||
* Copyright (C) 2009 Rico Schüller
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2.1 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
#include "initguid.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
#include "windef.h"
|
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
|
|
||||||
#include "d3dx9.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* DllMain.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved)
|
|
||||||
{
|
|
||||||
switch(reason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls(inst);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* D3DXCheckVersion
|
|
||||||
* Checks whether we are compiling against the correct d3d and d3dx library.
|
|
||||||
*/
|
|
||||||
BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers)
|
|
||||||
{
|
|
||||||
if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==43)
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
|
@ -24,11 +24,9 @@
|
||||||
/**********************************************
|
/**********************************************
|
||||||
***************** Definitions ****************
|
***************** Definitions ****************
|
||||||
**********************************************/
|
**********************************************/
|
||||||
/* D3DX_VERSION will be completely ignored since we are
|
|
||||||
implementing all dlls from d3dx9_24 to d3dx9_36 */
|
|
||||||
#define D3DX_VERSION 0x0902
|
#define D3DX_VERSION 0x0902
|
||||||
#ifndef D3DX_SDK_VERSION
|
#ifndef D3DX_SDK_VERSION
|
||||||
#define D3DX_SDK_VERSION 36
|
#define D3DX_SDK_VERSION 43
|
||||||
#endif
|
#endif
|
||||||
#define D3DXSPRITE_DONOTSAVESTATE 0x00000001
|
#define D3DXSPRITE_DONOTSAVESTATE 0x00000001
|
||||||
#define D3DXSPRITE_DONOTMODIFY_RENDERSTATE 0x00000002
|
#define D3DXSPRITE_DONOTMODIFY_RENDERSTATE 0x00000002
|
||||||
|
|
Loading…
Reference in New Issue