[QUARTZ]
[reactos.git] / reactos / dll / directx / d3d9 / d3d9_basetexture.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS ReactX
4 * FILE: dll/directx/d3d9/d3d9_basetexture.h
5 * PURPOSE: Work-around for gcc warning, DO NOT USE FOR ANYTHING ELSE!!!
6 * PROGRAMERS: Gregor Gullwi <gbrunmar (dot) ros (at) gmail (dot) com>
7 */
8 #ifndef _D3D9_BASETEXTURE_H_
9 #define _D3D9_BASETEXTURE_H_
10
11 #include "d3d9_resource.h"
12
13 // Work-around for:
14 // "warning: 'FilterType' is narrower than values of its type"
15 #if __GNUC__ >=3
16 #pragma GCC system_header
17 #endif
18
19 struct IDirect3DBaseTexture9Vtbl;
20
21 #pragma pack(push)
22 #pragma pack(1)
23 typedef struct _Direct3DBaseTexture9_INT
24 {
25 /* 0x0000 */ IDirect3DBaseTexture9Vtbl* lpVtbl;
26 /* 0x0004 */ DWORD dwUnknown04;
27 /* 0x0008 */ Direct3DResource9_INT BaseResource;
28 /* 0x004c */ DWORD dwUnknown4c;
29 /* 0x0050 */ D3DFORMAT Format;
30 /* 0x0054 */ DWORD Usage;
31 /* 0x0058 */ WORD MipMapLevels;
32 union {
33 /* 0x005a */ D3DTEXTUREFILTERTYPE FilterType : 8;
34 struct
35 {
36 /* 0x005a */ DWORD dwFilterType : 8;
37 /* 0x005b */ BOOL bIsAutoGenMipMap : 8;
38 /* 0x005c */ DWORD MipMapLevels2 : 8;
39 /* 0x005d */ DWORD MaxLOD : 8;
40 };
41 };
42 /* 0x005e */ WORD wPaletteIndex;
43 } Direct3DBaseTexture9_INT;
44 #pragma pack(pop)
45
46 #endif