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

The 8x8 Rectangle primitive. More...

#include <psyqo/primitives/rectangles.hh>

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

Public Member Functions

 Rectangle8x8 ()
 
 Rectangle8x8 (Color c)
 
Rectangle8x8setColor (Color c)
 
Rectangle8x8setOpaque ()
 
Rectangle8x8setSemiTrans ()
 

Public Attributes

Vertex position
 

Static Public Attributes

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

Detailed Description

The 8x8 Rectangle primitive.

This primitive will draw a rectangle of 8 by 8 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

◆ Rectangle8x8() [1/2]

psyqo::Prim::Rectangle8x8::Rectangle8x8 ( )
inline

◆ Rectangle8x8() [2/2]

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

Member Function Documentation

◆ setColor()

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

◆ setOpaque()

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

◆ setSemiTrans()

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

Member Data Documentation

◆ BASE

constexpr uint32_t psyqo::Prim::Rectangle8x8::BASE = 0b011'10'0 << 26
staticconstexpr

◆ position

Vertex psyqo::Prim::Rectangle8x8::position

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