nn::gd::CTR::System::Draw Member Function

Syntax

static void Draw(
     u32 vertexCount,
     u32 startVertexLocation
);

Parameters

Name Description
in vertexCount Specifies the number of vertices.
in startVertexLocation Specifies the start index of the vertex buffer.

Return Values

None.

Description

Renders primitives from the vertex 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