BEEP-8 Helper Lib 1.0.0
|
Module for loading and displaying font data using the Picture Processing Unit (PPU). More...
#include <b8/ppu.h>
Go to the source code of this file.
Functions | |
void | fontdata::load (u8 dstxtile_=B8_PPU_MAX_WTILE - 2 *16, u8 dstytile_=B8_PPU_MAX_HTILE - 16) |
b8PpuBgTile | fontdata::gettc () |
u8 | fontdata::dstxtile () |
u8 | fontdata::dstytile () |
Module for loading and displaying font data using the Picture Processing Unit (PPU).
This module provides functionality for loading specific font data into the PPU and displaying it. It manages the loading of font data, mapping it to specific tiles, and sending it to the PPU to render characters on the screen.
_font
array defines font data for 96 characters in an 8x8 bitmap format._setpix
function sets a pixel at a specified coordinate with a specific color.fontdata
namespace provides functions to load font data into specific tiles and retrieve information about those tiles._is_loaded
flag to avoid reloading if the data is already loaded._setpix
Function: Sets a specific pixel in the image buffer with the given color. This ensures accurate rendering of the bitmap font data.Here is an example of how to use this module to load font data and map it to specific tiles:
This module manages font data and loads it into the PPU for rendering. It defines font data in a bitmap format, sends it to the PPU, and maps it to specific tiles to display characters on the screen. The primary use is to load and display fonts at specified tile positions.