Nugget
|
The Rectangle primitive. More...
#include <psyqo/primitives/rectangles.hh>
Public Member Functions | |
Rectangle () | |
Rectangle (Color c) | |
Rectangle & | setColor (Color c) |
Rectangle & | setOpaque () |
Rectangle & | setSemiTrans () |
Public Attributes | |
Vertex | position |
Vertex | size |
Static Public Attributes | |
static constexpr uint32_t | BASE = 0b011'00'0 << 26 |
The Rectangle primitive.
This primitive will draw a rectangle of arbitrary size. The position
member specifies the location within the screen where the top left corner of the rectangle will be rendered. The size
member specifies the size of the rectangle. The color is specified by the constructor parameter, or the setColor
method.
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
Vertex psyqo::Prim::Rectangle::position |
Vertex psyqo::Prim::Rectangle::size |