Epok Engine

EPOK RUNTIME

epok::SceneComponent3D::attach_to

Method · 1 overload

Method

Performs `attach to` as part of the object model module.

Belongs to
epok::SceneComponent3D
Header
object_model.hpp
Overloads
1

Declaration

Declaration
bool attach_to(ObjectId parent)

Performs `attach to` as part of the object model module.

ParameterTypeMeaning
parentObjectIdValue supplied for parent. 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 "object_model.hpp"

// Assume these named values have been initialized with valid data:
// ObjectId parent

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

auto result = object.attach_to(parent);

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.

Declared in runtime/object_model.hpp:558

Related members