EPOK RUNTIME
Frustum
frustum.hpp · the frustum 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 frustum module.
Include this module
C++ include
#include "frustum.hpp"Types
Functions and methods
chunk_bounds_input_limitEvery individual product must fit int32; the renderer checks this once per chunk using the largest coefficient magnitude.Functionchunk_bounds_isolated_xDetect once per object.Functionchunk_bounds_planes_fitWith the narrow products, each post-shift center/span sum is <=3*524288.Function templatechunk_fully_insideQ12 bounds.Function templatechunk_outsidePerforms `chunk outside` as part of the frustum module.Function templateclosed_cube_facesDefault cube face numbers: -Z,+Z,-X,+X,+Y,-Y.FunctiondistancePerforms `distance` as part of the frustum module.Function templatefrustum_gcdPerforms `frustum gcd` as part of the frustum module.Functionfrustum_outcodePerforms `frustum outcode` as part of the frustum module.Functionfrustum_outcode_unitsSame six half-spaces as the polygon clipper, before perspective division.Function templatefrustum_outcode32Plain 32-bit variant for inputs bounded by 2^27 in magnitude (the GTE projection path guarantees this); 3z+4y then cannot overflow.Function templategpu_clip_safeThe GPU clips pixels to its drawing area, but rejects primitives with spans >1023 horizontally or >511 vertically.Function templatenarrow_chunk_boundsPerforms `narrow chunk bounds` as part of the frustum module.FunctionoutcodePerforms `outcode` as part of the frustum module.Function templateFields, variables and values
focalExposes `focal` on `epok::ScreenFrustum` for the frustum module.VariablegxExposes `gx` on `epok::ScreenFrustum` for the frustum module.VariablegyExposes `gy` on `epok::ScreenFrustum` for the frustum module.VariablexxExposes `xx` on `epok::ScreenFrustum` for the frustum module.VariablexzExposes `xz` on `epok::ScreenFrustum` for the frustum module.VariableyyExposes `yy` on `epok::ScreenFrustum` for the frustum module.VariableyzExposes `yz` on `epok::ScreenFrustum` for the frustum module.Variable