Merge pull request #22816 from CastagnaIT/fix_tx3g
[xbmc.git] / xbmc / guilib / gui3d.h
blobf7473369d7e891cc6923174a7edd9108cd5b84f5
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "PlatformDefs.h" // for TARGET_WINDOWS types
13 #define GAMMA_RAMP_FLAG D3DSGR_CALIBRATE
15 #define D3DFMT_LIN_A8R8G8B8 D3DFMT_A8R8G8B8
16 #define D3DFMT_LIN_X8R8G8B8 D3DFMT_X8R8G8B8
17 #define D3DFMT_LIN_L8 D3DFMT_L8
18 #define D3DFMT_LIN_D16 D3DFMT_D16
19 #define D3DFMT_LIN_A8 D3DFMT_A8
21 #define D3DPIXELSHADERDEF DWORD
23 struct D3DTexture
25 DWORD Common;
26 DWORD Data;
27 DWORD Lock;
29 DWORD Format; // Format information about the texture.
30 DWORD Size; // Size of a non power-of-2 texture, must be zero otherwise
33 #define D3DCOMMON_TYPE_MASK 0x0070000
34 #define D3DCOMMON_TYPE_TEXTURE 0x0040000
36 struct D3DPalette
38 DWORD Common;
39 DWORD Data;
40 DWORD Lock;
43 typedef D3DPalette* LPDIRECT3DPALETTE8;