Nugget
|
#include <psyqo/primitives/sprites.hh>
Public Member Functions | |
Sprite () | |
Sprite (Color c) | |
Sprite & | setColor (Color c) |
Sprite & | setOpaque () |
Sprite & | setSemiTrans () |
Public Attributes | |
Vertex | position |
PrimPieces::TexInfo | texInfo |
Vertex | size |
Static Public Attributes | |
static constexpr uint32_t | BASE = 0b011'00'1 << 26 |
The Sprite primitive.
This primitive will draw a sprite of arbitrary size. The position
member describes the location within the screen where the sprite will be blitted. The texInfo
member indicates where the source sprite is blitted from, and the size
member specifies actual sprite size to blit.
The texture information needs to be specified with a TPage primitive beforehand.
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
Vertex psyqo::Prim::Sprite::position |
Vertex psyqo::Prim::Sprite::size |
PrimPieces::TexInfo psyqo::Prim::Sprite::texInfo |