NAME

D3DXOptimizeFaces  (D3DX9_36.@)

SYNOPSIS

 HRESULT D3DXOptimizeFaces
 (
  const void* indices,
  UINT        num_faces,
  UINT        num_vertices,
  BOOL        indices_are_32bit,
  DWORD*      face_remap
 )

DESCRIPTION

Re-orders the faces so the vertex cache is used optimally.

PARAMS

indices [In] Pointer to an index buffer belonging to a mesh.
num_faces [In] Number of faces in the mesh.
num_vertices [In] Number of vertices in the mesh.
indices_are_32bit [In] Specifies whether indices are 32- or 16-bit.
face_remap [In/Out] The new order the faces should be drawn in.

RETURNS

Success: D3D_OK.

Failure: D3DERR_INVALIDCALL.

BUGS

The face re-ordering does not use the vertex cache optimally.

IMPLEMENTATION

Declared in "d3dx9mesh.h". https://source.winehq.org/source/include/d3dx9mesh.h

Implemented in "dlls/d3dx9_36/mesh.c". https://source.winehq.org/source/dlls/d3dx9_36/mesh.c


Copyright © 2021 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jun 2021.