ID3DXPRTBuffer::ScaleBuffer method

Multiplies every value in the buffer by a constant value.

Syntax

HRESULT ScaleBuffer(
  [in] FLOAT Scale
);

Parameters

Scale [in]

Type: FLOAT

Constant value used to scale the buffer. Every value in the buffer is replaced by the product of this value and the original buffer value.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTBuffer