Nugget
|
A primitive's tpage attribute. More...
#include <psyqo/primitives/common.hh>
Public Member Functions | |
TPageAttr () | |
TPageAttr (TPageAttr &&other) | |
TPageAttr (const TPageAttr &other) | |
TPageAttr & | operator= (TPageAttr &&other) |
TPageAttr & | operator= (const TPageAttr &other) |
TPageAttr & | copy (const TPageAttr &other) |
TPageAttr & | setPageX (uint8_t x) |
TPageAttr & | setPageY (uint8_t y) |
TPageAttr & | setPageLoc (TPageLoc loc) |
TPageAttr & | set (Prim::TPageAttr::SemiTrans trans) |
TPageAttr & | set (Prim::TPageAttr::ColorMode mode) |
TPageAttr & | setDithering (bool dithering) |
TPageAttr & | disableDisplayArea () |
TPageAttr & | enableDisplayArea () |
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 |
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |