mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
updating wine dx headers, adding some new wine dx header, from wine cvs date 17/08-2007
svn path=/trunk/; revision=28380
This commit is contained in:
+21
-19
@@ -13,13 +13,15 @@
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef __WINE_D3D_H
|
||||
#define __WINE_D3D_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define COM_NO_WINDOWS_H
|
||||
#include <objbase.h>
|
||||
#include <d3dtypes.h> /* must precede d3dcaps.h */
|
||||
#include <d3dcaps.h>
|
||||
@@ -64,32 +66,32 @@ DEFINE_GUID(IID_IDirect3DVertexBuffer, 0x7a503555,0x4a83,0x11d1,0xa5,0xdb,0x00,
|
||||
DEFINE_GUID(IID_IDirect3DVertexBuffer7, 0xf5049e7d,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
|
||||
|
||||
|
||||
typedef struct IDirect3D *LPDIRECT3D;
|
||||
typedef struct IDirect3D2 *LPDIRECT3D2;
|
||||
typedef struct IDirect3D3 *LPDIRECT3D3;
|
||||
typedef struct IDirect3D7 *LPDIRECT3D7;
|
||||
typedef struct IDirect3D *LPDIRECT3D;
|
||||
typedef struct IDirect3D2 *LPDIRECT3D2;
|
||||
typedef struct IDirect3D3 *LPDIRECT3D3;
|
||||
typedef struct IDirect3D7 *LPDIRECT3D7;
|
||||
|
||||
typedef struct IDirect3DLight *LPDIRECT3DLIGHT;
|
||||
typedef struct IDirect3DLight *LPDIRECT3DLIGHT;
|
||||
|
||||
typedef struct IDirect3DDevice *LPDIRECT3DDEVICE;
|
||||
typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2;
|
||||
typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3;
|
||||
typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7;
|
||||
typedef struct IDirect3DDevice *LPDIRECT3DDEVICE;
|
||||
typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2;
|
||||
typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3;
|
||||
typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7;
|
||||
|
||||
typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT;
|
||||
typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2;
|
||||
typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3;
|
||||
typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT;
|
||||
typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2;
|
||||
typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3;
|
||||
|
||||
typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL;
|
||||
typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2;
|
||||
typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3;
|
||||
typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL;
|
||||
typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2;
|
||||
typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3;
|
||||
|
||||
typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE;
|
||||
typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2;
|
||||
typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE;
|
||||
typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2;
|
||||
|
||||
typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER;
|
||||
|
||||
typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER;
|
||||
typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER;
|
||||
typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7;
|
||||
|
||||
/* ********************************************************************
|
||||
|
||||
+655
-642
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef __WINE_D3D8TYPES_H
|
||||
@@ -40,11 +40,6 @@
|
||||
#define D3DCOLOR_RGBA(r,g,b,a) D3DCOLOR_ARGB(a,r,g,b)
|
||||
#define D3DCOLOR_XRGB(r,g,b) D3DCOLOR_ARGB(0xff,r,g,b)
|
||||
|
||||
#define D3DCOLORWRITEENABLED_RED 1
|
||||
#define D3DCOLORWRITEENABLED_GREEN 2
|
||||
#define D3DCOLORWRITEENABLED_BLUE 4
|
||||
#define D3DCOLORWRITEENABLED_ALPHA 8
|
||||
|
||||
#define D3DCS_LEFT 0x001
|
||||
#define D3DCS_RIGHT 0x002
|
||||
#define D3DCS_TOP 0x004
|
||||
@@ -613,6 +608,8 @@ typedef enum _D3DFORMAT {
|
||||
D3DFMT_A8 = 28,
|
||||
D3DFMT_A8R3G3B2 = 29,
|
||||
D3DFMT_X4R4G4B4 = 30,
|
||||
D3DFMT_A2B10G10R10 = 31,
|
||||
D3DFMT_G16R16 = 34,
|
||||
|
||||
D3DFMT_A8P8 = 40,
|
||||
D3DFMT_P8 = 41,
|
||||
@@ -627,6 +624,7 @@ typedef enum _D3DFORMAT {
|
||||
D3DFMT_Q8W8V8U8 = 63,
|
||||
D3DFMT_V16U16 = 64,
|
||||
D3DFMT_W11V11U10 = 65,
|
||||
D3DFMT_A2W10V10U10 = 67,
|
||||
|
||||
D3DFMT_UYVY = MAKEFOURCC('U', 'Y', 'V', 'Y'),
|
||||
D3DFMT_YUY2 = MAKEFOURCC('Y', 'U', 'Y', '2'),
|
||||
|
||||
+917
-900
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef __WINE_D3D9TYPES_H
|
||||
@@ -42,11 +42,6 @@
|
||||
#define D3DCOLOR_XYUV(y,u,v) D3DCOLOR_ARGB(0xFF,y,u,v)
|
||||
#define D3DCOLOR_AYUV(a,y,u,v) D3DCOLOR_ARGB(a,y,u,v)
|
||||
|
||||
#define D3DCOLORWRITEENABLED_RED 1
|
||||
#define D3DCOLORWRITEENABLED_GREEN 2
|
||||
#define D3DCOLORWRITEENABLED_BLUE 4
|
||||
#define D3DCOLORWRITEENABLED_ALPHA 8
|
||||
|
||||
#define D3DCS_LEFT 0x001L
|
||||
#define D3DCS_RIGHT 0x002L
|
||||
#define D3DCS_TOP 0x004L
|
||||
@@ -120,7 +115,7 @@
|
||||
#define D3DUSAGE_QUERY_SRGBREAD 0x00010000L
|
||||
#define D3DUSAGE_QUERY_SRGBWRITE 0x00040000L
|
||||
#define D3DUSAGE_QUERY_VERTEXTEXTURE 0x00100000L
|
||||
|
||||
#define D3DUSAGE_QUERY_WRAPANDMIP 0x00200000L
|
||||
|
||||
#define D3DWRAP_U 1
|
||||
#define D3DWRAP_V 2
|
||||
@@ -133,7 +128,7 @@
|
||||
#define MAX_DEVICE_IDENTIFIER_STRING 512
|
||||
|
||||
#define D3DFVF_RESERVED0 0x0001
|
||||
#define D3DFVF_POSITION_MASK 0x4000E
|
||||
#define D3DFVF_POSITION_MASK 0x000E
|
||||
#define D3DFVF_XYZ 0x0002
|
||||
#define D3DFVF_XYZRHW 0x0004
|
||||
#define D3DFVF_XYZB1 0x0006
|
||||
@@ -207,7 +202,8 @@
|
||||
#define D3DPRESENTFLAG_DEVICECLIP 0x00000004 /* Clip the window blited into the client area 2k + xp only */
|
||||
#define D3DPRESENTFLAG_VIDEO 0x00000010 /* backbuffer 'may' contain video data */
|
||||
|
||||
|
||||
#define D3DPRESENT_BACK_BUFFERS_MAX 3L
|
||||
#define D3DPRESENT_RATE_DEFAULT 0x00000000
|
||||
|
||||
/****************************
|
||||
* Vertex Shaders Declaration
|
||||
@@ -470,6 +466,7 @@ typedef enum _D3DSHADER_INSTRUCTION_OPCODE_TYPE {
|
||||
|
||||
typedef enum _D3DSAMPLER_TEXTURE_TYPE {
|
||||
D3DSTT_UNKNOWN = 0 << D3DSP_TEXTURETYPE_SHIFT,
|
||||
D3DSTT_1D = 1 << D3DSP_TEXTURETYPE_SHIFT,
|
||||
D3DSTT_2D = 2 << D3DSP_TEXTURETYPE_SHIFT,
|
||||
D3DSTT_CUBE = 3 << D3DSP_TEXTURETYPE_SHIFT,
|
||||
D3DSTT_VOLUME = 4 << D3DSP_TEXTURETYPE_SHIFT,
|
||||
@@ -739,6 +736,7 @@ typedef enum _D3DDEVTYPE {
|
||||
D3DDEVTYPE_HAL = 1,
|
||||
D3DDEVTYPE_REF = 2,
|
||||
D3DDEVTYPE_SW = 3,
|
||||
D3DDEVTYPE_NULLREF = 4,
|
||||
|
||||
D3DDEVTYPE_FORCE_DWORD = 0xffffffff
|
||||
} D3DDEVTYPE;
|
||||
@@ -794,7 +792,6 @@ typedef enum _D3DFORMAT {
|
||||
D3DFMT_X8L8V8U8 = 62,
|
||||
D3DFMT_Q8W8V8U8 = 63,
|
||||
D3DFMT_V16U16 = 64,
|
||||
D3DFMT_W11V11U10 = 65,
|
||||
D3DFMT_A2W10V10U10 = 67,
|
||||
|
||||
D3DFMT_UYVY = MAKEFOURCC('U', 'Y', 'V', 'Y'),
|
||||
@@ -804,16 +801,18 @@ typedef enum _D3DFORMAT {
|
||||
D3DFMT_DXT3 = MAKEFOURCC('D', 'X', 'T', '3'),
|
||||
D3DFMT_DXT4 = MAKEFOURCC('D', 'X', 'T', '4'),
|
||||
D3DFMT_DXT5 = MAKEFOURCC('D', 'X', 'T', '5'),
|
||||
D3DFMT_MULTI2_ARGB = MAKEFOURCC('M', 'E', 'T', '1'),
|
||||
D3DFMT_MULTI2_ARGB8 = MAKEFOURCC('M', 'E', 'T', '1'),
|
||||
D3DFMT_G8R8_G8B8 = MAKEFOURCC('G', 'R', 'G', 'B'),
|
||||
D3DFMT_R8G8_B8G8 = MAKEFOURCC('R', 'G', 'B', 'G'),
|
||||
|
||||
D3DFMT_D16_LOCKABLE = 70,
|
||||
D3DFMT_D32 = 71,
|
||||
D3DFMT_D15S1 = 73,
|
||||
D3DFMT_D24S8 = 75,
|
||||
D3DFMT_D24X8 = 77,
|
||||
D3DFMT_D24X4S4 = 79,
|
||||
D3DFMT_D16 = 80,
|
||||
D3DFMT_L16 = 81,
|
||||
D3DFMT_D32F_LOCKABLE = 82,
|
||||
D3DFMT_D24FS8 = 83,
|
||||
|
||||
@@ -821,7 +820,7 @@ typedef enum _D3DFORMAT {
|
||||
D3DFMT_INDEX16 = 101,
|
||||
D3DFMT_INDEX32 = 102,
|
||||
D3DFMT_Q16W16V16U16 = 110,
|
||||
/* Flaoting point formats */
|
||||
/* Floating point formats */
|
||||
D3DFMT_R16F = 111,
|
||||
D3DFMT_G16R16F = 112,
|
||||
D3DFMT_A16B16G16R16F = 113,
|
||||
@@ -1223,7 +1222,10 @@ typedef enum _D3DSAMPLERSTATETYPE {
|
||||
/*****************************************************************************
|
||||
* Direct 3D v9 typedefs
|
||||
*/
|
||||
#ifndef D3DCOLOR_DEFINED
|
||||
typedef DWORD D3DCOLOR;
|
||||
#define D3DCOLOR_DEFINED
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
* Direct 3D v9 structures
|
||||
@@ -1258,12 +1260,15 @@ typedef struct _D3DCLIPSTATUS9 {
|
||||
DWORD ClipIntersection;
|
||||
} D3DCLIPSTATUS9;
|
||||
|
||||
#ifndef D3DCOLORVALUE_DEFINED
|
||||
typedef struct _D3DCOLORVALUE {
|
||||
float r;
|
||||
float g;
|
||||
float b;
|
||||
float a;
|
||||
} D3DCOLORVALUE;
|
||||
#define D3DCOLORVALUE_DEFINED
|
||||
#endif
|
||||
|
||||
typedef struct _D3DDEVICE_CREATION_PARAMETERS {
|
||||
UINT AdapterOrdinal;
|
||||
@@ -1362,11 +1367,14 @@ typedef struct _D3DINDEXBUFFER_DESC {
|
||||
UINT Size;
|
||||
} D3DINDEXBUFFER_DESC;
|
||||
|
||||
#ifndef D3DVECTOR_DEFINED
|
||||
typedef struct _D3DVECTOR {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
} D3DVECTOR;
|
||||
#define D3DVECTOR_DEFINED
|
||||
#endif
|
||||
|
||||
typedef struct _D3DLIGHT9 {
|
||||
D3DLIGHTTYPE Type;
|
||||
@@ -1408,6 +1416,7 @@ typedef struct _D3DMATERIAL9 {
|
||||
float Power;
|
||||
} D3DMATERIAL9;
|
||||
|
||||
#ifndef D3DMATRIX_DEFINED
|
||||
typedef struct _D3DMATRIX {
|
||||
union {
|
||||
struct {
|
||||
@@ -1419,6 +1428,8 @@ typedef struct _D3DMATRIX {
|
||||
float m[4][4];
|
||||
} DUMMYUNIONNAME;
|
||||
} D3DMATRIX;
|
||||
#define D3DMATRIX_DEFINED
|
||||
#endif
|
||||
|
||||
typedef struct _D3DPRESENT_PARAMETERS_ {
|
||||
UINT BackBufferWidth;
|
||||
@@ -1451,12 +1462,15 @@ typedef struct _D3DRASTER_STATUS {
|
||||
UINT ScanLine;
|
||||
} D3DRASTER_STATUS;
|
||||
|
||||
#ifndef D3DRECT_DEFINED
|
||||
typedef struct _D3DRECT {
|
||||
LONG x1;
|
||||
LONG y1;
|
||||
LONG x2;
|
||||
LONG y2;
|
||||
} D3DRECT;
|
||||
#define D3DRECT_DEFINED
|
||||
#endif
|
||||
|
||||
typedef struct _D3DRECTPATCH_INFO {
|
||||
UINT StartVertexOffsetWidth;
|
||||
@@ -1509,7 +1523,7 @@ typedef struct _D3DVOLUME_DESC {
|
||||
D3DRESOURCETYPE Type;
|
||||
DWORD Usage;
|
||||
D3DPOOL Pool;
|
||||
UINT Size;
|
||||
|
||||
UINT Width;
|
||||
UINT Height;
|
||||
UINT Depth;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#ifndef __D3DRM_H__
|
||||
@@ -22,4 +22,13 @@
|
||||
#include <ddraw.h>
|
||||
/* #include <d3drmobj.h> */
|
||||
|
||||
|
||||
/* Direct3DRM Object CLSID */
|
||||
DEFINE_GUID(CLSID_CDirect3DRM, 0x4516ec41, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
|
||||
|
||||
/* Direct3DRM Interface GUIDs */
|
||||
DEFINE_GUID(IID_IDirect3DRM, 0x2bc49361, 0x8327, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
|
||||
DEFINE_GUID(IID_IDirect3DRM2, 0x4516ecc8, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
|
||||
DEFINE_GUID(IID_IDirect3DRM3, 0x4516ec83, 0x8f20, 0x11d0, 0x9b, 0x6d, 0x00, 0x00, 0xc0, 0x78, 0x1b, 0xc3);
|
||||
|
||||
#endif /* __D3DRM_H__ */
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2007 Vijay Kiran Kamuju
|
||||
* Copyright 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
|
||||
*/
|
||||
|
||||
#ifndef __D3DRMDEFS_H__
|
||||
#define __D3DRMDEFS_H__
|
||||
|
||||
#include <stddef.h>
|
||||
#include <d3dtypes.h>
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef D3DVALUE D3DRMMATRIX4D[4][4];
|
||||
typedef struct _D3DRMQUATERNION
|
||||
{
|
||||
D3DVALUE s;
|
||||
D3DVECTOR v;
|
||||
} D3DRMQUATERNION, *LPD3DRMQUATERNION;
|
||||
|
||||
void WINAPI D3DRMMatrixFromQuaternion(D3DRMMATRIX4D, LPD3DRMQUATERNION);
|
||||
|
||||
LPD3DRMQUATERNION WINAPI D3DRMQuaternionFromRotation(LPD3DRMQUATERNION ,LPD3DVECTOR,D3DVALUE);
|
||||
LPD3DRMQUATERNION WINAPI D3DRMQuaternionMultiply(LPD3DRMQUATERNION, LPD3DRMQUATERNION, LPD3DRMQUATERNION);
|
||||
LPD3DRMQUATERNION WINAPI D3DRMQuaternionSlerp(LPD3DRMQUATERNION, LPD3DRMQUATERNION, LPD3DRMQUATERNION, D3DVALUE);
|
||||
|
||||
LPD3DVECTOR WINAPI D3DRMVectorAdd(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
|
||||
LPD3DVECTOR WINAPI D3DRMVectorCrossProduct(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
|
||||
D3DVALUE WINAPI D3DRMVectorDotProduct(LPD3DVECTOR, LPD3DVECTOR);
|
||||
LPD3DVECTOR WINAPI D3DRMVectorNormalize(LPD3DVECTOR);
|
||||
|
||||
#define D3DRMVectorNormalise D3DRMVectorNormalize
|
||||
|
||||
D3DVALUE WINAPI D3DRMVectorModulus(LPD3DVECTOR);
|
||||
LPD3DVECTOR WINAPI D3DRMVectorRandom(LPD3DVECTOR);
|
||||
LPD3DVECTOR WINAPI D3DRMVectorRotate(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR, D3DVALUE);
|
||||
LPD3DVECTOR WINAPI D3DRMVectorReflect(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
|
||||
LPD3DVECTOR WINAPI D3DRMVectorScale(LPD3DVECTOR, LPD3DVECTOR, D3DVALUE);
|
||||
LPD3DVECTOR WINAPI D3DRMVectorSubtract(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
|
||||
|
||||
D3DCOLOR WINAPI D3DRMCreateColorRGB(D3DVALUE, D3DVALUE, D3DVALUE);
|
||||
D3DCOLOR WINAPI D3DRMCreateColorRGBA(D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE);
|
||||
D3DVALUE WINAPI D3DRMColorGetAlpha(D3DCOLOR);
|
||||
D3DVALUE WINAPI D3DRMColorGetBlue(D3DCOLOR);
|
||||
D3DVALUE WINAPI D3DRMColorGetGreen(D3DCOLOR);
|
||||
D3DVALUE WINAPI D3DRMColorGetRed(D3DCOLOR);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
/* FIXME: Need to add C++ code for certain structs for headers - this is going to be a problem
|
||||
@@ -25,7 +25,9 @@
|
||||
#ifndef __WINE_D3DTYPES_H
|
||||
#define __WINE_D3DTYPES_H
|
||||
|
||||
/* #include <windows.h> FIXME: Need to include for compatibility. Inclusion caused compile fail */
|
||||
#ifndef __WINESRC__
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#include <float.h>
|
||||
#include <ddraw.h>
|
||||
@@ -151,19 +153,19 @@ typedef struct _D3DCOLORVALUE {
|
||||
union {
|
||||
D3DVALUE r;
|
||||
D3DVALUE dvR;
|
||||
};
|
||||
} DUMMYUNIONNAME1;
|
||||
union {
|
||||
D3DVALUE g;
|
||||
D3DVALUE dvG;
|
||||
};
|
||||
} DUMMYUNIONNAME2;
|
||||
union {
|
||||
D3DVALUE b;
|
||||
D3DVALUE dvB;
|
||||
};
|
||||
} DUMMYUNIONNAME3;
|
||||
union {
|
||||
D3DVALUE a;
|
||||
D3DVALUE dvA;
|
||||
};
|
||||
} DUMMYUNIONNAME4;
|
||||
} D3DCOLORVALUE,*LPD3DCOLORVALUE;
|
||||
|
||||
typedef struct _D3DRECT {
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* Copyright 2007 Henri Verbeet
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
#ifndef __WINE_WINED3D_CAPS_H
|
||||
#define __WINE_WINED3D_CAPS_H
|
||||
|
||||
#define WINED3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD 0x00000020L
|
||||
#define WINED3DCAPS3_LINEAR_TO_SRGB_PRESENTATION 0x00000080L
|
||||
#define WINED3DCAPS3_COPY_TO_VIDMEM 0x00000100L
|
||||
#define WINED3DCAPS3_COPY_TO_SYSTEMMEM 0x00000200L
|
||||
#define WINED3DCAPS3_RESERVED 0x8000001FL
|
||||
|
||||
#define WINED3DDEVCAPS2_STREAMOFFSET 0x00000001
|
||||
#define WINED3DDEVCAPS2_DMAPNPATCH 0x00000002
|
||||
#define WINED3DDEVCAPS2_ADAPTIVETESSRTPATCH 0x00000004
|
||||
#define WINED3DDEVCAPS2_ADAPTIVETESSNPATCH 0x00000008
|
||||
#define WINED3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES 0x00000010
|
||||
#define WINED3DDEVCAPS2_PRESAMPLEDDMAPNPATCH 0x00000020
|
||||
#define WINED3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET 0x00000040
|
||||
|
||||
#define WINED3DDTCAPS_UBYTE4 0x00000001
|
||||
#define WINED3DDTCAPS_UBYTE4N 0x00000002
|
||||
#define WINED3DDTCAPS_SHORT2N 0x00000004
|
||||
#define WINED3DDTCAPS_SHORT4N 0x00000008
|
||||
#define WINED3DDTCAPS_USHORT2N 0x00000010
|
||||
#define WINED3DDTCAPS_USHORT4N 0x00000020
|
||||
#define WINED3DDTCAPS_UDEC3 0x00000040
|
||||
#define WINED3DDTCAPS_DEC3N 0x00000080
|
||||
#define WINED3DDTCAPS_FLOAT16_2 0x00000100
|
||||
#define WINED3DDTCAPS_FLOAT16_4 0x00000200
|
||||
|
||||
#define WINED3DFVFCAPS_TEXCOORDCOUNTMASK 0x0000FFFF
|
||||
#define WINED3DFVFCAPS_DONOTSTRIPELEMENTS 0x00080000
|
||||
#define WINED3DFVFCAPS_PSIZE 0x00100000
|
||||
|
||||
#define WINED3DLINECAPS_TEXTURE 0x00000001
|
||||
#define WINED3DLINECAPS_ZTEST 0x00000002
|
||||
#define WINED3DLINECAPS_BLEND 0x00000004
|
||||
#define WINED3DLINECAPS_ALPHACMP 0x00000008
|
||||
#define WINED3DLINECAPS_FOG 0x00000010
|
||||
|
||||
#define WINED3DMAX30SHADERINSTRUCTIONS 32768
|
||||
#define WINED3DMIN30SHADERINSTRUCTIONS 512
|
||||
|
||||
#define WINED3DPBLENDCAPS_ZERO 0x00000001
|
||||
#define WINED3DPBLENDCAPS_ONE 0x00000002
|
||||
#define WINED3DPBLENDCAPS_SRCCOLOR 0x00000004
|
||||
#define WINED3DPBLENDCAPS_INVSRCCOLOR 0x00000008
|
||||
#define WINED3DPBLENDCAPS_SRCALPHA 0x00000010
|
||||
#define WINED3DPBLENDCAPS_INVSRCALPHA 0x00000020
|
||||
#define WINED3DPBLENDCAPS_DESTALPHA 0x00000040
|
||||
#define WINED3DPBLENDCAPS_INVDESTALPHA 0x00000080
|
||||
#define WINED3DPBLENDCAPS_DESTCOLOR 0x00000100
|
||||
#define WINED3DPBLENDCAPS_INVDESTCOLOR 0x00000200
|
||||
#define WINED3DPBLENDCAPS_SRCALPHASAT 0x00000400
|
||||
#define WINED3DPBLENDCAPS_BOTHSRCALPHA 0x00000800
|
||||
#define WINED3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000
|
||||
#define WINED3DPBLENDCAPS_BLENDFACTOR 0x00002000
|
||||
|
||||
#define WINED3DPCMPCAPS_NEVER 0x00000001
|
||||
#define WINED3DPCMPCAPS_LESS 0x00000002
|
||||
#define WINED3DPCMPCAPS_EQUAL 0x00000004
|
||||
#define WINED3DPCMPCAPS_LESSEQUAL 0x00000008
|
||||
#define WINED3DPCMPCAPS_GREATER 0x00000010
|
||||
#define WINED3DPCMPCAPS_NOTEQUAL 0x00000020
|
||||
#define WINED3DPCMPCAPS_GREATEREQUAL 0x00000040
|
||||
#define WINED3DPCMPCAPS_ALWAYS 0x00000080
|
||||
|
||||
#define WINED3DPMISCCAPS_MASKZ 0x00000002
|
||||
#define WINED3DPMISCCAPS_LINEPATTERNREP 0x00000004
|
||||
#define WINED3DPMISCCAPS_CULLNONE 0x00000010
|
||||
#define WINED3DPMISCCAPS_CULLCW 0x00000020
|
||||
#define WINED3DPMISCCAPS_CULLCCW 0x00000040
|
||||
#define WINED3DPMISCCAPS_COLORWRITEENABLE 0x00000080
|
||||
#define WINED3DPMISCCAPS_CLIPPLANESCALEDPOINTS 0x00000100
|
||||
#define WINED3DPMISCCAPS_CLIPTLVERTS 0x00000200
|
||||
#define WINED3DPMISCCAPS_TSSARGTEMP 0x00000400
|
||||
#define WINED3DPMISCCAPS_BLENDOP 0x00000800
|
||||
#define WINED3DPMISCCAPS_NULLREFERENCE 0x00001000
|
||||
#define WINED3DPMISCCAPS_INDEPENDENTWRITEMASKS 0x00004000
|
||||
#define WINED3DPMISCCAPS_PERSTAGECONSTANT 0x00008000
|
||||
#define WINED3DPMISCCAPS_FOGANDSPECULARALPHA 0x00010000
|
||||
#define WINED3DPMISCCAPS_SEPARATEALPHABLEND 0x00020000
|
||||
#define WINED3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS 0x00040000
|
||||
#define WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000
|
||||
#define WINED3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000
|
||||
|
||||
#define WINED3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH 24
|
||||
#define WINED3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH 0
|
||||
#define WINED3DPS20_MAX_NUMTEMPS 32
|
||||
#define WINED3DPS20_MIN_NUMTEMPS 12
|
||||
#define WINED3DPS20_MAX_STATICFLOWCONTROLDEPTH 4
|
||||
#define WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH 0
|
||||
#define WINED3DPS20_MAX_NUMINSTRUCTIONSLOTS 512
|
||||
#define WINED3DPS20_MIN_NUMINSTRUCTIONSLOTS 96
|
||||
|
||||
#define WINED3DPS20CAPS_ARBITRARYSWIZZLE 0x00000001
|
||||
#define WINED3DPS20CAPS_GRADIENTINSTRUCTIONS 0x00000002
|
||||
#define WINED3DPS20CAPS_PREDICATION 0x00000004
|
||||
#define WINED3DPS20CAPS_NODEPENDENTREADLIMIT 0x00000008
|
||||
#define WINED3DPS20CAPS_NOTEXINSTRUCTIONLIMIT 0x00000010
|
||||
|
||||
#define WINED3DPTADDRESSCAPS_WRAP 0x00000001
|
||||
#define WINED3DPTADDRESSCAPS_MIRROR 0x00000002
|
||||
#define WINED3DPTADDRESSCAPS_CLAMP 0x00000004
|
||||
#define WINED3DPTADDRESSCAPS_BORDER 0x00000008
|
||||
#define WINED3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010
|
||||
#define WINED3DPTADDRESSCAPS_MIRRORONCE 0x00000020
|
||||
|
||||
#define WINED3DSTENCILCAPS_KEEP 0x00000001
|
||||
#define WINED3DSTENCILCAPS_ZERO 0x00000002
|
||||
#define WINED3DSTENCILCAPS_REPLACE 0x00000004
|
||||
#define WINED3DSTENCILCAPS_INCRSAT 0x00000008
|
||||
#define WINED3DSTENCILCAPS_DECRSAT 0x00000010
|
||||
#define WINED3DSTENCILCAPS_INVERT 0x00000020
|
||||
#define WINED3DSTENCILCAPS_INCR 0x00000040
|
||||
#define WINED3DSTENCILCAPS_DECR 0x00000080
|
||||
#define WINED3DSTENCILCAPS_TWOSIDED 0x00000100
|
||||
|
||||
#define WINED3DTEXOPCAPS_DISABLE 0x00000001
|
||||
#define WINED3DTEXOPCAPS_SELECTARG1 0x00000002
|
||||
#define WINED3DTEXOPCAPS_SELECTARG2 0x00000004
|
||||
#define WINED3DTEXOPCAPS_MODULATE 0x00000008
|
||||
#define WINED3DTEXOPCAPS_MODULATE2X 0x00000010
|
||||
#define WINED3DTEXOPCAPS_MODULATE4X 0x00000020
|
||||
#define WINED3DTEXOPCAPS_ADD 0x00000040
|
||||
#define WINED3DTEXOPCAPS_ADDSIGNED 0x00000080
|
||||
#define WINED3DTEXOPCAPS_ADDSIGNED2X 0x00000100
|
||||
#define WINED3DTEXOPCAPS_SUBTRACT 0x00000200
|
||||
#define WINED3DTEXOPCAPS_ADDSMOOTH 0x00000400
|
||||
#define WINED3DTEXOPCAPS_BLENDDIFFUSEALPHA 0x00000800
|
||||
#define WINED3DTEXOPCAPS_BLENDTEXTUREALPHA 0x00001000
|
||||
#define WINED3DTEXOPCAPS_BLENDFACTORALPHA 0x00002000
|
||||
#define WINED3DTEXOPCAPS_BLENDTEXTUREALPHAPM 0x00004000
|
||||
#define WINED3DTEXOPCAPS_BLENDCURRENTALPHA 0x00008000
|
||||
#define WINED3DTEXOPCAPS_PREMODULATE 0x00010000
|
||||
#define WINED3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR 0x00020000
|
||||
#define WINED3DTEXOPCAPS_MODULATECOLOR_ADDALPHA 0x00040000
|
||||
#define WINED3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR 0x00080000
|
||||
#define WINED3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA 0x00100000
|
||||
#define WINED3DTEXOPCAPS_BUMPENVMAP 0x00200000
|
||||
#define WINED3DTEXOPCAPS_BUMPENVMAPLUMINANCE 0x00400000
|
||||
#define WINED3DTEXOPCAPS_DOTPRODUCT3 0x00800000
|
||||
#define WINED3DTEXOPCAPS_MULTIPLYADD 0x01000000
|
||||
#define WINED3DTEXOPCAPS_LERP 0x02000000
|
||||
|
||||
#define WINED3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH 24
|
||||
#define WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH 0
|
||||
#define WINED3DVS20_MAX_NUMTEMPS 32
|
||||
#define WINED3DVS20_MIN_NUMTEMPS 12
|
||||
#define WINED3DVS20_MAX_STATICFLOWCONTROLDEPTH 4
|
||||
#define WINED3DVS20_MIN_STATICFLOWCONTROLDEPTH 1
|
||||
|
||||
#define WINED3DVS20CAPS_PREDICATION 0x00000001
|
||||
|
||||
#endif /* __WINE_WINED3D_CAPS_H */
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user