SaturnRingLibrary 0.7
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Tilemap::Interfaces::CubeTile Struct Reference

Detailed Description

Test implementation of ITilemap interface for Loading Cubecat binary format for cel/map/pal data.

This type assumes the raw data is pre-formatted to all VDP2 specifications other than VRAM and Palette offsets. Furthermore, the stored format is specified in the file header to build TilemapInfo. The file layout is as follows (all data is stored as big endian: 32 byte header read as 8 uint32_t values [TypeID, Sizeof(CelData), Sizeof(Mapdata),CharSize,ColorMode,PlaneSize,MapMode,MapSize] 32 or 512 bytes palette data(if a palette type is specified in ColorMode) Cel Data (size specified in header) Map Data (size specified in header)

#include <srl_tilemap_interfaces.hpp>

Inheritance diagram for SRL::Tilemap::Interfaces::CubeTile:
SRL::Tilemap::ITilemap

Public Member Functions

 CubeTile (const char *filename)
 Initialize with CubeTile filename to load.
 
 ~CubeTile ()
 Free all allocated resources and destroy CubeTile object.
 
void * GetCellData () override
 Get Cell data(Tileset)
 
TilemapInfo GetInfo () override
 Get Tilemap Info.
 
void * GetMapData () override
 Get Map data(Tilemap)
 
void * GetPalData () override
 Get Palette data.
 

Constructor & Destructor Documentation

◆ CubeTile()

SRL::Tilemap::Interfaces::CubeTile::CubeTile ( const char * filename)
inline

Initialize with CubeTile filename to load.

Allocates and loads specified CubeTile file to work ram.

Parameters
filenameName of the CubeTile file to load.

Member Function Documentation

◆ GetCellData()

void * SRL::Tilemap::Interfaces::CubeTile::GetCellData ( )
inlineoverridevirtual

Get Cell data(Tileset)

Returns
Pointer to Cel data

Reimplemented from SRL::Tilemap::ITilemap.

◆ GetInfo()

TilemapInfo SRL::Tilemap::Interfaces::CubeTile::GetInfo ( )
inlineoverridevirtual

Get Tilemap Info.

Returns
Tilemap Info

Reimplemented from SRL::Tilemap::ITilemap.

◆ GetMapData()

void * SRL::Tilemap::Interfaces::CubeTile::GetMapData ( )
inlineoverridevirtual

Get Map data(Tilemap)

Returns
Pointer to Map data

Reimplemented from SRL::Tilemap::ITilemap.

◆ GetPalData()

void * SRL::Tilemap::Interfaces::CubeTile::GetPalData ( )
inlineoverridevirtual

Get Palette data.

Returns
Pointer to palette data

Reimplemented from SRL::Tilemap::ITilemap.