OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
BgAsset Struct Reference

A full background bundle: tileset + tilemap + map size. More...

#include <asset.h>

Public Attributes

GfxAsset gfx
 Tileset (tiles + palette + color mode).
u8 map_size
 Tilemap layout. Use one of SC_32x32, SC_64x32, SC_32x64, SC_64x64.
const u8 * tilemap
 Pointer to tilemap data (the .map that opensnes-tileset writes).
const u8 * tilemap_end
 One past the end of the tilemap data.

Detailed Description

A full background bundle: tileset + tilemap + map size.

Wraps a GfxAsset with a tilemap blob and the BG layout constant (SC_32x32, SC_64x32, SC_32x64, SC_64x64).

Member Data Documentation

◆ gfx

GfxAsset BgAsset::gfx

Tileset (tiles + palette + color mode).

◆ map_size

u8 BgAsset::map_size

Tilemap layout. Use one of SC_32x32, SC_64x32, SC_32x64, SC_64x64.

◆ tilemap

const u8* BgAsset::tilemap

Pointer to tilemap data (the .map that opensnes-tileset writes).

◆ tilemap_end

const u8* BgAsset::tilemap_end

One past the end of the tilemap data.


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