Epok Engine

EPOK RUNTIME

epok::timeline::Director::reverse

Method · 1 overload

Method

Performs `reverse` as part of fixed-step simulation time and frame timing.

Belongs to
epok::timeline::Director
Header
timeline_runtime.hpp
Overloads
1

Declaration

Declaration
bool reverse(Handle h,bool backwards)

Performs `reverse` as part of fixed-step simulation time and frame timing.

ParameterTypeMeaning
hHandleValue supplied for h. Keep referenced or pointed-to data valid for the complete call.
backwardsboolValue supplied for backwards. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "timeline_runtime.hpp"

// Assume these named values have been initialized with valid data:
// Handle h
// bool backwards

epok::timeline::Director& object = /* obtain a valid instance */;

auto result = object.reverse(h, backwards);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. This is classified as **Engine internal**. Prefer a higher-level Epok service unless you need this exact control.

Declared in runtime/timeline_runtime.hpp:255

Related members