ReactOS 0.4.16-dev-319-g6cf4263
d3d9_texture.h File Reference
#include "d3d9_resource.h"
#include "d3d9_basetexture.h"
Include dependency graph for d3d9_texture.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void InitDirect3DBaseTexture9 (Direct3DBaseTexture9_INT *pBaseTexture, IDirect3DBaseTexture9Vtbl *pVtbl, DWORD Usage, UINT Levels, D3DFORMAT Format, D3DPOOL Pool, struct _Direct3DDevice9_INT *pDevice, enum REF_TYPE RefType)
 
D3DTEXTUREFILTERTYPE WINAPI D3D9Texture_GetAutoGenFilterType (struct IDirect3DBaseTexture9 *iface)
 
DWORD WINAPI D3D9Texture_GetLOD (struct IDirect3DBaseTexture9 *iface)
 
DWORD WINAPI D3D9Texture_GetLevelCount (struct IDirect3DBaseTexture9 *iface)
 

Function Documentation

◆ D3D9Texture_GetAutoGenFilterType()

D3DTEXTUREFILTERTYPE WINAPI D3D9Texture_GetAutoGenFilterType ( struct IDirect3DBaseTexture9 *  iface)

◆ D3D9Texture_GetLevelCount()

DWORD WINAPI D3D9Texture_GetLevelCount ( struct IDirect3DBaseTexture9 *  iface)

◆ D3D9Texture_GetLOD()

DWORD WINAPI D3D9Texture_GetLOD ( struct IDirect3DBaseTexture9 *  iface)

◆ InitDirect3DBaseTexture9()

void InitDirect3DBaseTexture9 ( Direct3DBaseTexture9_INT pBaseTexture,
IDirect3DBaseTexture9Vtbl *  pVtbl,
DWORD  Usage,
UINT  Levels,
D3DFORMAT  Format,
D3DPOOL  Pool,
struct _Direct3DDevice9_INT pDevice,
enum REF_TYPE  RefType 
)

Definition at line 22 of file d3d9_texture.c.

30{
31 InitDirect3DResource9(&pBaseTexture->BaseResource, Pool, pDevice, RefType);
32
33 pBaseTexture->lpVtbl = pVtbl;
34 pBaseTexture->Format = Format;
35 pBaseTexture->wPaletteIndex = 0xFFFF;
36 pBaseTexture->Usage = Usage;
37 pBaseTexture->MipMapLevels = Levels;
38 pBaseTexture->MipMapLevels2 = Levels;
39
40 pBaseTexture->FilterType = D3DTEXF_LINEAR;
41 pBaseTexture->bIsAutoGenMipMap = (Usage & D3DUSAGE_AUTOGENMIPMAP) != 0;
42}
Definition: bufpool.h:50
@ D3DTEXF_LINEAR
Definition: d3d8types.h:872
void InitDirect3DResource9(Direct3DResource9_INT *pResource, D3DPOOL Pool, LPDIRECT3DDEVICE9_INT pBaseDevice, enum REF_TYPE RefType)
Definition: d3d9_resource.c:11
#define D3DUSAGE_AUTOGENMIPMAP
Definition: d3d9types.h:113
FxDevice * pDevice
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
Definition: hidpi.h:384
Direct3DResource9_INT BaseResource
IDirect3DBaseTexture9Vtbl * lpVtbl
D3DTEXTUREFILTERTYPE FilterType

Referenced by CreateD3D9MipMap().