xref: /reactos/dll/directx/d3d9/d3d9_callbacks.h (revision 40462c92)
1 /*
2  * COPYRIGHT:       See COPYING in the top level directory
3  * PROJECT:         ReactOS ReactX
4  * FILE:            dll/directx/d3d9/d3d9_callbacks.h
5  * PURPOSE:         Direct3D9's callback structs and constants
6  * PROGRAMERS:      Gregor Gullwi <gbrunmar (dot) ros (at) gmail (dot) com>
7  */
8 #ifndef _D3D9_CALLBACKS_H_
9 #define _D3D9_CALLBACKS_H_
10 
11 typedef enum _D3D9_GETAVAILDRIVERMEMORY_TYPE
12 {
13     D3D9_GETAVAILDRIVERMEMORY_TYPE_ALL      = 0,
14     D3D9_GETAVAILDRIVERMEMORY_TYPE_LOCAL    = 4,
15     D3D9_GETAVAILDRIVERMEMORY_TYPE_NONLOCAL = 5,
16 } D3D9_GETAVAILDRIVERMEMORY_TYPE;
17 
18 #define D3D9_TEXTURETYPE_HALSURFACE     1
19 #define D3D9_TEXTURETYPE_BACKBUFFER     2
20 
21 typedef struct _D3D9_GETAVAILDRIVERMEMORYDATA
22 {
23 /* 0x0000 */    struct _D3D9_Unknown6BC* pUnknown6BC;
24 /* 0x0004 */    D3D9_GETAVAILDRIVERMEMORY_TYPE dwMemoryType;
25 /* 0x0008 */    DWORD dwTextureType;
26 /* 0x000c */    DWORD dwFree;
27 } D3D9_GETAVAILDRIVERMEMORYDATA, FAR* LPD3D9_GETAVAILDRIVERMEMORYDATA;
28 
29 typedef DWORD (WINAPI FAR* LPD3D9_GETAVAILDRIVERMEMORY)(LPD3D9_GETAVAILDRIVERMEMORYDATA);
30 
31 DWORD WINAPI D3d9GetAvailDriverMemory(LPD3D9_GETAVAILDRIVERMEMORYDATA pData);
32 
33 #endif // _D3D9_CALLBACKS_H_
34