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

The 8x8 Sprite primitive. More...

#include <psyqo/primitives/sprites.hh>

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

Public Member Functions

 Sprite8x8 ()
 
 Sprite8x8 (Color c)
 
Sprite8x8setColor (Color c)
 
Sprite8x8setOpaque ()
 
Sprite8x8setSemiTrans ()
 

Public Attributes

Vertex position
 
PrimPieces::TexInfo texInfo
 

Static Public Attributes

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

Detailed Description

The 8x8 Sprite primitive.

This primitive will draw a sprite of 8 by 8 pixels. 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.

The texture information needs to be specified with a TPage primitive beforehand.

Constructor & Destructor Documentation

◆ Sprite8x8() [1/2]

psyqo::Prim::Sprite8x8::Sprite8x8 ( )
inline

◆ Sprite8x8() [2/2]

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

Member Function Documentation

◆ setColor()

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

◆ setOpaque()

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

◆ setSemiTrans()

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

Member Data Documentation

◆ BASE

constexpr uint32_t psyqo::Prim::Sprite8x8::BASE = 0b011'10'1 << 26
staticconstexpr

◆ position

Vertex psyqo::Prim::Sprite8x8::position

◆ texInfo

PrimPieces::TexInfo psyqo::Prim::Sprite8x8::texInfo

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