nw::demo::GraphicsDrawing::InitializeFont Member Function

Syntax

bool InitializeFont(
     os::IAllocator * allocator,
     const wchar_t * fontShaderPath,
     const wchar_t * fontPath
);

Arguments

Name Description
in allocator Allocator.
in fontShaderPath Font shader path.
in fontPath Font file path.

Return Values

Returns true if initialized successfully and false otherwise.

Description

Initializes a font.

nw::demo::GraphicsDrawing::InitializeFont Member Function

Syntax

bool InitializeFont(
     void * shaderBinary,
     size_t shaderSize,
     void * fontBinary,
     size_t fontSize,
     void * drawBuffer,
     void * stringBuffer
);

Arguments

Name Description
in shaderBinary Pointer to the shader binary.
in shaderSize Size of the shader binary.
in fontBinary Pointer to the font binary.
in fontSize Size of the font binary.
in drawBuffer Pointer to the draw buffer.
in stringBuffer Buffer for text strings.

Return Values

Returns true if initialized successfully and false otherwise.

Description

Initializes a font.


CONFIDENTIAL