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 ()
 
uint32_t getCommandWord () const
 The GP0 command word, minus any colour.
 
GouraudLinesetColorAPacked (uint32_t packed)
 Sets the command word and vertex A's colour in one go.
 
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

◆ getCommandWord()

uint32_t psyqo::Prim::GouraudLine::getCommandWord ( ) const
inline

The GP0 command word, minus any colour.

Meant for the GTE's RGBC CODE field, which gets fused into every colour the GTE emits. Preload it and the colour FIFO hands back finished first words. See GouraudQuad::getCommandWord for the full round trip.

◆ setColorA()

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

◆ setColorAPacked()

GouraudLine & psyqo::Prim::GouraudLine::setColorAPacked ( uint32_t  packed)
inline

Sets the command word and vertex A's colour in one go.

For a value that came out of the GTE with CODE preloaded from getCommandWord. Unlike setColorA this does not preserve the transparency bit, because the value being stored already carries it.

◆ 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: