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

The Sprite primitive. More...

#include <psyqo/primitives/sprites.hh>

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

Public Member Functions

 Sprite ()
 
 Sprite (Color c)
 
SpritesetColor (Color c)
 
SpritesetOpaque ()
 
SpritesetSemiTrans ()
 

Public Attributes

Vertex position
 
PrimPieces::TexInfo texInfo
 
Vertex size
 

Static Public Attributes

static constexpr uint32_t BASE = 0b011'00'1 << 26
 

Detailed Description

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 texInfomember 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.

Constructor & Destructor Documentation

◆ Sprite() [1/2]

psyqo::Prim::Sprite::Sprite ( )
inline

◆ Sprite() [2/2]

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

Member Function Documentation

◆ setColor()

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

◆ setOpaque()

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

◆ setSemiTrans()

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

Member Data Documentation

◆ BASE

constexpr uint32_t psyqo::Prim::Sprite::BASE = 0b011'00'1 << 26
staticconstexpr

◆ position

Vertex psyqo::Prim::Sprite::position

◆ size

Vertex psyqo::Prim::Sprite::size

◆ texInfo

PrimPieces::TexInfo psyqo::Prim::Sprite::texInfo

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