Epok Engine

EPOK RUNTIME

epok::Sprite3DComponent::poll_event

Method · 1 overload

Method

Polls event as part of the object model module.

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

Declaration

Declaration
uint32_t poll_event()

Polls event as part of the object model module.

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 "object_model.hpp"

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

auto result = object.poll_event();

Why use it

It provides direct, allocation-conscious access to the object model 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/object_model.hpp:733

Related members