EPOK RUNTIME
epok::Depth2DComponent
Class
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.
Class
---- Depth2D ---------------------------------------------------------------------------- Draws the sprites and tile layers of its actor, and of everything attached to it, inside the 3D world instead of over it: they join the 3D ordering table at one camera depth, so 3D geometry behind that depth is hidden by their opaque texels and geometry in front covers them.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "world2d_tiles.hpp"
epok::Depth2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
anchorExposes `anchor` on `epok::Depth2DComponent` for the world2d tiles module.FieldbiasExposes `bias` on `epok::Depth2DComponent` for the world2d tiles module.FielddistanceExposes `distance` on `epok::Depth2DComponent` for the world2d tiles module.FieldenabledExposes `enabled` on `epok::Depth2DComponent` for the world2d tiles module.Fieldlink2dExposes `link2d` on `epok::Depth2DComponent` for the world2d tiles module.Fieldstatic_class_idExposes `static_class_id` on `epok::Depth2DComponent` for the world2d tiles module.VariablePublic methods
~Depth2DComponentReleases the resources owned by `epok::Depth2DComponent`.destructorclass_idPerforms `class id` as part of the world2d tiles module.Methodget_anchorReturns anchor as part of the world2d tiles module.Methodget_biasReturns bias as part of the world2d tiles module.Methodget_distanceReturns distance as part of the world2d tiles module.Methodis_enabledReports whether enabled as part of the world2d tiles module.Methodlevel_attachedPerforms `level attached` as part of the world2d tiles module.Methodset_anchorA 3D actor whose position gives the depth; an empty id returns to `distance`.Methodset_biasSets bias as part of the world2d tiles module.Methodset_distanceWorld units in front of the 3D camera, 0 to 128 (the far end of the ordering table).Methodset_enabledSets enabled as part of the world2d tiles module.Method