EPOK RUNTIME
Ordered Projection
ordered_projection.hpp · the ordered projection 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 ordered projection module.
Include this module
C++ include
#include "ordered_projection.hpp"Types
Functions and methods
gte_dividePerforms `gte divide` as part of the ordered projection module.Functiongte_project_pointScreen position exactly as RTPS/RTPT produce it from GTE MAC results (camera Y up, as ordered_gte_camera_reference returns it), or false where the GTE would flag the vertex: IR or SZ3 saturation, divide overflow, or SX/SY outside -0x400..0x3FF.Functionordered_depth_averageExact signed division (truncate toward zero), without MIPS DIV.Functionordered_gte_camera_referenceIndependent integer oracle for the MAC results of the loaded projection matrix.Function templateordered_gte_depth_averagePerforms `ordered gte depth average` as part of the ordered projection module.Functionordered_gte_input_fitsQ8 operands derived from signed Q12 each fit 28 bits.Functionordered_projection_anchorRebase Q8 operands on a 4096-Q8 (16-world-unit) lattice RELATIVE to the camera.Function templateordered_screen_insidePerforms `ordered screen inside` as part of the ordered projection module.Function templateordered_screen_inside_bitsPerforms `ordered screen inside bits` as part of the ordered projection module.Function templateordered_screen_outsideTrivial rejection on packed SXY words, the reference pass's test: true when every corner lies on the same outer side of the viewport, exactly when the corners' bounding box misses it.Function templateproject_ordered_cpuFull-range projection is not synonymous with clipping.Function templateFields, variables and values
biasExposes `bias` on `epok::OrderedScreenInside` for the ordered projection module.Variablegte_unr_tableExposes `gte_unr_table` on the `epok` namespace for the ordered projection module.Variableheight_powerExposes `height_power` on `epok::OrderedScreenInside` for the ordered projection module.VariablemaskExposes `mask` on `epok::OrderedScreenInside` for the ordered projection module.Variableordered_zsf3The GTE's AVSZ3/AVSZ4 form ZSF * sum >> 12 (arithmetic) saturated to 0..0xffff.Variableordered_zsf4The GTE's AVSZ3/AVSZ4 form ZSF * sum >> 12 (arithmetic) saturated to 0..0xffff.VariablevalueExposes `value` on `epok::GteUnrTable` for the ordered projection module.Fieldwidth_powerExposes `width_power` on `epok::OrderedScreenInside` for the ordered projection module.Variable