ReactOS 0.4.16-dev-297-gc569aee
d3dx8core.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002 Raphael Junqueira
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef __WINE_D3DX8CORE_H
20#define __WINE_D3DX8CORE_H
21
22#include <objbase.h>
23
24#include <d3d8.h>
25#include <d3d8types.h>
26#include <d3d8caps.h>
27
28/*****************************************************************************
29 * #defines and error codes
30 */
31#define D3DXASM_DEBUG 1
32#define D3DXASM_SKIPVALIDATION 2
33
34#define _FACD3D 0x876
35#define MAKE_D3DXHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )
36
37/*
38 * Direct3D Errors
39 */
40#define D3DXERR_CANNOTATTRSORT MAKE_D3DXHRESULT(2158)
41#define D3DXERR_CANNOTMODIFYINDEXBUFFER MAKE_D3DXHRESULT(2159)
42#define D3DXERR_INVALIDMESH MAKE_D3DXHRESULT(2160)
43#define D3DXERR_SKINNINGNOTSUPPORTED MAKE_D3DXHRESULT(2161)
44#define D3DXERR_TOOMANYINFLUENCES MAKE_D3DXHRESULT(2162)
45#define D3DXERR_INVALIDDATA MAKE_D3DXHRESULT(2163)
46
47/*****************************************************************************
48 * Predeclare the interfaces
49 */
50DEFINE_GUID(IID_ID3DXBuffer, 0x1,0x1,0x4,0xB0,0xCF,0x98,0xFE,0xFD,0xFF,0x95,0x12);/* FIXME */
52DEFINE_GUID(IID_ID3DXFont, 0x1,0x1,0x4,0xB0,0xCF,0x98,0xFE,0xFD,0xFF,0x95,0x13);/* FIXME */
54
55/*****************************************************************************
56 * ID3DXBuffer interface
57 */
58#define INTERFACE ID3DXBuffer
60{
61 /*** IUnknown methods ***/
65 /*** ID3DXBuffer methods ***/
66 STDMETHOD_(LPVOID,GetBufferPointer)(THIS) PURE;
67 STDMETHOD_(DWORD,GetBufferSize)(THIS) PURE;
68};
69#undef INTERFACE
70
71#if !defined(__cplusplus) || defined(CINTERFACE)
72/*** IUnknown methods ***/
73#define ID3DXBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
74#define ID3DXBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
75#define ID3DXBuffer_Release(p) (p)->lpVtbl->Release(p)
76/*** ID3DXBuffer methods ***/
77#define ID3DXBuffer_GetBufferPointer(p) (p)->lpVtbl->GetBufferPointer(p)
78#define ID3DXBuffer_GetBufferSize(p) (p)->lpVtbl->GetBufferSize(p)
79#endif
80
81/*****************************************************************************
82 * ID3DXFont interface
83 */
84#define INTERFACE ID3DXFont
86{
87 /*** IUnknown methods ***/
91 /*** ID3DXFont methods ***/
94 STDMETHOD(End)(THIS) PURE;
95};
96#undef INTERFACE
97
98#if !defined(__cplusplus) || defined(CINTERFACE)
99/*** IUnknown methods ***/
100#define ID3DXFont_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
101#define ID3DXFont_AddRef(p) (p)->lpVtbl->AddRef(p)
102#define ID3DXFont_Release(p) (p)->lpVtbl->Release(p)
103/*** ID3DXFont methods ***/
104#define ID3DXFont_Begin(p) (p)->lpVtbl->Begin(p)
105#define ID3DXFont_DrawTextA(p,a,b,c,d,e)(p)->lpVtbl->DrawText(p,a,b,c,d,e)
106#define ID3DXFont_End(p) (p)->lpVtbl->End(p)
107#endif
108
109/*************************************************************************************
110 * Define entrypoints
111 */
116 LPD3DXBUFFER* ppConstants,
117 LPD3DXBUFFER* ppCompiledShader,
118 LPD3DXBUFFER* ppCompilationErrors);
120 LPD3DXBUFFER* ppConstants,
121 LPD3DXBUFFER* ppCompiledShader,
122 LPD3DXBUFFER* ppCompilationErrors);
124 LPD3DXBUFFER* ppConstants,
125 LPD3DXBUFFER* ppCompiledShader,
126 LPD3DXBUFFER* ppCompilationErrors);
127
128#endif /* __WINE_D3DX8CORE_H */
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN Begin
Definition: acpixf.h:1301
HFONT hFont
Definition: main.c:53
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
struct ID3DXBuffer ID3DXBuffer
Definition: d3dx8core.h:51
UINT WINAPI D3DXGetFVFVertexSize(DWORD FVF)
Definition: mesh.c:2289
struct ID3DXBuffer * LPD3DXBUFFER
Definition: d3dx8core.h:51
HRESULT WINAPI D3DXCreateBuffer(DWORD NumBytes, LPD3DXBUFFER *ppBuffer)
Definition: core.c:131
HRESULT WINAPI D3DXAssembleShaderFromFileW(LPSTR pSrcFile, DWORD Flags, LPD3DXBUFFER *ppConstants, LPD3DXBUFFER *ppCompiledShader, LPD3DXBUFFER *ppCompilationErrors)
HRESULT WINAPI D3DXAssembleShader(LPCVOID pSrcData, UINT SrcDataLen, DWORD Flags, LPD3DXBUFFER *ppConstants, LPD3DXBUFFER *ppCompiledShader, LPD3DXBUFFER *ppCompilationErrors)
HRESULT WINAPI D3DXAssembleShaderFromFileA(LPSTR pSrcFile, DWORD Flags, LPD3DXBUFFER *ppConstants, LPD3DXBUFFER *ppCompiledShader, LPD3DXBUFFER *ppCompilationErrors)
struct ID3DXFont * LPD3DXFONT
Definition: d3dx8core.h:53
struct ID3DXFont ID3DXFont
Definition: d3dx8core.h:53
struct ID3DXFont * LPD3DXFONT
Definition: d3dx9core.h:57
#define D3DXCreateFont
Definition: d3dx9core.h:488
struct ID3DXBuffer * LPD3DXBUFFER
Definition: d3dx9core.h:56
unsigned long DWORD
Definition: ntddk_ex.h:95
FxDevice * pDevice
REFIID riid
Definition: atlbase.h:39
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
unsigned int UINT
Definition: ndis.h:50
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
struct IDirect3DDevice8 * LPDIRECT3DDEVICE8
Definition: d3d8.h:97
uint32_t ULONG
Definition: typedefs.h:59
INT WINAPI DrawTextA(HDC hdc, LPCSTR str, INT count, LPRECT rect, UINT flags)
Definition: font.c:373
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082
CONST void * LPCVOID
Definition: windef.h:191
#define WINAPI
Definition: msvc.h:6
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
char * LPSTR
Definition: xmlstorage.h:182