Nugget
Loading...
Searching...
No Matches
Public Member Functions | List of all members
psyqo::PrimPieces::ClutIndex Struct Reference

A primitive's CLUT command. More...

#include <psyqo/primitives/common.hh>

Public Member Functions

 ClutIndex ()
 
 ClutIndex (Vertex v)
 
 ClutIndex (uint16_t x, uint16_t y)
 

Detailed Description

A primitive's CLUT command.

This is a common building block piece used in primitives. The binary representation is meant to be the same as the CLUT argument for GPU commands. The constructor can take either a Vertex or the raw x and y coordinates for the CLUT to use.

Remember that CLUTs are aligned to 16 pixels, so the vertex coordinates are rounded to the lowest multiple of 16 on the X axis.

Constructor & Destructor Documentation

◆ ClutIndex() [1/3]

psyqo::PrimPieces::ClutIndex::ClutIndex ( )
inline

◆ ClutIndex() [2/3]

psyqo::PrimPieces::ClutIndex::ClutIndex ( Vertex  v)
inline

◆ ClutIndex() [3/3]

psyqo::PrimPieces::ClutIndex::ClutIndex ( uint16_t  x,
uint16_t  y 
)
inline

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