Nugget
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
psyqo::Prim::PolyLineBegin Struct Reference

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

#include <psyqo/primitives/lines.hh>

Collaboration diagram for psyqo::Prim::PolyLineBegin:
Collaboration graph
[legend]

Public Member Functions

 PolyLineBegin ()
 
 PolyLineBegin (Color c)
 
PolyLineBeginsetColor (Color c)
 
PolyLineBeginsetOpaque ()
 
PolyLineBeginsetSemiTrans ()
 

Public Attributes

Vertex point
 

Detailed Description

The primitive used to begin a polyline.

This primitive is used to begin a flat-color polyline. As polylines are drawn using multiple Line primitives, this primitive is used to set the color of the polyline and the first vertex. As polylines can be complex, this allows drawing them piece by piece, iteratively. After sending this primitive, you need to send a number of Vertex structures using the GPU's sendRaw method, and then send a PolyLineEnd struct to finish the polyline. Note that it may be necessary to use the waitFifo method of the GPU to ensure that the GPU has finished processing the previous vertex data before sending the next one.

Constructor & Destructor Documentation

◆ PolyLineBegin() [1/2]

psyqo::Prim::PolyLineBegin::PolyLineBegin ( )
inline

◆ PolyLineBegin() [2/2]

psyqo::Prim::PolyLineBegin::PolyLineBegin ( Color  c)
inline

Member Function Documentation

◆ setColor()

PolyLineBegin & psyqo::Prim::PolyLineBegin::setColor ( Color  c)
inline

◆ setOpaque()

PolyLineBegin & psyqo::Prim::PolyLineBegin::setOpaque ( )
inline

◆ setSemiTrans()

PolyLineBegin & psyqo::Prim::PolyLineBegin::setSemiTrans ( )
inline

Member Data Documentation

◆ point

Vertex psyqo::Prim::PolyLineBegin::point

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