Nugget
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
psyqo::Prim::PolyLine< N > Struct Template Reference

The primitive used to draw a polyline. More...

#include <psyqo/primitives/lines.hh>

Public Member Functions

 PolyLine ()
 
 PolyLine (Color c)
 
PolyLinesetColor (Color c)
 
PolyLinesetOpaque ()
 
PolyLinesetSemiTrans ()
 

Public Attributes

eastl::array< Vertex, N+1 > points
 

Detailed Description

template<unsigned N>
struct psyqo::Prim::PolyLine< N >

The primitive used to draw a polyline.

This primitive is used to draw a flat-color polyline. This variant of the primitive is used when the number of segments in the polyline is known at compile time. If the number of segments is not known at compile time, use the PolyLineBegin mechanism instead.

Template Parameters
NThe number of segments in the polyline.

Constructor & Destructor Documentation

◆ PolyLine() [1/2]

template<unsigned N>
psyqo::Prim::PolyLine< N >::PolyLine ( )
inline

◆ PolyLine() [2/2]

template<unsigned N>
psyqo::Prim::PolyLine< N >::PolyLine ( Color  c)
inline

Member Function Documentation

◆ setColor()

template<unsigned N>
PolyLine & psyqo::Prim::PolyLine< N >::setColor ( Color  c)
inline

◆ setOpaque()

template<unsigned N>
PolyLine & psyqo::Prim::PolyLine< N >::setOpaque ( )
inline

◆ setSemiTrans()

template<unsigned N>
PolyLine & psyqo::Prim::PolyLine< N >::setSemiTrans ( )
inline

Member Data Documentation

◆ points

template<unsigned N>
eastl::array<Vertex, N + 1> psyqo::Prim::PolyLine< N >::points

The documentation for this struct was generated from the following file: