ID3DXPRTBuffer::ScaleBuffer

Multiplies every value in the buffer by a constant value.

HRESULT ScaleBuffer(
  FLOAT Scale
);

Parameters

Scale
[in] 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 Values

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

D3DERR_INVALIDCALL

Requirements

Header: Declared in D3dx9mesh.h.