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

The Rectangle primitive. More...

#include <psyqo/primitives/rectangles.hh>

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

Public Member Functions

 Rectangle ()
 
 Rectangle (Color c)
 
RectanglesetColor (Color c)
 
RectanglesetOpaque ()
 
RectanglesetSemiTrans ()
 

Public Attributes

Vertex position
 
Vertex size
 

Static Public Attributes

static constexpr uint32_t BASE = 0b011'00'0 << 26
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Rectangle() [1/2]

psyqo::Prim::Rectangle::Rectangle ( )
inline

◆ Rectangle() [2/2]

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

Member Function Documentation

◆ setColor()

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

◆ setOpaque()

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

◆ setSemiTrans()

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

Member Data Documentation

◆ BASE

constexpr uint32_t psyqo::Prim::Rectangle::BASE = 0b011'00'0 << 26
staticconstexpr

◆ position

Vertex psyqo::Prim::Rectangle::position

◆ size

Vertex psyqo::Prim::Rectangle::size

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