PSYQo
Public Member Functions | List of all members
psyqo::Prim::ClutIndex Struct Reference

A primitive's CLUT command. More...

#include <primitives.hh>

Public Member Functions

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

Detailed Description

A primitive's CLUT command.

This shouldn't be used directly, but rather be part of another primitive. 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 coordinates are rounded to the lowest multiple of 16 on the X axis.


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