[cosmetics] update date in GPL header
[vuplus_xbmc] / xbmc / guilib / gui3d.h
1 /*!
2 \file gui3d.h
3 \brief
4 */
5
6 #ifndef GUILIB_GUI3D_H
7 #define GUILIB_GUI3D_H
8 #pragma once
9
10 /*
11  *      Copyright (C) 2005-2013 Team XBMC
12  *      http://www.xbmc.org
13  *
14  *  This Program is free software; you can redistribute it and/or modify
15  *  it under the terms of the GNU General Public License as published by
16  *  the Free Software Foundation; either version 2, or (at your option)
17  *  any later version.
18  *
19  *  This Program is distributed in the hope that it will be useful,
20  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  *  GNU General Public License for more details.
23  *
24  *  You should have received a copy of the GNU General Public License
25  *  along with XBMC; see the file COPYING.  If not, see
26  *  <http://www.gnu.org/licenses/>.
27  *
28  */
29
30 #include "system.h" // for WIN32 types
31
32 #define GAMMA_RAMP_FLAG  D3DSGR_CALIBRATE
33
34 #define D3DPRESENTFLAG_INTERLACED   1
35 #define D3DPRESENTFLAG_WIDESCREEN   2
36 #define D3DPRESENTFLAG_PROGRESSIVE  4
37 #define D3DPRESENTFLAG_MODE3DSBS    8
38 #define D3DPRESENTFLAG_MODE3DTB    16
39
40 #define D3DFMT_LIN_A8R8G8B8 D3DFMT_A8R8G8B8
41 #define D3DFMT_LIN_X8R8G8B8 D3DFMT_X8R8G8B8
42 #define D3DFMT_LIN_L8       D3DFMT_L8
43 #define D3DFMT_LIN_D16      D3DFMT_D16
44 #define D3DFMT_LIN_A8       D3DFMT_A8
45
46 #define D3DPIXELSHADERDEF DWORD
47
48 struct D3DTexture
49 {
50   DWORD Common;
51   DWORD Data;
52   DWORD Lock;
53
54   DWORD Format;   // Format information about the texture.
55   DWORD Size;     // Size of a non power-of-2 texture, must be zero otherwise
56 };
57
58 #define D3DCOMMON_TYPE_MASK 0x0070000
59 #define D3DCOMMON_TYPE_TEXTURE 0x0040000
60
61 struct D3DPalette
62 {
63   DWORD Common;
64   DWORD Data;
65   DWORD Lock;
66 };
67
68 typedef D3DPalette* LPDIRECT3DPALETTE8;
69
70 #endif // GUILIB_GUI3D_H