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

The Pixel primitive. More...

#include <psyqo/primitives/rectangles.hh>

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

Public Member Functions

 Pixel ()
 
 Pixel (Color c)
 
PixelsetColor (Color c)
 
PixelsetOpaque ()
 
PixelsetSemiTrans ()
 

Public Attributes

Vertex position
 

Static Public Attributes

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

Detailed Description

The Pixel primitive.

This primitive will draw a single pixel. The position member specifies the location within the screen where the pixel will be drawn. The color is specified by the constructor parameter, or the setColor method.

Constructor & Destructor Documentation

◆ Pixel() [1/2]

psyqo::Prim::Pixel::Pixel ( )
inline

◆ Pixel() [2/2]

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

Member Function Documentation

◆ setColor()

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

◆ setOpaque()

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

◆ setSemiTrans()

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

Member Data Documentation

◆ BASE

constexpr uint32_t psyqo::Prim::Pixel::BASE = 0b011'01'0 << 26
staticconstexpr

◆ position

Vertex psyqo::Prim::Pixel::position

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