oleaut: Reduce an ERR down to a WARN since a NULL interface pointer
[wine/multimedia.git] / dlls / d3dx8 / d3dx8core_private.h
blobedc451fefbe6d68f643d75834b2d531d7f5a5289
1 /*
2 * Direct3D X 8 private include file
4 * Copyright 2002 Raphael Junqueira
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_D3DX8CORE_PRIVATE_H
22 #define __WINE_D3DX8CORE_PRIVATE_H
24 #include <stdarg.h>
26 #include "windef.h"
27 #include "winbase.h"
28 #include "d3dx8core.h"
30 /* Interfaces */
31 typedef struct ID3DXBufferImpl ID3DXBufferImpl;
32 typedef struct ID3DXFontImpl ID3DXFontImpl;
34 /* ----------- */
35 /* ID3DXBuffer */
36 /* ----------- */
38 /*****************************************************************************
39 * Predeclare the interface implementation structures
41 extern const ID3DXBufferVtbl D3DXBuffer_Vtbl;
43 /*****************************************************************************
44 * ID3DXBufferImpl implementation structure
46 struct ID3DXBufferImpl
48 /* IUnknown fields */
49 const ID3DXBufferVtbl *lpVtbl;
50 LONG ref;
52 /* ID3DXBuffer fields */
53 DWORD *buffer;
54 DWORD bufferSize;
57 /* IUnknown: */
58 extern HRESULT WINAPI ID3DXBufferImpl_QueryInterface(LPD3DXBUFFER iface, REFIID refiid, LPVOID *obj);
59 extern ULONG WINAPI ID3DXBufferImpl_AddRef(LPD3DXBUFFER iface);
60 extern ULONG WINAPI ID3DXBufferImpl_Release(LPD3DXBUFFER iface);
62 /* ID3DXBuffer: */
63 extern LPVOID WINAPI ID3DXBufferImpl_GetBufferPointer(LPD3DXBUFFER iface);
64 extern DWORD WINAPI ID3DXBufferImpl_GetBufferSize(LPD3DXBUFFER iface);
66 /* --------- */
67 /* ID3DXFont */
68 /* --------- */
70 /*****************************************************************************
71 * Predeclare the interface implementation structures
73 extern const ID3DXFontVtbl D3DXFont_Vtbl;
75 /*****************************************************************************
76 * ID3DXFontImpl implementation structure
78 struct ID3DXFontImpl
80 /* IUnknown fields */
81 const ID3DXFontVtbl *lpVtbl;
82 LONG ref;
84 /* ID3DXFont fields */
87 /* IUnknown: */
88 extern HRESULT WINAPI ID3DXFontImpl_QueryInterface(LPD3DXFONT iface, REFIID refiid, LPVOID *obj);
89 extern ULONG WINAPI ID3DXFontImpl_AddRef(LPD3DXFONT iface);
90 extern ULONG WINAPI ID3DXFontImpl_Release(LPD3DXFONT iface);
92 /* ID3DXFont: */
93 extern INT WINAPI ID3DXFontImpl_DrawTextA(LPCSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color);
95 #endif /*__WINE_D3DX8CORE_PRIVATE_H */