Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Public Attributes | List of all members
psyqo::TIM::Section Struct Reference

One CLUT or pixel section. More...

#include <psyqo/tim.hh>

Collaboration diagram for psyqo::TIM::Section:
Collaboration graph
[legend]

Public Attributes

const uint16_t * data = nullptr
 
Rect rect
 
bool aligned = false
 Whether data sits on a four byte boundary, as DMA requires.
 

Detailed Description

One CLUT or pixel section.

rect is in 16-bit VRAM units, matching both the file and GPU::uploadToVRAM. For an 8bpp 256 texel wide image the width here is 128, and for a 256 entry palette it is 256 by 1.

Member Data Documentation

◆ aligned

bool psyqo::TIM::Section::aligned = false

Whether data sits on a four byte boundary, as DMA requires.

◆ data

const uint16_t* psyqo::TIM::Section::data = nullptr

◆ rect

Rect psyqo::TIM::Section::rect

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