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 limits as part of the world2d components module.
void set_limits(Fixed left, Fixed top, Fixed right, Fixed bottom)Sets limits as part of the world2d components module.
| Parameter | Type | Meaning |
|---|---|---|
left | Fixed | Not documented; consult the linked header. |
top | Fixed | Not documented; consult the linked header. |
right | Fixed | Not documented; consult the linked header. |
bottom | Fixed | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "world2d_components.hpp"
// Assume these named values have been initialized with valid data:
// Fixed left
// Fixed top
// Fixed right
// Fixed bottom
epok::Camera2DComponent& object = /* obtain a valid instance */;
object.set_limits(left, top, right, bottom);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_components.hpp:288
class_idPerforms `class id` as part of the world2d components module.Methodclear_limitsClears limits as part of the world2d components module.MethodfollowOne simulation step towards `target` (the owner's world position).Methodget_zoomReturns zoom as part of the world2d components module.Methodis_currentReports whether current as part of the world2d components module.Methodlevel_attachedPerforms `level attached` as part of the world2d components module.Methodmake_currentPerforms `make current` as part of the world2d components module.Methodreset_smoothingJump to the target this step instead of smoothing towards it.Methodscreen_center_xPerforms `screen center x` as part of the world2d components module.Methodscreen_center_yPerforms `screen center y` as part of the world2d components module.Methodset_offsetSets offset as part of the world2d components module.Methodset_zoomSets zoom as part of the world2d components module.Method