Epok Engine

EPOK RUNTIME

epok::SceneLibrary::screen_fade

Method · 1 overload

Method

The post-HUD fade to black, 0 clear to 255 opaque, clamped rather than rejected because every amount above the range has one nearest valid value.

Belongs to
epok::SceneLibrary
Header
gameplay_api.hpp
Overloads
1

Declaration

static
Declaration
static uint32_t screen_fade()

The post-HUD fade to black, 0 clear to 255 opaque, clamped rather than rejected because every amount above the range has one nearest valid value.

This overload takes no parameters.

Returns: uint32_t. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "gameplay_api.hpp"

auto result = epok::SceneLibrary::screen_fade();

Why use it

It provides direct, allocation-conscious access to the gameplay api module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/gameplay_api.hpp:291

Related members