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

The 16x16 Rectangle primitive. More...

#include <psyqo/primitives/rectangles.hh>

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

Public Member Functions

 Rectangle16x16 ()
 
 Rectangle16x16 (Color c)
 
Rectangle16x16setColor (Color c)
 
Rectangle16x16setOpaque ()
 
Rectangle16x16setSemiTrans ()
 

Public Attributes

Vertex position
 

Static Public Attributes

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

Detailed Description

The 16x16 Rectangle primitive.

This primitive will draw a rectangle of 16 by 16 pixels. The position member specifies the location within the screen where the top left corner of the rectangle will be rendered. The color is specified by the constructor parameter, or the setColor method.

Constructor & Destructor Documentation

◆ Rectangle16x16() [1/2]

psyqo::Prim::Rectangle16x16::Rectangle16x16 ( )
inline

◆ Rectangle16x16() [2/2]

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

Member Function Documentation

◆ setColor()

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

◆ setOpaque()

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

◆ setSemiTrans()

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

Member Data Documentation

◆ BASE

constexpr uint32_t psyqo::Prim::Rectangle16x16::BASE = 0b011'11'0 << 26
staticconstexpr

◆ position

Vertex psyqo::Prim::Rectangle16x16::position

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