ReactOS 0.4.17-dev-934-g091855f
d3dx10tex.h
Go to the documentation of this file.
1/*
2 * Copyright 2016 Alistair Leslie-Hughes
3 *
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.
8 *
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.
13 *
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
17 */
18
19#include "d3dx10.h"
20
21#ifndef __D3DX10TEX_H__
22#define __D3DX10TEX_H__
23
25{
26 D3DX10_FILTER_NONE = 0x00000001,
27 D3DX10_FILTER_POINT = 0x00000002,
30 D3DX10_FILTER_BOX = 0x00000005,
31
36
39
42 D3DX10_FILTER_SRGB = 0x00600000,
44
46{
54 D3DX10_IFF_FORCE_DWORD = 0x7fffffff
56
57typedef struct D3DX10_IMAGE_INFO
58{
69
71{
85
86#ifdef __cplusplus
88 {
101 pSrcInfo = NULL;
102 }
103#endif
105
107{
118
119#ifdef __cplusplus
121 {
122 pSrcBox = NULL;
123 pDstBox = NULL;
124 SrcFirstMip = 0;
125 DstFirstMip = 0;
127 SrcFirstElement = 0;
128 DstFirstElement = 0;
132 }
133#endif
135
136#ifdef __cplusplus
137extern "C" {
138#endif
139
140HRESULT WINAPI D3DX10CreateTextureFromMemory(ID3D10Device *device, const void *src_data, SIZE_T src_data_size,
141 D3DX10_IMAGE_LOAD_INFO *loadinfo, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult);
143
144HRESULT WINAPI D3DX10GetImageInfoFromFileA(const char *src_file, ID3DX10ThreadPump *pump, D3DX10_IMAGE_INFO *info,
145 HRESULT *result);
146HRESULT WINAPI D3DX10GetImageInfoFromFileW(const WCHAR *src_file, ID3DX10ThreadPump *pump, D3DX10_IMAGE_INFO *info,
147 HRESULT *result);
148#define D3DX10GetImageInfoFromFile WINELIB_NAME_AW(D3DX10GetImageInfoFromFile)
149
150HRESULT WINAPI D3DX10GetImageInfoFromResourceA(HMODULE module, const char *resource, ID3DX10ThreadPump *pump,
154#define D3DX10GetImageInfoFromResource WINELIB_NAME_AW(D3DX10GetImageInfoFromResource)
155
156HRESULT WINAPI D3DX10GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX10ThreadPump *pump,
157 D3DX10_IMAGE_INFO *img_info, HRESULT *hresult);
158
160 D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult);
162 D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult);
163#define D3DX10CreateTextureFromFile WINELIB_NAME_AW(D3DX10CreateTextureFromFile)
164
166 D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult);
168 D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult);
169#define D3DX10CreateTextureFromResource WINELIB_NAME_AW(D3DX10CreateTextureFromResource)
170
172 ID3D10Resource *dst_texture);
173
174#ifdef __cplusplus
175}
176#endif
177
178#endif
D3D10_USAGE
Definition: d3d10.idl:460
D3D10_RESOURCE_DIMENSION
Definition: d3d10.idl:452
#define D3DX10_DEFAULT
Definition: d3dx10.h:25
#define DXGI_FORMAT_FROM_FILE
Definition: d3dx10.h:27
struct _D3DX10_TEXTURE_LOAD_INFO D3DX10_TEXTURE_LOAD_INFO
HRESULT WINAPI D3DX10CreateTextureFromResourceA(ID3D10Device *device, HMODULE module, const char *resource, D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult)
Definition: texture.c:648
HRESULT WINAPI D3DX10GetImageInfoFromFileA(const char *src_file, ID3DX10ThreadPump *pump, D3DX10_IMAGE_INFO *info, HRESULT *result)
Definition: texture.c:279
HRESULT WINAPI D3DX10CreateTextureFromFileA(ID3D10Device *device, const char *src_file, D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult)
Definition: texture.c:574
HRESULT WINAPI D3DX10CreateTextureFromFileW(ID3D10Device *device, const WCHAR *src_file, D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult)
Definition: texture.c:603
D3DX10_IMAGE_FILE_FORMAT
Definition: d3dx10tex.h:46
@ D3DX10_IFF_BMP
Definition: d3dx10tex.h:47
@ D3DX10_IFF_PNG
Definition: d3dx10tex.h:49
@ D3DX10_IFF_TIFF
Definition: d3dx10tex.h:51
@ D3DX10_IFF_JPG
Definition: d3dx10tex.h:48
@ D3DX10_IFF_DDS
Definition: d3dx10tex.h:50
@ D3DX10_IFF_GIF
Definition: d3dx10tex.h:52
@ D3DX10_IFF_WMP
Definition: d3dx10tex.h:53
@ D3DX10_IFF_FORCE_DWORD
Definition: d3dx10tex.h:54
HRESULT WINAPI D3DX10FilterTexture(ID3D10Resource *texture, UINT src_level, UINT filter)
HRESULT WINAPI D3DX10GetImageInfoFromResourceA(HMODULE module, const char *resource, ID3DX10ThreadPump *pump, D3DX10_IMAGE_INFO *info, HRESULT *result)
Definition: texture.c:350
HRESULT WINAPI D3DX10CreateTextureFromResourceW(ID3D10Device *device, HMODULE module, const WCHAR *resource, D3DX10_IMAGE_LOAD_INFO *load_info, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult)
Definition: texture.c:689
HRESULT WINAPI D3DX10GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX10ThreadPump *pump, D3DX10_IMAGE_INFO *img_info, HRESULT *hresult)
Definition: texture.c:521
HRESULT WINAPI D3DX10CreateTextureFromMemory(ID3D10Device *device, const void *src_data, SIZE_T src_data_size, D3DX10_IMAGE_LOAD_INFO *loadinfo, ID3DX10ThreadPump *pump, ID3D10Resource **texture, HRESULT *hresult)
Definition: texture.c:1052
HRESULT WINAPI D3DX10LoadTextureFromTexture(ID3D10Resource *src_texture, D3DX10_TEXTURE_LOAD_INFO *load_info, ID3D10Resource *dst_texture)
HRESULT WINAPI D3DX10GetImageInfoFromFileW(const WCHAR *src_file, ID3DX10ThreadPump *pump, D3DX10_IMAGE_INFO *info, HRESULT *result)
Definition: texture.c:307
HRESULT WINAPI D3DX10GetImageInfoFromResourceW(HMODULE module, const WCHAR *resource, ID3DX10ThreadPump *pump, D3DX10_IMAGE_INFO *info, HRESULT *result)
Definition: texture.c:388
D3DX10_FILTER_FLAG
Definition: d3dx10tex.h:25
@ D3DX10_FILTER_SRGB_OUT
Definition: d3dx10tex.h:41
@ D3DX10_FILTER_LINEAR
Definition: d3dx10tex.h:28
@ D3DX10_FILTER_POINT
Definition: d3dx10tex.h:27
@ D3DX10_FILTER_BOX
Definition: d3dx10tex.h:30
@ D3DX10_FILTER_NONE
Definition: d3dx10tex.h:26
@ D3DX10_FILTER_DITHER_DIFFUSION
Definition: d3dx10tex.h:38
@ D3DX10_FILTER_TRIANGLE
Definition: d3dx10tex.h:29
@ D3DX10_FILTER_MIRROR_V
Definition: d3dx10tex.h:33
@ D3DX10_FILTER_SRGB_IN
Definition: d3dx10tex.h:40
@ D3DX10_FILTER_MIRROR_U
Definition: d3dx10tex.h:32
@ D3DX10_FILTER_DITHER
Definition: d3dx10tex.h:37
@ D3DX10_FILTER_MIRROR_W
Definition: d3dx10tex.h:34
@ D3DX10_FILTER_MIRROR
Definition: d3dx10tex.h:35
@ D3DX10_FILTER_SRGB
Definition: d3dx10tex.h:42
_Check_return_ _In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ PDXGKARG_SYSTEM_DISPLAY_ENABLE_FLAGS _Out_ UINT _Out_ UINT * Height
Definition: dispmprt.h:1445
_Check_return_ _In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ PDXGKARG_SYSTEM_DISPLAY_ENABLE_FLAGS _Out_ UINT * Width
Definition: dispmprt.h:1444
#define NULL
Definition: types.h:112
DXGI_FORMAT
Definition: dxgiformat.idl:22
GLenum GLuint texture
Definition: glext.h:6295
GLuint64EXT * result
Definition: glext.h:11304
unsigned int UINT
Definition: sysinfo.c:13
short WCHAR
Definition: pedump.c:58
D3D10_RESOURCE_DIMENSION ResourceDimension
Definition: d3dx10tex.h:66
DXGI_FORMAT Format
Definition: d3dx10tex.h:65
D3DX10_IMAGE_FILE_FORMAT ImageFileFormat
Definition: d3dx10tex.h:67
DXGI_FORMAT Format
Definition: d3dx10tex.h:81
D3DX10_IMAGE_INFO * pSrcInfo
Definition: d3dx10tex.h:84
D3D10_USAGE Usage
Definition: d3dx10tex.h:77
Definition: devices.h:37
Definition: filter.c:165
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define WINAPI
Definition: msvc.h:6