ReactOS 0.4.15-dev-8100-g1887773
d3d9_mipmap.h File Reference
#include "d3d9_texture.h"
Include dependency graph for d3d9_mipmap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _D3D9MipMap
 

Typedefs

typedef struct _D3D9MipMap D3D9MipMap
 
typedef struct _D3D9MipMapLPD3D9MIPMAP
 

Functions

HRESULT CreateD3D9MipMap (struct _Direct3DDevice9_INT *pDevice, UINT Width, UINT Height, UINT Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9 **ppTexture)
 

Typedef Documentation

◆ D3D9MipMap

◆ LPD3D9MIPMAP

Function Documentation

◆ CreateD3D9MipMap()

HRESULT CreateD3D9MipMap ( struct _Direct3DDevice9_INT pDevice,
UINT  Width,
UINT  Height,
UINT  Levels,
DWORD  Usage,
D3DFORMAT  Format,
D3DPOOL  Pool,
IDirect3DTexture9 **  ppTexture 
)

Definition at line 287 of file d3d9_mipmap.c.

288{
289 LPD3D9MIPMAP pThisTexture;
290 if (FAILED(AlignedAlloc((LPVOID*)&pThisTexture, sizeof(D3D9MipMap))))
291 {
292 DPRINT1("Could not create D3D9MipMap");
293 return E_OUTOFMEMORY;
294 }
295
296 InitDirect3DBaseTexture9(&pThisTexture->BaseTexture, (IDirect3DBaseTexture9Vtbl*)&D3D9MipMap_Vtbl, Usage, Levels, Format, Pool, pDevice, RT_EXTERNAL);
297
298 pThisTexture->lpVtbl = &D3D9MipMap_Vtbl;
299
300 pThisTexture->Usage = Usage;
301 pThisTexture->dwWidth = Width;
302 pThisTexture->dwHeight = Height;
303 pThisTexture->Format = Format;
304
305 *ppTexture = (IDirect3DTexture9*)&pThisTexture->lpVtbl;
306
308 return D3D_OK;
309}
#define DPRINT1
Definition: precomp.h:8
#define UNIMPLEMENTED
Definition: debug.h:118
Definition: bufpool.h:50
@ RT_EXTERNAL
HRESULT AlignedAlloc(IN OUT LPVOID *ppObject, IN SIZE_T dwSize)
Definition: d3d9_helpers.c:95
static IDirect3DTexture9Vtbl D3D9MipMap_Vtbl
Definition: d3d9_mipmap.c:253
void InitDirect3DBaseTexture9(Direct3DBaseTexture9_INT *pBaseTexture, IDirect3DBaseTexture9Vtbl *pVtbl, DWORD Usage, UINT Levels, D3DFORMAT Format, D3DPOOL Pool, struct _Direct3DDevice9_INT *pDevice, enum REF_TYPE RefType)
Definition: d3d9_texture.c:22
#define D3D_OK
Definition: d3d.h:106
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
FxDevice * pDevice
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
Definition: hidpi.h:384
#define FAILED(hr)
Definition: intsafe.h:51
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:89
_In_ HFONT _Out_ PUINT Height
Definition: font.h:88

Referenced by IDirect3DDevice9Base_CreateTexture().