nn::gd::CTR::System::DrawIndexed Member Function

Syntax

static void DrawIndexed(
     u32 indexCount,
     u32 startIndexLocation
);

Parameters

Name Description
in indexCount Specifies the start index of the index buffer.
in startIndexLocation Specifies an offset value to be applied to each index read from the index buffer.

Return Values

None.

Description

Renders an indexed primitive from the vertex buffer and index buffer currently configured.

Although this function does not itself return errors, if an error occurs in the rendering process, the callback set by the nn::gd::CTR::System::SetCallbackFunctionError function is called.
The errors generated are as shown below.

Value
nn::gd::CTR::ResultInvalidMemoryLayout
nn::gd::CTR::ResultDifferentRenderTargetAndDepthStencilTargetResolution
nn::gd::CTR::ResultNoTextureBound
nn::gd::CTR::ResultNoTextureCoordinates
nn::gd::CTR::ResultInvalidTextureUnitId
nn::gd::CTR::ResultInvalidTextureFormat
nn::gd::CTR::ResultAlreadyReleased
nn::gd::CTR::ResultNullParameter

Revision History

2012/08/08
Added a Result value that might be passed to the callback when an error occurs.
2011/02/17
Initial version.

CONFIDENTIAL