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.

The font binary is destroyed by DestroyFont.


CONFIDENTIAL