Epok Engine

EPOK RUNTIME

epok::sky_gradient_view

Function template · 1 overload

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.

Function template

basis: camera-from-world rotation (Q12 rows).

Belongs to
epok
Header
sky_gradient.hpp
Overloads
1

Declaration

template
Declaration
template <class Basis> inline bool sky_gradient_view(const Basis& basis, int32_t row_scale_x, int32_t row_scale_y, int32_t focal, int32_t centre_x, int32_t centre_y, SkyGradientView& out)

basis: camera-from-world rotation (Q12 rows).

ParameterTypeMeaning
basisconst Basis &Not documented; consult the linked header.
row_scale_xint32_tNot documented; consult the linked header.
row_scale_yint32_tNot documented; consult the linked header.
focalint32_tNot documented; consult the linked header.
centre_xint32_tNot documented; consult the linked header.
centre_yint32_tNot documented; consult the linked header.
outSkyGradientView &Not documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "sky_gradient.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Basis

// Assume these named values have been initialized with valid data:
// const Basis & basis
// int32_t row_scale_x
// int32_t row_scale_y
// int32_t focal
// int32_t centre_x
// int32_t centre_y
// SkyGradientView & out

auto result = epok::sky_gradient_view<Basis>(basis, row_scale_x, row_scale_y, focal, centre_x, centre_y, out);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/sky_gradient.hpp:52

Related members