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

The Gouraud-shaded Line primitive. More...

#include <psyqo/primitives/lines.hh>

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

Public Member Functions

 GouraudLine ()
 
 GouraudLine (Color c)
 
GouraudLinesetColorA (Color c)
 
GouraudLinesetColorB (Color c)
 
GouraudLinesetOpaque ()
 
GouraudLinesetSemiTrans ()
 

Public Attributes

Vertex pointA
 
Color colorB
 
Vertex pointB
 

Detailed Description

The Gouraud-shaded Line primitive.

The Line primitive will draw a single, gouraud-shaded segment. It will be drawn between the pointA and pointB vertices. The color of the segment will be interpolated between the colorA and colorB colors. Note that colorA can only be set using the constructor, or the setColorA method.

Constructor & Destructor Documentation

◆ GouraudLine() [1/2]

psyqo::Prim::GouraudLine::GouraudLine ( )
inline

◆ GouraudLine() [2/2]

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

Member Function Documentation

◆ setColorA()

GouraudLine & psyqo::Prim::GouraudLine::setColorA ( Color  c)
inline

◆ setColorB()

GouraudLine & psyqo::Prim::GouraudLine::setColorB ( Color  c)
inline

◆ setOpaque()

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

◆ setSemiTrans()

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

Member Data Documentation

◆ colorB

Color psyqo::Prim::GouraudLine::colorB

◆ pointA

Vertex psyqo::Prim::GouraudLine::pointA

◆ pointB

Vertex psyqo::Prim::GouraudLine::pointB

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