EPOK RUNTIME
epok::world2d::SpriteDraw
Struct
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.
Struct
One entry of the frame's draw list: a sprite resolved to screen corners (A top-left, B top-right, C bottom-left, D bottom-right in the sprite's own frame), its texel rectangle, colour and blend; or a whole tile layer, line, polygon or particle emitter, expanded by the renderer (`each_tile`, `each_line_quad`, `each_polygon_triangle`, `each_particle`).
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_service.hpp"
epok::world2d::SpriteDraw& value = /* obtain a valid instance from your game */;Fields and constants
blendExposes `blend` on `epok::world2d::SpriteDraw` for the world2d service module.FieldcolorExposes `color` on `epok::world2d::SpriteDraw` for the world2d service module.FieldcomponentExposes `component` on `epok::world2d::SpriteDraw` for the world2d service module.FielddepthThe Depth2D placing a sprite or tile layer in the 3D ordering table (Depth3D phase).Fieldflip_hExposes `flip_h` on `epok::world2d::SpriteDraw` for the world2d service module.Fieldflip_vExposes `flip_v` on `epok::world2d::SpriteDraw` for the world2d service module.FieldkeyExposes `key` on `epok::world2d::SpriteDraw` for the world2d service module.FieldkindEntries the renderer expands (tile layers, lines, polygons, particles): the component, whether it is drawn in screen pixels, and the screen shift of a repeated parallax copy (plus a screen canvas offset).FieldrectangleUnrotated, unscaled, unflipped at zoom 1: a GP0 rectangle reproduces it exactly.FieldscreenExposes `screen` on `epok::world2d::SpriteDraw` for the world2d service module.FieldshiftExposes `shift` on `epok::world2d::SpriteDraw` for the world2d service module.FieldsourceExposes `source` on `epok::world2d::SpriteDraw` for the world2d service module.FieldtextureExposes `texture` on `epok::world2d::SpriteDraw` for the world2d service module.FieldxExposes `x` on `epok::world2d::SpriteDraw` for the world2d service module.FieldyExposes `y` on `epok::world2d::SpriteDraw` for the world2d service module.Field