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

Text rendering configuration. More...

#include <text.h>

Public Attributes

u16 font_tile
u8 map_width
u8 palette
u8 priority
u16 tilemap_addr

Detailed Description

Text rendering configuration.

Member Data Documentation

◆ font_tile

u16 TextConfig::font_tile

First tile number of font in VRAM

◆ map_width

u8 TextConfig::map_width

Tilemap width in tiles. 32 only. textInit sets it, tilemapBuffer is sized for 32x32 and the NMI's flush sends the buffer's bytes, so writing 64 here indexes past the buffer instead of widening anything.

◆ palette

u8 TextConfig::palette

Palette number (0-7)

◆ priority

u8 TextConfig::priority

Priority bit (0 or 1)

◆ tilemap_addr

u16 TextConfig::tilemap_addr

VRAM address of tilemap (word address)


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