Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
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.
Returns false when the camera cannot be resolved; the caller then clears with the flat sky colour instead.
template <class Gpu> bool draw(Gpu& gpu, const SkyGradientView& view, const SkyGradientColors& colors)Returns false when the camera cannot be resolved; the caller then clears with the flat sky colour instead.
| Parameter | Type | Meaning |
|---|---|---|
gpu | Gpu & | Not documented; consult the linked header. |
view | const SkyGradientView & | Not documented; consult the linked header. |
colors | const SkyGradientColors & | Not documented; consult the linked header. |
Returns: bool. Consult the linked header for its meaning.
#include "sky_gradient.hpp"
// Replace these template arguments with types or values accepted by the declaration:
// Gpu
// Assume these named values have been initialized with valid data:
// Gpu & gpu
// const SkyGradientView & view
// const SkyGradientColors & colors
epok::SkyGradient& object = /* obtain a valid instance */;
auto result = object.draw<Gpu>(gpu, view, colors);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/sky_gradient.hpp:130