nn::font::CTR::DispStringBuffer

nn::font::CTR::DispStringBuffer Structure

Syntax

struct DispStringBuffer
{
u16 charCount;
u16 drawCharCount;
u8 generatedCommand;
u8 * drawFlags;
u32 * commandBuffer;
u32 commandBufferSize;
u32 commandBufferCapacity;
u32 textColorCommandOffset;
};

Description

A class that manages a buffer for displaying strings.

Member Constants

charCountMax const u32 Number of characters that can be stored.

Member Variables

charCount u16 The number of stored characters.
drawCharCount u16 The number of characters for which to generate rendering commands.
generatedCommand u8 Commands were generated.
drawFlags u8 * An array of flags.
commandBuffer u32 * A command buffer.
commandBufferSize u32 The command buffer size that is in use.
commandBufferCapacity u32 The command buffer capacity.
textColorCommandOffset u32 Offset to the text color command.

Member Functions

GetCharAttrs Vertex attribute array.
DispStringBuffer Constructor.
ClearCommand Clears a command.
IsGeneratedCommand Determines whether a command has already been generated.
IsCommandEmpty Determines whether a command is empty.
GetDrawCharCount Gets the number of characters for which to generate rendering commands.
SetDrawCharCount Sets the number of characters for which to generate rendering commands.
ResetDrawCharCount Resets the number of characters for which to generate rendering commands.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL