|
Nugget
|
A flat-colored quad. More...
#include <psyqo/primitives/quads.hh>

Public Member Functions | |
| Quad () | |
| Quad (Color c) | |
| Quad (const Quad &other, Color c) | |
| Quad & | setColor (Color c) |
| Color | getColor () const |
| Quad & | setOpaque () |
| Quad & | setSemiTrans () |
| bool | isSemiTrans () const |
| Quad & | setPointA (Vertex v) |
| Quad & | setPointB (Vertex v) |
| Quad & | setPointC (Vertex v) |
| Quad & | setPointD (Vertex v) |
Public Attributes | |
| Vertex | pointA |
| Vertex | pointB |
| Vertex | pointC |
| Vertex | pointD |
A flat-colored quad.
This primitive will draw a flat-colored quad. It will be drawn between the pointA, pointB, pointC, and pointD vertices. Note that the ordering of the vertices matters for proper rendering, and it is not intuitive. The quad will be drawn using two triangles: the first triangle will be drawn with the pointA, pointB, and pointC vertices, and the second triangle will be drawn with the pointB, pointC, and pointD vertices. This means that the vertices of the quad need to be sent in a Z pattern to be drawn properly. Failure to do so will result in a weird looking 5-edged polygon resembling a M envelope, which is not what you want.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Vertex psyqo::Prim::Quad::pointA |
| Vertex psyqo::Prim::Quad::pointB |
| Vertex psyqo::Prim::Quad::pointC |
| Vertex psyqo::Prim::Quad::pointD |