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
31 D3DX10_IFF_FORCE_DWORD
= 0x7fffffff
32 } D3DX10_IMAGE_FILE_FORMAT
;
34 typedef struct D3DX10_IMAGE_INFO
43 D3D10_RESOURCE_DIMENSION ResourceDimension
;
44 D3DX10_IMAGE_FILE_FORMAT ImageFileFormat
;
47 typedef struct D3DX10_IMAGE_LOAD_INFO
61 D3DX10_IMAGE_INFO
*pSrcInfo
;
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
;
81 } D3DX10_IMAGE_LOAD_INFO
;
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
);