Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
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.
Sets texture region as part of the world2d components module.
void set_texture_region(uint32_t x, uint32_t y, uint32_t width, uint32_t height)Sets texture region as part of the world2d components module.
| Parameter | Type | Meaning |
|---|---|---|
x | uint32_t | Not documented; consult the linked header. |
y | uint32_t | Not documented; consult the linked header. |
width | uint32_t | Not documented; consult the linked header. |
height | uint32_t | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "world2d_components.hpp"
// Assume these named values have been initialized with valid data:
// uint32_t x
// uint32_t y
// uint32_t width
// uint32_t height
epok::Sprite2DComponent& object = /* obtain a valid instance */;
object.set_texture_region(x, y, width, height);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_components.hpp:186
advanceAdvances the playing clip by one simulation step.Methodanimation_countPerforms `animation count` as part of the world2d components module.Methodclass_idPerforms `class id` as part of the world2d components module.Methodcurrent_animationPerforms `current animation` as part of the world2d components module.Methodcurrent_framePerforms `current frame` as part of the world2d components module.Methodis_flipped_hReports whether flipped h as part of the world2d components module.Methodis_playingReports whether playing as part of the world2d components module.Methodis_visibleReports whether visible as part of the world2d components module.Methodlevel_attachedPerforms `level attached` as part of the world2d components module.MethodpausePauses pause as part of the world2d components module.MethodplayStarts play as part of the world2d components module.Methodplay_namedC++ convenience: play a clip by its authored name.Method