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

TPageAttrsetPageX (uint8_t x)
 
TPageAttrsetPageY (uint8_t y)
 
TPageAttrset (Prim::TPageAttr::SemiTrans trans)
 
TPageAttrset (Prim::TPageAttr::ColorMode mode)
 
TPageAttrsetDithering (bool dithering)
 
TPageAttrdisableDisplayArea ()
 
TPageAttrenableDisplayArea ()
 

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.

Member Function Documentation

◆ disableDisplayArea()

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

◆ enableDisplayArea()

TPageAttr & psyqo::PrimPieces::TPageAttr::enableDisplayArea ( )
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

◆ 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: