Epok Engine

EPOK RUNTIME

epok::gpu_clip_safe

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

The GPU clips pixels to its drawing area, but rejects primitives with spans >1023 horizontally or >511 vertically.

Belongs to
epok
Header
frustum.hpp
Overloads
1

Declaration

template
Declaration
template<class Point> bool gpu_clip_safe(const Point& a,const Point& b,const Point& c)

The GPU clips pixels to its drawing area, but rejects primitives with spans >1023 horizontally or >511 vertically.

ParameterTypeMeaning
aconst Point &Not documented; consult the linked header.
bconst Point &Not documented; consult the linked header.
cconst Point &Not documented; consult the linked header.

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

Example sketch

C++ example
#include "frustum.hpp"

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

// Assume these named values have been initialized with valid data:
// const Point & a
// const Point & b
// const Point & c

auto result = epok::gpu_clip_safe<Point>(a, b, c);

Trade-offs and warnings

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

Declared in runtime/frustum.hpp:141

Related members