EPOK RUNTIME
epok::SkyGradientView
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
Struct declared by the sky-gradient module for the sky gradient module.
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 "sky_gradient.hpp"
epok::SkyGradientView& value = /* obtain a valid instance from your game */;Fields and constants
centre_xExposes `centre_x` on `epok::SkyGradientView` for the sky gradient module.Fieldcentre_yExposes `centre_y` on `epok::SkyGradientView` for the sky gradient module.Fieldray_xRay through screen offset (a,b) from the centre, scaled down by 256: (a*ray_x, -b*ray_y, ray_z) where ray_x carries the mirror sign.Fieldray_yRay through screen offset (a,b) from the centre, scaled down by 256: (a*ray_x, -b*ray_y, ray_z) where ray_x carries the mirror sign.Fieldray_zRay through screen offset (a,b) from the centre, scaled down by 256: (a*ray_x, -b*ray_y, ray_z) where ray_x carries the mirror sign.FieldupWorld up in camera space, normalised to Q12 (camera +Z forward, +Y up).Field