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.
u8tilemap
 Pointer to tilemap data (gfx4snes .map).
u8tilemap_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

u8* BgAsset::tilemap

Pointer to tilemap data (gfx4snes .map).

◆ tilemap_end

u8* BgAsset::tilemap_end

One past the end of the tilemap data.


The documentation for this struct was generated from the following file:
  • /home/runner/work/opensnes/opensnes/lib/include/snes/asset.h