Epok Engine

EPOK RUNTIME

epok::SkyGradientView::ray_x

Field

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.

Field

Ray 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.

Belongs to
epok::SkyGradientView
Header
sky_gradient.hpp

Declaration

Declaration
int32_t ray_x

Ray 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.

Type
int32_t
Storage
Per instance

Example sketch

C++ example
#include "sky_gradient.hpp"

epok::SkyGradientView& object = /* obtain a valid instance */;
auto value = object.ray_x;

// When mutation is valid for this object:
// object.ray_x = replacement;

Trade-offs and warnings

Consult the linked header for the meaning, lifetime and permitted use of this declaration.

Declared in runtime/sky_gradient.hpp:34