Correct return value in a couple of error cases.
[wine] / dlls / wined3d / wined3d_private.h
1 /*
2  * Direct3D wine internal private include file
3  *
4  * Copyright 2002-2003 The wine-d3d team
5  * Copyright 2002-2003 Raphael Junqueira
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #ifndef __WINE_WINED3D_PRIVATE_H
23 #define __WINE_WINED3D_PRIVATE_H
24
25 #include <stdarg.h>
26
27 #include "windef.h"
28 #include "winbase.h"
29 #include "wingdi.h"
30 #include "winuser.h"
31 #include "wine/debug.h"
32
33 #include "d3d8.h"
34 #include "d3d8types.h"
35 #include "wine/wined3d_interface.h"
36
37
38 /*****************************************************************************
39  * IDirect3DVertexShaderDeclaration implementation structure
40  */
41 struct IDirect3DVertexShaderDeclarationImpl {
42   /* The device */
43   /*IDirect3DDeviceImpl* device;*/
44
45   /** precomputed fvf if simple declaration */
46   DWORD   fvf[MAX_STREAMS];
47   DWORD   allFVF;
48
49   /** dx8 compatible Declaration fields */
50   DWORD*  pDeclaration8;
51   DWORD   declaration8Length;
52 };
53
54
55 /*****************************************************************************
56  * IDirect3DVertexShader implementation structure
57  */
58 struct IDirect3DVertexShaderImpl {
59   /* The device */
60   /*IDirect3DDeviceImpl* device;*/
61
62   DWORD* function;
63   UINT functionLength;
64   DWORD usage;
65   DWORD version;
66   /* run time datas */
67   VSHADERDATA* data;
68   VSHADERINPUTDATA input;
69   VSHADEROUTPUTDATA output;
70 };
71
72
73 /*****************************************************************************
74  * IDirect3DPixelShader implementation structure
75  */
76 struct IDirect3DPixelShaderImpl { 
77   /* The device */
78   /*IDirect3DDeviceImpl* device;*/
79
80   DWORD* function;
81   UINT functionLength;
82   DWORD version;
83   /* run time datas */
84   PSHADERDATA* data;
85   PSHADERINPUTDATA input;
86   PSHADEROUTPUTDATA output;
87 };
88
89 #endif