Mercurial > games > semicongine
comparison fuhtark_test/include/winapi/d3dx8core.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1499:1f58458b7ef7 | 1500:91c8c3b7cbf0 |
|---|---|
| 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 St, Fifth Floor, Boston, MA 02110-1301, USA | |
| 17 */ | |
| 18 | |
| 19 #ifndef __WINE_D3DX8CORE_H | |
| 20 #define __WINE_D3DX8CORE_H | |
| 21 | |
| 22 #include <d3d8.h> | |
| 23 | |
| 24 /***************************************************************************** | |
| 25 * #defines and error codes | |
| 26 */ | |
| 27 #define D3DXASM_DEBUG 1 | |
| 28 #define D3DXASM_SKIPVALIDATION 2 | |
| 29 | |
| 30 #define _FACD3D 0x876 | |
| 31 #define MAKE_D3DXHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code ) | |
| 32 | |
| 33 /* | |
| 34 * Direct3D Errors | |
| 35 */ | |
| 36 #define D3DXERR_CANNOTATTRSORT MAKE_D3DXHRESULT(2158) | |
| 37 #define D3DXERR_CANNOTMODIFYINDEXBUFFER MAKE_D3DXHRESULT(2159) | |
| 38 #define D3DXERR_INVALIDMESH MAKE_D3DXHRESULT(2160) | |
| 39 #define D3DXERR_SKINNINGNOTSUPPORTED MAKE_D3DXHRESULT(2161) | |
| 40 #define D3DXERR_TOOMANYINFLUENCES MAKE_D3DXHRESULT(2162) | |
| 41 #define D3DXERR_INVALIDDATA MAKE_D3DXHRESULT(2163) | |
| 42 | |
| 43 /***************************************************************************** | |
| 44 * Predeclare the interfaces | |
| 45 */ | |
| 46 DEFINE_GUID(IID_ID3DXBuffer, 0x1,0x1,0x4,0xB0,0xCF,0x98,0xFE,0xFD,0xFF,0x95,0x12);/* FIXME */ | |
| 47 typedef struct ID3DXBuffer *LPD3DXBUFFER; | |
| 48 DEFINE_GUID(IID_ID3DXFont, 0x1,0x1,0x4,0xB0,0xCF,0x98,0xFE,0xFD,0xFF,0x95,0x13);/* FIXME */ | |
| 49 typedef struct ID3DXFont *LPD3DXFONT; | |
| 50 | |
| 51 /***************************************************************************** | |
| 52 * ID3DXBuffer interface | |
| 53 */ | |
| 54 #define INTERFACE ID3DXBuffer | |
| 55 DECLARE_INTERFACE_(ID3DXBuffer,IUnknown) | |
| 56 { | |
| 57 /*** IUnknown methods ***/ | |
| 58 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; | |
| 59 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
| 60 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
| 61 /*** ID3DXBuffer methods ***/ | |
| 62 STDMETHOD_(LPVOID,GetBufferPointer)(THIS) PURE; | |
| 63 STDMETHOD_(DWORD,GetBufferSize)(THIS) PURE; | |
| 64 }; | |
| 65 #undef INTERFACE | |
| 66 | |
| 67 #if !defined(__cplusplus) || defined(CINTERFACE) | |
| 68 /*** IUnknown methods ***/ | |
| 69 #define ID3DXBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
| 70 #define ID3DXBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) | |
| 71 #define ID3DXBuffer_Release(p) (p)->lpVtbl->Release(p) | |
| 72 /*** ID3DXBuffer methods ***/ | |
| 73 #define ID3DXBuffer_GetBufferPointer(p) (p)->lpVtbl->GetBufferPointer(p) | |
| 74 #define ID3DXBuffer_GetBufferSize(p) (p)->lpVtbl->GetBufferSize(p) | |
| 75 #endif | |
| 76 | |
| 77 /***************************************************************************** | |
| 78 * ID3DXFont interface | |
| 79 */ | |
| 80 #define INTERFACE ID3DXFont | |
| 81 DECLARE_INTERFACE_(ID3DXFont,IUnknown) | |
| 82 { | |
| 83 /*** IUnknown methods ***/ | |
| 84 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; | |
| 85 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
| 86 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
| 87 /*** ID3DXFont methods ***/ | |
| 88 STDMETHOD(Begin)(THIS) PURE; | |
| 89 STDMETHOD(DrawTextA)(THIS) PURE; | |
| 90 STDMETHOD(End)(THIS) PURE; | |
| 91 }; | |
| 92 #undef INTERFACE | |
| 93 | |
| 94 #if !defined(__cplusplus) || defined(CINTERFACE) | |
| 95 /*** IUnknown methods ***/ | |
| 96 #define ID3DXFont_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
| 97 #define ID3DXFont_AddRef(p) (p)->lpVtbl->AddRef(p) | |
| 98 #define ID3DXFont_Release(p) (p)->lpVtbl->Release(p) | |
| 99 /*** ID3DXFont methods ***/ | |
| 100 #define ID3DXFont_Begin(p) (p)->lpVtbl->Begin(p) | |
| 101 #define ID3DXFont_DrawTextA(p,a,b,c,d,e)(p)->lpVtbl->DrawText(p,a,b,c,d,e) | |
| 102 #define ID3DXFont_End(p) (p)->lpVtbl->End(p) | |
| 103 #endif | |
| 104 | |
| 105 /************************************************************************************* | |
| 106 * Define entrypoints | |
| 107 */ | |
| 108 #ifdef __cplusplus | |
| 109 extern "C" { | |
| 110 #endif | |
| 111 | |
| 112 HRESULT WINAPI D3DXCreateBuffer(DWORD NumBytes, LPD3DXBUFFER* ppBuffer); | |
| 113 HRESULT WINAPI D3DXCreateFont(LPDIRECT3DDEVICE8 pDevice, HFONT hFont, LPD3DXFONT* ppFont); | |
| 114 UINT WINAPI D3DXGetFVFVertexSize(DWORD FVF); | |
| 115 HRESULT WINAPI D3DXAssembleShader(LPCVOID pSrcData, UINT SrcDataLen, DWORD Flags, | |
| 116 LPD3DXBUFFER* ppConstants, | |
| 117 LPD3DXBUFFER* ppCompiledShader, | |
| 118 LPD3DXBUFFER* ppCompilationErrors); | |
| 119 HRESULT WINAPI D3DXAssembleShaderFromFileA(LPCSTR pSrcFile, DWORD Flags, | |
| 120 LPD3DXBUFFER* ppConstants, | |
| 121 LPD3DXBUFFER* ppCompiledShader, | |
| 122 LPD3DXBUFFER* ppCompilationErrors); | |
| 123 HRESULT WINAPI D3DXAssembleShaderFromFileW(LPCWSTR pSrcFile, DWORD Flags, | |
| 124 LPD3DXBUFFER* ppConstants, | |
| 125 LPD3DXBUFFER* ppCompiledShader, | |
| 126 LPD3DXBUFFER* ppCompilationErrors); | |
| 127 | |
| 128 #ifdef __cplusplus | |
| 129 } | |
| 130 #endif | |
| 131 | |
| 132 #endif /* __WINE_D3DX8CORE_H */ |
