Changeset 23571 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/d3d9_private.h
- Timestamp:
- Oct 6, 2009 6:07:06 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/d3d9_private.h
r19678 r23571 4 4 * Copyright 2002-2003 Jason Edmeades 5 5 * Copyright 2002-2003 Raphael Junqueira 6 * Copyright 2005 Oliver Stieber 6 * Copyright 2005 Oliver Stieber 7 7 * 8 8 * This library is free software; you can redistribute it and/or … … 51 51 Internal use 52 52 =========================================================================== */ 53 extern HRESULT vdecl_convert_fvf( 54 DWORD FVF, 55 D3DVERTEXELEMENT9** ppVertexElements); 56 extern CRITICAL_SECTION d3d9_cs; 57 D3DFORMAT d3dformat_from_wined3dformat(WINED3DFORMAT format); 58 WINED3DFORMAT wined3dformat_from_d3dformat(D3DFORMAT format); 53 extern HRESULT vdecl_convert_fvf(DWORD FVF, D3DVERTEXELEMENT9 **ppVertexElements) DECLSPEC_HIDDEN; 54 D3DFORMAT d3dformat_from_wined3dformat(WINED3DFORMAT format) DECLSPEC_HIDDEN; 55 WINED3DFORMAT wined3dformat_from_d3dformat(D3DFORMAT format) DECLSPEC_HIDDEN; 59 56 60 57 /* =========================================================================== … … 151 148 * Predeclare the interface implementation structures 152 149 */ 153 extern const IDirect3D9ExVtbl Direct3D9_Vtbl ;150 extern const IDirect3D9ExVtbl Direct3D9_Vtbl DECLSPEC_HIDDEN; 154 151 155 152 /***************************************************************************** … … 169 166 } IDirect3D9Impl; 170 167 171 void filter_caps(D3DCAPS9* pCaps) ;168 void filter_caps(D3DCAPS9* pCaps) DECLSPEC_HIDDEN; 172 169 173 170 /* ---------------- */ … … 178 175 * Predeclare the interface implementation structures 179 176 */ 180 extern const IDirect3DDevice9ExVtbl Direct3DDevice9_Vtbl ;181 extern const IWineD3DDeviceParentVtbl d3d9_wined3d_device_parent_vtbl ;177 extern const IDirect3DDevice9ExVtbl Direct3DDevice9_Vtbl DECLSPEC_HIDDEN; 178 extern const IWineD3DDeviceParentVtbl d3d9_wined3d_device_parent_vtbl DECLSPEC_HIDDEN; 182 179 183 180 /***************************************************************************** … … 205 202 206 203 /* IDirect3DDevice9: */ 207 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateAdditionalSwapChain(LPDIRECT3DDEVICE9EX iface, D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** pSwapChain); 208 extern HRESULT WINAPI IDirect3DDevice9Impl_GetSwapChain(LPDIRECT3DDEVICE9EX iface, UINT iSwapChain, IDirect3DSwapChain9** pSwapChain); 209 extern UINT WINAPI IDirect3DDevice9Impl_GetNumberOfSwapChains(LPDIRECT3DDEVICE9EX iface); 210 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateTexture(LPDIRECT3DDEVICE9EX iface, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle); 211 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateVolumeTexture(LPDIRECT3DDEVICE9EX iface, UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle); 212 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateCubeTexture(LPDIRECT3DDEVICE9EX iface, UINT EdgeLength, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle); 213 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexBuffer(LPDIRECT3DDEVICE9EX iface, UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle); 214 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateIndexBuffer(LPDIRECT3DDEVICE9EX iface, UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle); 215 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateStateBlock(LPDIRECT3DDEVICE9EX iface, D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB); 216 extern HRESULT WINAPI IDirect3DDevice9Impl_BeginStateBlock(LPDIRECT3DDEVICE9EX iface); 217 extern HRESULT WINAPI IDirect3DDevice9Impl_EndStateBlock(LPDIRECT3DDEVICE9EX iface, IDirect3DStateBlock9** ppSB); 218 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexDeclaration(LPDIRECT3DDEVICE9EX iface, CONST D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl); 219 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexDeclaration(LPDIRECT3DDEVICE9EX iface, IDirect3DVertexDeclaration9* pDecl); 220 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexDeclaration(LPDIRECT3DDEVICE9EX iface, IDirect3DVertexDeclaration9** ppDecl); 221 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexShader(LPDIRECT3DDEVICE9EX iface, CONST DWORD* pFunction, IDirect3DVertexShader9** ppShader); 222 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShader(LPDIRECT3DDEVICE9EX iface, IDirect3DVertexShader9* pShader); 223 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShader(LPDIRECT3DDEVICE9EX iface, IDirect3DVertexShader9** ppShader); 224 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShaderConstantF(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount); 225 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShaderConstantF(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, float* pConstantData, UINT Vector4fCount); 226 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShaderConstantI(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount); 227 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShaderConstantI(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, int* pConstantData, UINT Vector4iCount); 228 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShaderConstantB(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount); 229 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShaderConstantB(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, BOOL* pConstantData, UINT BoolCount); 230 extern HRESULT WINAPI IDirect3DDevice9Impl_CreatePixelShader(LPDIRECT3DDEVICE9EX iface, CONST DWORD* pFunction, IDirect3DPixelShader9** ppShader); 231 extern HRESULT WINAPI IDirect3DDevice9Impl_SetPixelShader(LPDIRECT3DDEVICE9EX iface, IDirect3DPixelShader9* pShader); 232 extern HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShader(LPDIRECT3DDEVICE9EX iface, IDirect3DPixelShader9** ppShader); 233 extern HRESULT WINAPI IDirect3DDevice9Impl_SetPixelShaderConstantF(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount); 234 extern HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShaderConstantF(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, float* pConstantData, UINT Vector4fCount); 235 extern HRESULT WINAPI IDirect3DDevice9Impl_SetPixelShaderConstantI(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount); 236 extern HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShaderConstantI(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, int* pConstantData, UINT Vector4iCount); 237 extern HRESULT WINAPI IDirect3DDevice9Impl_SetPixelShaderConstantB(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount); 238 extern HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShaderConstantB(LPDIRECT3DDEVICE9EX iface, UINT StartRegister, BOOL* pConstantData, UINT BoolCount); 239 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateQuery(LPDIRECT3DDEVICE9EX iface, D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery); 204 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateAdditionalSwapChain(IDirect3DDevice9Ex *iface, 205 D3DPRESENT_PARAMETERS *pPresentationParameters, IDirect3DSwapChain9 **pSwapChain) DECLSPEC_HIDDEN; 206 extern HRESULT WINAPI IDirect3DDevice9Impl_GetSwapChain(IDirect3DDevice9Ex *iface, 207 UINT iSwapChain, IDirect3DSwapChain9 **pSwapChain) DECLSPEC_HIDDEN; 208 extern UINT WINAPI IDirect3DDevice9Impl_GetNumberOfSwapChains(IDirect3DDevice9Ex *iface) DECLSPEC_HIDDEN; 209 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateStateBlock(IDirect3DDevice9Ex *iface, 210 D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9 **ppSB) DECLSPEC_HIDDEN; 211 extern HRESULT WINAPI IDirect3DDevice9Impl_BeginStateBlock(IDirect3DDevice9Ex *iface) DECLSPEC_HIDDEN; 212 extern HRESULT WINAPI IDirect3DDevice9Impl_EndStateBlock(IDirect3DDevice9Ex *iface, 213 IDirect3DStateBlock9 **ppSB) DECLSPEC_HIDDEN; 214 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexDeclaration(IDirect3DDevice9Ex *iface, 215 IDirect3DVertexDeclaration9 *pDecl) DECLSPEC_HIDDEN; 216 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexDeclaration(IDirect3DDevice9Ex *iface, 217 IDirect3DVertexDeclaration9 **ppDecl) DECLSPEC_HIDDEN; 218 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShader(IDirect3DDevice9Ex *iface, 219 IDirect3DVertexShader9 *pShader) DECLSPEC_HIDDEN; 220 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShader(IDirect3DDevice9Ex *iface, 221 IDirect3DVertexShader9 **ppShader) DECLSPEC_HIDDEN; 222 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShaderConstantF(IDirect3DDevice9Ex *iface, 223 UINT StartRegister, const float *pConstantData, UINT Vector4fCount) DECLSPEC_HIDDEN; 224 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShaderConstantF(IDirect3DDevice9Ex *iface, 225 UINT StartRegister, float *pConstantData, UINT Vector4fCount) DECLSPEC_HIDDEN; 226 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShaderConstantI(IDirect3DDevice9Ex *iface, 227 UINT StartRegister, const int *pConstantData, UINT Vector4iCount) DECLSPEC_HIDDEN; 228 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShaderConstantI(IDirect3DDevice9Ex *iface, 229 UINT StartRegister, int *pConstantData, UINT Vector4iCount) DECLSPEC_HIDDEN; 230 extern HRESULT WINAPI IDirect3DDevice9Impl_SetVertexShaderConstantB(IDirect3DDevice9Ex *iface, 231 UINT StartRegister, const BOOL *pConstantData, UINT BoolCount) DECLSPEC_HIDDEN; 232 extern HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShaderConstantB(IDirect3DDevice9Ex *iface, 233 UINT StartRegister, BOOL *pConstantData, UINT BoolCount) DECLSPEC_HIDDEN; 234 extern HRESULT WINAPI IDirect3DDevice9Impl_SetPixelShader(IDirect3DDevice9Ex *iface, 235 IDirect3DPixelShader9 *pShader) DECLSPEC_HIDDEN; 236 extern HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShader(IDirect3DDevice9Ex *iface, 237 IDirect3DPixelShader9 **ppShader) DECLSPEC_HIDDEN; 238 extern HRESULT WINAPI IDirect3DDevice9Impl_SetPixelShaderConstantF(IDirect3DDevice9Ex *iface, 239 UINT StartRegister, const float *pConstantData, UINT Vector4fCount) DECLSPEC_HIDDEN; 240 extern HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShaderConstantF(IDirect3DDevice9Ex *iface, 241 UINT StartRegister, float *pConstantData, UINT Vector4fCount) DECLSPEC_HIDDEN; 242 extern HRESULT WINAPI IDirect3DDevice9Impl_SetPixelShaderConstantI(IDirect3DDevice9Ex *iface, 243 UINT StartRegister, const int *pConstantData, UINT Vector4iCount) DECLSPEC_HIDDEN; 244 extern HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShaderConstantI(IDirect3DDevice9Ex *iface, 245 UINT StartRegister, int *pConstantData, UINT Vector4iCount) DECLSPEC_HIDDEN; 246 extern HRESULT WINAPI IDirect3DDevice9Impl_SetPixelShaderConstantB(IDirect3DDevice9Ex *iface, 247 UINT StartRegister, const BOOL *pConstantData, UINT BoolCount) DECLSPEC_HIDDEN; 248 extern HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShaderConstantB(IDirect3DDevice9Ex *iface, 249 UINT StartRegister, BOOL *pConstantData, UINT BoolCount) DECLSPEC_HIDDEN; 250 extern HRESULT WINAPI IDirect3DDevice9Impl_CreateQuery(IDirect3DDevice9Ex *iface, 251 D3DQUERYTYPE Type, IDirect3DQuery9 **ppQuery) DECLSPEC_HIDDEN; 240 252 241 253 … … 247 259 * IDirect3DVolume9 implementation structure 248 260 */ 249 extern const IDirect3DVolume9Vtbl Direct3DVolume9_Vtbl;250 261 typedef struct IDirect3DVolume9Impl 251 262 { … … 264 275 } IDirect3DVolume9Impl; 265 276 277 HRESULT volume_init(IDirect3DVolume9Impl *volume, IDirect3DDevice9Impl *device, UINT width, UINT height, 278 UINT depth, DWORD usage, WINED3DFORMAT format, WINED3DPOOL pool) DECLSPEC_HIDDEN; 279 266 280 /* ------------------- */ 267 281 /* IDirect3DSwapChain9 */ … … 292 306 293 307 /***************************************************************************** 294 * Predeclare the interface implementation structures295 */296 extern const IDirect3DSurface9Vtbl Direct3DSurface9_Vtbl;297 298 /*****************************************************************************299 308 * IDirect3DSurface9 implementation structure 300 309 */ … … 317 326 IUnknown *forwardReference; 318 327 319 /* Flags an implicit surface */ 320 BOOL isImplicit; 328 BOOL getdc_supported; 321 329 } IDirect3DSurface9Impl; 330 331 HRESULT surface_init(IDirect3DSurface9Impl *surface, IDirect3DDevice9Impl *device, 332 UINT width, UINT height, D3DFORMAT format, BOOL lockable, BOOL discard, UINT level, 333 DWORD usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality) DECLSPEC_HIDDEN; 322 334 323 335 /* ---------------------- */ … … 343 355 } IDirect3DVertexBuffer9Impl; 344 356 357 HRESULT vertexbuffer_init(IDirect3DVertexBuffer9Impl *buffer, IDirect3DDevice9Impl *device, 358 UINT size, UINT usage, DWORD fvf, D3DPOOL pool) DECLSPEC_HIDDEN; 359 345 360 /* --------------------- */ 346 361 /* IDirect3DIndexBuffer9 */ … … 364 379 } IDirect3DIndexBuffer9Impl; 365 380 381 HRESULT indexbuffer_init(IDirect3DIndexBuffer9Impl *buffer, IDirect3DDevice9Impl *device, 382 UINT size, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN; 383 366 384 /* --------------------- */ 367 385 /* IDirect3DBaseTexture9 */ … … 379 397 /* IDirect3DResource9 fields */ 380 398 IWineD3DBaseTexture *wineD3DBaseTexture; 381 382 399 } IDirect3DBaseTexture9Impl; 383 400 … … 402 419 } IDirect3DCubeTexture9Impl; 403 420 421 HRESULT cubetexture_init(IDirect3DCubeTexture9Impl *texture, IDirect3DDevice9Impl *device, 422 UINT edge_length, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN; 404 423 405 424 /* ----------------- */ … … 423 442 } IDirect3DTexture9Impl; 424 443 444 HRESULT texture_init(IDirect3DTexture9Impl *texture, IDirect3DDevice9Impl *device, 445 UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN; 446 425 447 /* ----------------------- */ 426 448 /* IDirect3DVolumeTexture9 */ … … 442 464 LPDIRECT3DDEVICE9EX parentDevice; 443 465 } IDirect3DVolumeTexture9Impl; 466 467 HRESULT volumetexture_init(IDirect3DVolumeTexture9Impl *texture, IDirect3DDevice9Impl *device, 468 UINT width, UINT height, UINT depth, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN; 444 469 445 470 /* ----------------------- */ … … 486 511 } IDirect3DVertexDeclaration9Impl; 487 512 488 void IDirect3DVertexDeclaration9Impl_Destroy(LPDIRECT3DVERTEXDECLARATION9 iface); 513 void IDirect3DVertexDeclaration9Impl_Destroy(LPDIRECT3DVERTEXDECLARATION9 iface) DECLSPEC_HIDDEN; 514 HRESULT vertexdeclaration_init(IDirect3DVertexDeclaration9Impl *declaration, 515 IDirect3DDevice9Impl *device, const D3DVERTEXELEMENT9 *elements) DECLSPEC_HIDDEN; 489 516 490 517 /* ---------------------- */ … … 507 534 } IDirect3DVertexShader9Impl; 508 535 536 HRESULT vertexshader_init(IDirect3DVertexShader9Impl *shader, 537 IDirect3DDevice9Impl *device, const DWORD *byte_code) DECLSPEC_HIDDEN; 538 509 539 #define D3D9_MAX_VERTEX_SHADER_CONSTANTF 256 540 #define D3D9_MAX_SIMULTANEOUS_RENDERTARGETS 4 510 541 511 542 /* --------------------- */ … … 528 559 } IDirect3DPixelShader9Impl; 529 560 561 HRESULT pixelshader_init(IDirect3DPixelShader9Impl *shader, 562 IDirect3DDevice9Impl *device, const DWORD *byte_code) DECLSPEC_HIDDEN; 563 530 564 /* --------------- */ 531 565 /* IDirect3DQuery9 */ … … 549 583 550 584 /* Callbacks */ 551 extern ULONG WINAPI D3D9CB_DestroySwapChain (IWineD3DSwapChain *pSwapChain); 552 extern ULONG WINAPI D3D9CB_DestroyDepthStencilSurface (IWineD3DSurface *pSurface); 553 extern ULONG WINAPI D3D9CB_DestroyRenderTarget (IWineD3DSurface *pSurface); 554 extern ULONG WINAPI D3D9CB_DestroySurface(IWineD3DSurface *pSurface); 555 extern ULONG WINAPI D3D9CB_DestroyVolume(IWineD3DVolume *pVolume); 585 extern ULONG WINAPI D3D9CB_DestroySwapChain (IWineD3DSwapChain *pSwapChain) DECLSPEC_HIDDEN; 556 586 557 587 #endif /* __WINE_D3D9_PRIVATE_H */
Note:
See TracChangeset
for help on using the changeset viewer.