Epok Engine

PSYQO SDK

psyqo::FontBase::print

Method · 4 overloads

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Method

Performs `print` as part of GPU text rendering with the built-in or uploaded font atlas.

Belongs to
psyqo::FontBase
Header
font.hh
Overloads
4

Declaration 1 of 4

Declaration
void print(GPU& gpu, const char* text, Vertex pos, Color color)

Performs `print` as part of GPU text rendering with the built-in or uploaded font atlas.

ParameterTypeMeaning
gpuGPU &Not documented; consult the linked header.
textconst char *Not documented; consult the linked header.
posVertexNot documented; consult the linked header.
colorColorNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "psyqo/font.hh"

// Assume these named values have been initialized with valid data:
// GPU & gpu
// const char * text
// Vertex pos
// Color color

psyqo::FontBase& object = /* obtain a valid instance */;

object.print(gpu, text, pos, color);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/font.hh:116

Declaration 2 of 4

Declaration
void print(GPU& gpu, const char* text, Vertex pos, Color color, eastl::function<void()>&& callback, DMA::DmaCallback dmaCallback)

Performs `print` as part of GPU text rendering with the built-in or uploaded font atlas.

ParameterTypeMeaning
gpuGPU &Not documented; consult the linked header.
textconst char *Not documented; consult the linked header.
posVertexNot documented; consult the linked header.
colorColorNot documented; consult the linked header.
callbackeastl::function<void ()> &&Not documented; consult the linked header.
dmaCallbackDMA::DmaCallbackNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "psyqo/font.hh"

// Assume these named values have been initialized with valid data:
// GPU & gpu
// const char * text
// Vertex pos
// Color color
// eastl::function<void ()> && callback
// DMA::DmaCallback dmaCallback

psyqo::FontBase& object = /* obtain a valid instance */;

object.print(gpu, text, pos, color, callback, dmaCallback);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/font.hh:117

Declaration 3 of 4

Declaration
void print(GPU& gpu, eastl::string_view text, Vertex pos, Color color)

These method immediately print text to the screen.

ParameterTypeMeaning
gpuGPU &Not documented; consult the linked header.
texteastl::string_viewNot documented; consult the linked header.
posVertexNot documented; consult the linked header.
colorColorNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "psyqo/font.hh"

// Assume these named values have been initialized with valid data:
// GPU & gpu
// eastl::string_view text
// Vertex pos
// Color color

psyqo::FontBase& object = /* obtain a valid instance */;

object.print(gpu, text, pos, color);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/font.hh:113

Declaration 4 of 4

Declaration
void print(GPU& gpu, eastl::string_view text, Vertex pos, Color color, eastl::function<void()>&& callback, DMA::DmaCallback dmaCallback)

Performs `print` as part of GPU text rendering with the built-in or uploaded font atlas.

ParameterTypeMeaning
gpuGPU &Not documented; consult the linked header.
texteastl::string_viewNot documented; consult the linked header.
posVertexNot documented; consult the linked header.
colorColorNot documented; consult the linked header.
callbackeastl::function<void ()> &&Not documented; consult the linked header.
dmaCallbackDMA::DmaCallbackNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "psyqo/font.hh"

// Assume these named values have been initialized with valid data:
// GPU & gpu
// eastl::string_view text
// Vertex pos
// Color color
// eastl::function<void ()> && callback
// DMA::DmaCallback dmaCallback

psyqo::FontBase& object = /* obtain a valid instance */;

object.print(gpu, text, pos, color, callback, dmaCallback);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/font.hh:114

Related members