Epok Engine

EPOK RUNTIME

epok::screen_area

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

Performs `screen area` as part of PSX polygon preparation, clipping and submission.

Belongs to
epok
Header
polygon.hpp
Overloads
1

Declaration

template
Declaration
template<class Vertex> inline int32_t screen_area(const Vertex& a, const Vertex& b, const Vertex& c)

Performs `screen area` as part of PSX polygon preparation, clipping and submission.

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

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

Example sketch

C++ example
#include "polygon.hpp"

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

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

auto result = epok::screen_area<Vertex>(a, b, c);

Trade-offs and warnings

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

Declared in runtime/polygon.hpp:137

Related members