yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gfx::ZsprData Struct Reference

Complete data loaded from a ZSPR file. More...

#include <zspr_loader.h>

Collaboration diagram for yaze::gfx::ZsprData:

Public Member Functions

bool is_link_sprite () const
 
size_t tile_count () const
 

Public Attributes

ZsprMetadata metadata
 
std::vector< uint8_t > sprite_data
 
std::vector< uint8_t > palette_data
 
std::array< uint16_t, 2 > glove_colors = {0, 0}
 

Detailed Description

Complete data loaded from a ZSPR file.

ZSPR files contain Link sprite replacement data used by the ALttP Randomizer community. The format includes:

  • 896 tiles (28672 bytes) of 4BPP sprite graphics
  • 120 bytes of palette data (4 palettes × 15 colors × 2 bytes)
  • 2 glove color values

Definition at line 38 of file zspr_loader.h.

Member Function Documentation

◆ is_link_sprite()

bool yaze::gfx::ZsprData::is_link_sprite ( ) const
inline

◆ tile_count()

size_t yaze::gfx::ZsprData::tile_count ( ) const
inline

Definition at line 46 of file zspr_loader.h.

References sprite_data.

Member Data Documentation

◆ metadata

ZsprMetadata yaze::gfx::ZsprData::metadata

◆ sprite_data

std::vector<uint8_t> yaze::gfx::ZsprData::sprite_data

◆ palette_data

std::vector<uint8_t> yaze::gfx::ZsprData::palette_data

◆ glove_colors

std::array<uint16_t, 2> yaze::gfx::ZsprData::glove_colors = {0, 0}

Definition at line 42 of file zspr_loader.h.

Referenced by yaze::gfx::ZsprLoader::LoadFromData().


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