Why use it
Template dispatch is resolved at compile time and normally adds no runtime indirection.
EPOK RUNTIME
Function template · 1 overload
Same six half-spaces as the polygon clipper, before perspective division.
template<int32_t Near,int32_t FarExclusive> inline uint8_t frustum_outcode_units(int32_t x,int32_t y,int32_t z)Same six half-spaces as the polygon clipper, before perspective division.
| Parameter | Type | Meaning |
|---|---|---|
x | int32_t | Value supplied for x. Keep referenced or pointed-to data valid for the complete call. |
y | int32_t | Value supplied for y. Keep referenced or pointed-to data valid for the complete call. |
z | int32_t | Value supplied for z. Keep referenced or pointed-to data valid for the complete call. |
Returns: uint8_t. Check the value before continuing when it represents success, availability or a resource handle.
#include "frustum.hpp"
// Replace these template arguments with types or values accepted by the declaration:
// Near, FarExclusive
// Assume these named values have been initialized with valid data:
// int32_t x
// int32_t y
// int32_t z
auto result = epok::frustum_outcode_units<Near, FarExclusive>(x, y, z);Template dispatch is resolved at compile time and normally adds no runtime indirection.
Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size.
Declared in runtime/frustum.hpp:40
aabb_may_touchPerforms `aabb may touch` as part of bounded AABB collision queries and movement.Function templateaabb_overlapPerforms `aabb overlap` as part of bounded AABB collision queries and movement.Function templateaabb2d_containsPerforms `aabb2d contains` as part of the world2d module.Functionaabb2d_overlapPerforms `aabb2d overlap` as part of the world2d module.Functionaabb2d_touchPerforms `aabb2d touch` as part of the world2d module.Functionaabb2d_translatedPerforms `aabb2d translated` as part of the world2d module.Functionactivate_texture_bankPerforms `activate texture bank` as part of the epok module.Functionactive_cameraPerforms `active camera` as part of the epok module.Functionactor_for_slotPerforms `actor for slot` as part of the actor tables module.Functionallocate_actor_dataPerforms `allocate actor data` as part of the epok module.Functionattach_componentSpatial attachment between components of the same domain.Functionaudio_initializePerforms `audio initialize` as part of SPU sound playback and voice ownership.Function