Compartilhar via


IDirect3DMobileBaseTexture::SetLOD

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method sets the most detailed level of detail (LOD) for a managed texture.

Syntax

DWORD SetLOD(
  DWORD LODNew
);

Parameters

  • LODNew
    [in] Most detailed LOD value to set for the mipmap chain.

Return Value

A DWORD value, limited to the maximum LOD value (one less than the total number of levels). Subsequent calls to this method will return the limited value, not the LOD value that was previously set.

Remarks

IDirect3DMobileBaseTexture::SetLOD is used for LOD control of managed textures. This method returns 0 on nonmanaged textures.

IDirect3DMobileBaseTexture::SetLOD communicates to the Microsoft® Direct3D Mobile® texture manager the most detailed mipmap in the chain that should be loaded into local video memory. For example, in a five-level mipmap chain, setting LODNew to 2 indicates that the texture manager should load only mipmap levels 2 through 4 into local video memory at any given time.

More specifically, if the texture was created with the dimensions of 256×256, setting the most detailed levelto0 indicates that 256×256 is the largest mipmap available, setting the most detailed levelto1 indicates that 128×128 is the largest mipmap available, and so on, up to the most detailed mip level (the smallest texture size) for the chain.

This method applies to the IDirect3DMobileTexture interface, which inherits from IDirect3DMobileBaseTexture.

Requirements

Header d3dm.h
Library D3dm.lib, D3dmguid.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IDirect3DMobileBaseTexture
IDirect3DMobileTexture