wined3d: Use the texture dimension helpers in wined3d_texture_update_overlay().
[wine.git] / include / d3dx10tex.h
blobaa89ab4f7867562bc09fed94da3004033bb89279
1 /*
2 * Copyright 2016 Alistair Leslie-Hughes
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __D3DX10TEX_H__
20 #define __D3DX10TEX_H__
22 typedef enum D3DX10_IMAGE_FILE_FORMAT
24 D3DX10_IFF_BMP = 0,
25 D3DX10_IFF_JPG = 1,
26 D3DX10_IFF_PNG = 3,
27 D3DX10_IFF_DDS = 4,
28 D3DX10_IFF_TIFF = 10,
29 D3DX10_IFF_GIF = 11,
30 D3DX10_IFF_WMP = 12,
31 D3DX10_IFF_FORCE_DWORD = 0x7fffffff
32 } D3DX10_IMAGE_FILE_FORMAT;
34 typedef struct D3DX10_IMAGE_INFO
36 UINT Width;
37 UINT Height;
38 UINT Depth;
39 UINT ArraySize;
40 UINT MipLevels;
41 UINT MiscFlags;
42 DXGI_FORMAT Format;
43 D3D10_RESOURCE_DIMENSION ResourceDimension;
44 D3DX10_IMAGE_FILE_FORMAT ImageFileFormat;
45 } D3DX10_IMAGE_INFO;
47 typedef struct D3DX10_IMAGE_LOAD_INFO
49 UINT Width;
50 UINT Height;
51 UINT Depth;
52 UINT FirstMipLevel;
53 UINT MipLevels;
54 D3D10_USAGE Usage;
55 UINT BindFlags;
56 UINT CpuAccessFlags;
57 UINT MiscFlags;
58 DXGI_FORMAT Format;
59 UINT Filter;
60 UINT MipFilter;
61 D3DX10_IMAGE_INFO *pSrcInfo;
63 #ifdef __cplusplus
64 D3DX10_IMAGE_LOAD_INFO()
66 Width = D3DX10_DEFAULT;
67 Height = D3DX10_DEFAULT;
68 Depth = D3DX10_DEFAULT;
69 FirstMipLevel = D3DX10_DEFAULT;
70 MipLevels = D3DX10_DEFAULT;
71 Usage = (D3D10_USAGE)D3DX10_DEFAULT;
72 BindFlags = D3DX10_DEFAULT;
73 CpuAccessFlags = D3DX10_DEFAULT;
74 MiscFlags = D3DX10_DEFAULT;
75 Format = DXGI_FORMAT_FROM_FILE;
76 Filter = D3DX10_DEFAULT;
77 MipFilter = D3DX10_DEFAULT;
78 pSrcInfo = NULL;
80 #endif
81 } D3DX10_IMAGE_LOAD_INFO;
83 #ifdef __cplusplus
84 extern "C" {
85 #endif
87 HRESULT WINAPI D3DX10CreateTextureFromMemory(ID3D10Device *device, const void *src_data, SIZE_T src_data_size,
88 D3DX10_IMAGE_LOAD_INFO *loadinfo, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult);
91 #ifdef __cplusplus
93 #endif
95 #endif