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.
The Camera2D the renderer projects through.
Camera2D view()The Camera2D the renderer projects through.
This overload takes no parameters.
Returns: Camera2D. Consult the linked header for its meaning.
#include "world2d_components.hpp"
epok::Camera2DComponent& object = /* obtain a valid instance */;
auto result = object.view();Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_components.hpp:337
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_limitsSets limits as part of the world2d components module.Methodset_offsetSets offset as part of the world2d components module.Method