Nugget
Loading...
Searching...
No Matches
Public Member Functions | List of all members
psyqo::PrimPieces::TPageAttr Struct Reference

A primitive's tpage attribute. More...

#include <psyqo/primitives/common.hh>

Public Member Functions

 TPageAttr ()
 
 TPageAttr (TPageAttr &&other)
 
 TPageAttr (const TPageAttr &other)
 
TPageAttroperator= (TPageAttr &&other)
 
TPageAttroperator= (const TPageAttr &other)
 
TPageAttrcopy (const TPageAttr &other)
 
TPageAttrsetPageX (uint8_t x)
 
TPageAttrsetPageY (uint8_t y)
 
TPageAttrsetPageLoc (TPageLoc loc)
 
TPageAttrset (Prim::TPageAttr::SemiTrans trans)
 
TPageAttrset (Prim::TPageAttr::ColorMode mode)
 
TPageAttrsetDithering (bool dithering)
 
TPageAttrdisableDisplayArea ()
 
TPageAttrenableDisplayArea ()
 
uint8_t getPageX () const
 
uint8_t getPageY () const
 
uint8_t getPageLoc () const
 
Prim::TPageAttr::SemiTrans getSemiTrans () const
 
Prim::TPageAttr::ColorMode getColorMode () const
 
bool hasDithering () const
 
bool isDisplayAreaEnabled () const
 

Detailed Description

A primitive's tpage attribute.

This is a common building block piece used in primitives. The binary representation is meant to be the same as the 16-bits tpage argument for GPU commands. See the TPage struct for actual usage, or the various triangle and quad primitives.

When dealing with tpage attributes, it can be more efficient to create a new TPageAttr object on the stack, setting its properties, and then assigning it to the primitive's attribute, instead of directly manipulating the existing one, as the compiler will better optimize the former sequence of operations.

Constructor & Destructor Documentation

◆ TPageAttr() [1/3]

psyqo::PrimPieces::TPageAttr::TPageAttr ( )
inline

◆ TPageAttr() [2/3]

psyqo::PrimPieces::TPageAttr::TPageAttr ( TPageAttr &&  other)
inline

◆ TPageAttr() [3/3]

psyqo::PrimPieces::TPageAttr::TPageAttr ( const TPageAttr other)
inline

Member Function Documentation

◆ copy()

TPageAttr & psyqo::PrimPieces::TPageAttr::copy ( const TPageAttr other)
inline

◆ disableDisplayArea()

TPageAttr & psyqo::PrimPieces::TPageAttr::disableDisplayArea ( )
inline

◆ enableDisplayArea()

TPageAttr & psyqo::PrimPieces::TPageAttr::enableDisplayArea ( )
inline

◆ getColorMode()

Prim::TPageAttr::ColorMode psyqo::PrimPieces::TPageAttr::getColorMode ( ) const
inline

◆ getPageLoc()

uint8_t psyqo::PrimPieces::TPageAttr::getPageLoc ( ) const
inline

◆ getPageX()

uint8_t psyqo::PrimPieces::TPageAttr::getPageX ( ) const
inline

◆ getPageY()

uint8_t psyqo::PrimPieces::TPageAttr::getPageY ( ) const
inline

◆ getSemiTrans()

Prim::TPageAttr::SemiTrans psyqo::PrimPieces::TPageAttr::getSemiTrans ( ) const
inline

◆ hasDithering()

bool psyqo::PrimPieces::TPageAttr::hasDithering ( ) const
inline

◆ isDisplayAreaEnabled()

bool psyqo::PrimPieces::TPageAttr::isDisplayAreaEnabled ( ) const
inline

◆ operator=() [1/2]

TPageAttr & psyqo::PrimPieces::TPageAttr::operator= ( const TPageAttr other)
inline

◆ operator=() [2/2]

TPageAttr & psyqo::PrimPieces::TPageAttr::operator= ( TPageAttr &&  other)
inline

◆ set() [1/2]

TPageAttr & psyqo::PrimPieces::TPageAttr::set ( Prim::TPageAttr::ColorMode  mode)
inline

◆ set() [2/2]

TPageAttr & psyqo::PrimPieces::TPageAttr::set ( Prim::TPageAttr::SemiTrans  trans)
inline

◆ setDithering()

TPageAttr & psyqo::PrimPieces::TPageAttr::setDithering ( bool  dithering)
inline

◆ setPageLoc()

TPageAttr & psyqo::PrimPieces::TPageAttr::setPageLoc ( TPageLoc  loc)
inline

◆ setPageX()

TPageAttr & psyqo::PrimPieces::TPageAttr::setPageX ( uint8_t  x)
inline

◆ setPageY()

TPageAttr & psyqo::PrimPieces::TPageAttr::setPageY ( uint8_t  y)
inline

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