EPOK RUNTIME
Baked Draw Types
baked_draw_types.hpp · the baked draw types module
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.
Module
the baked draw types module.
Include this module
C++ include
#include "baked_draw_types.hpp"Types
Functions and methods
baked_commandGPU opcode: 0x30, plus 0x04 textured and 0x02 semi-transparent (only ever set on textured faces), from the flag bits 30 and 29.Functionbaked_corner_colorPerforms `baked corner color` as part of the baked draw types module.Functionbaked_double_sidedPerforms `baked double sided` as part of the baked draw types module.Functionbaked_indexed_colorPerforms `baked indexed color` as part of the baked draw types module.Functionbaked_ordered_colorsOrdered native packets use only two corner layouts: 0,1,2,3 and 1,2,3,3.Functionbaked_texturedWithout a resident texture bank, faces draw untextured, as before the words were resolved at cook time: callers pass textures_ready=false.Functionbaked_uvA corner's packed UV (0..3).FunctionFields, variables and values
baked_face_double_sidedFace flags in uv_tpage.Variablebaked_face_flagsFace flags in uv_tpage.Variablebaked_face_indexed_colorFace flags in uv_tpage.Variablebaked_face_semi_transparentFace flags in uv_tpage.Variablebaked_face_texturedFace flags in uv_tpage.Variablecoloruniform: final RGB + command; indexed: u16 corner indices 0,1Fielddepth_biasExposes `depth_bias` on `epok::BakedDrawFace` for the baked draw types module.FieldindicesExposes `indices` on `epok::BakedDrawFace` for the baked draw types module.Fieldmesh_baked_drawmesh_static_world: a baked chunk cooked in world space (visibility track static_world), drawn with the camera's matrix instead of its actor's.Variablemesh_editablemesh_static_world: a baked chunk cooked in world space (visibility track static_world), drawn with the camera's matrix instead of its actor's.Variablemesh_static_worldmesh_static_world: a baked chunk cooked in world space (visibility track static_world), drawn with the camera's matrix instead of its actor's.Variableshadeduniform: unmodulated RGB; indexed: u16 corner indices 2,3Fieldtopology0: general quad, 1: valid triangle, 2: degenerate triangleFielduv_clutUV0 | CLUT << 16Fielduv_tpageUV1 | TPAGE << 16; TPAGE bits 12..15 hold the face flags belowFielduv34UV2 | UV3 << 16Field