2002-12-17 02:15:15 +01:00
|
|
|
/*
|
|
|
|
* Direct3D X 8 private include file
|
|
|
|
*
|
|
|
|
* Copyright 2002 Raphael Junqueira
|
|
|
|
*
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_D3DX8CORE_PRIVATE_H
|
|
|
|
#define __WINE_D3DX8CORE_PRIVATE_H
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
2002-12-17 02:15:15 +01:00
|
|
|
#include "d3dx8core.h"
|
|
|
|
|
|
|
|
/* Interfaces */
|
|
|
|
typedef struct ID3DXBufferImpl ID3DXBufferImpl;
|
|
|
|
typedef struct ID3DXFontImpl ID3DXFontImpl;
|
|
|
|
|
|
|
|
/* ----------- */
|
|
|
|
/* ID3DXBuffer */
|
|
|
|
/* ----------- */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interface implementation structures
|
|
|
|
*/
|
2005-05-27 22:17:35 +02:00
|
|
|
extern const ID3DXBufferVtbl D3DXBuffer_Vtbl;
|
2002-12-17 02:15:15 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* ID3DXBufferImpl implementation structure
|
|
|
|
*/
|
|
|
|
struct ID3DXBufferImpl
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
2005-05-27 22:17:35 +02:00
|
|
|
const ID3DXBufferVtbl *lpVtbl;
|
2002-12-17 02:15:15 +01:00
|
|
|
DWORD ref;
|
|
|
|
|
|
|
|
/* ID3DXBuffer fields */
|
|
|
|
DWORD *buffer;
|
|
|
|
DWORD bufferSize;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IUnknown: */
|
|
|
|
extern HRESULT WINAPI ID3DXBufferImpl_QueryInterface(LPD3DXBUFFER iface, REFIID refiid, LPVOID *obj);
|
|
|
|
extern ULONG WINAPI ID3DXBufferImpl_AddRef(LPD3DXBUFFER iface);
|
|
|
|
extern ULONG WINAPI ID3DXBufferImpl_Release(LPD3DXBUFFER iface);
|
|
|
|
|
|
|
|
/* ID3DXBuffer: */
|
|
|
|
extern LPVOID WINAPI ID3DXBufferImpl_GetBufferPointer(LPD3DXBUFFER iface);
|
|
|
|
extern DWORD WINAPI ID3DXBufferImpl_GetBufferSize(LPD3DXBUFFER iface);
|
|
|
|
|
|
|
|
/* --------- */
|
|
|
|
/* ID3DXFont */
|
|
|
|
/* --------- */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interface implementation structures
|
|
|
|
*/
|
2005-05-27 22:17:35 +02:00
|
|
|
extern const ID3DXFontVtbl D3DXFont_Vtbl;
|
2002-12-17 02:15:15 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* ID3DXFontImpl implementation structure
|
|
|
|
*/
|
|
|
|
struct ID3DXFontImpl
|
|
|
|
{
|
|
|
|
/* IUnknown fields */
|
2005-05-27 22:17:35 +02:00
|
|
|
const ID3DXFontVtbl *lpVtbl;
|
2002-12-17 02:15:15 +01:00
|
|
|
DWORD ref;
|
|
|
|
|
|
|
|
/* ID3DXFont fields */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* IUnknown: */
|
|
|
|
extern HRESULT WINAPI ID3DXFontImpl_QueryInterface(LPD3DXFONT iface, REFIID refiid, LPVOID *obj);
|
|
|
|
extern ULONG WINAPI ID3DXFontImpl_AddRef(LPD3DXFONT iface);
|
|
|
|
extern ULONG WINAPI ID3DXFontImpl_Release(LPD3DXFONT iface);
|
|
|
|
|
|
|
|
/* ID3DXFont: */
|
|
|
|
extern INT WINAPI ID3DXFontImpl_DrawTextA(LPCSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color);
|
|
|
|
|
|
|
|
#endif /*__WINE_D3DX8CORE_PRIVATE_H */
|