ReactOS  0.4.15-dev-509-g96a357b
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 }
IDirect3DBaseTexture9Vtbl * lpVtbl
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
Definition: hidpi.h:382
#define D3DUSAGE_AUTOGENMIPMAP
Definition: d3d9types.h:113
D3DTEXTUREFILTERTYPE FilterType
Definition: bufpool.h:50
Direct3DResource9_INT BaseResource
void InitDirect3DResource9(Direct3DResource9_INT *pResource, D3DPOOL Pool, LPDIRECT3DDEVICE9_INT pBaseDevice, enum REF_TYPE RefType)
Definition: d3d9_resource.c:11
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char * Format
Definition: acpixf.h:1216

Referenced by CreateD3D9MipMap().