EPOK RUNTIME
epok::Polygon2DComponent
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
---- Polygon2D ---------------------------------------------------------------------------- A filled polygon, triangulated by the editor: `color` alone, or a texture mapped by the cooked per-vertex texels and multiplied by `color`.
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_content.hpp"
epok::Polygon2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
blendExposes `blend` on `epok::Polygon2DComponent` for the world2d content module.FieldcolorExposes `color` on `epok::Polygon2DComponent` for the world2d content module.Fieldlink2dExposes `link2d` on `epok::Polygon2DComponent` for the world2d content module.Fieldstatic_class_idExposes `static_class_id` on `epok::Polygon2DComponent` for the world2d content module.Variabletexelsu, v pairs, when texturedFieldtextureExposes `texture` on `epok::Polygon2DComponent` for the world2d content module.Fieldtriangle_countExposes `triangle_count` on `epok::Polygon2DComponent` for the world2d content module.Fieldtrianglesthree vertex indices eachFieldvertex_countExposes `vertex_count` on `epok::Polygon2DComponent` for the world2d content module.Fieldverticesx, y pairsFieldvisibleExposes `visible` on `epok::Polygon2DComponent` for the world2d content module.Fieldz_indexExposes `z_index` on `epok::Polygon2DComponent` for the world2d content module.FieldPublic methods
~Polygon2DComponentReleases the resources owned by `epok::Polygon2DComponent`.destructorclass_idPerforms `class id` as part of the world2d content module.Methodlevel_attachedPerforms `level attached` as part of the world2d content module.Methodset_colorSets color as part of the world2d content module.Methodset_visibleSets visible as part of the world2d content module.Method