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 Number of characters that can be stored.

Member Variables

charCount The number of stored characters.
drawCharCount The number of characters for which to generate rendering commands.
generatedCommand Commands were generated.
drawFlags An array of flags.
commandBuffer A command buffer.
commandBufferSize The command buffer size that is in use.
commandBufferCapacity The command buffer capacity.
textColorCommandOffset 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