diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-02-24 19:11:59 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-02-24 19:11:59 +0100 |
commit | f5c8ae2f2d2074d483490e857db5aef8388f06c9 (patch) | |
tree | a76e1985433216a31e112d3f4daccdf19097c06d /src/ppu/ppu.h | |
parent | 5f5c6a410cafaa917ca3ff0a2a95bb1f2db4b980 (diff) |
c interface semi-done
Diffstat (limited to 'src/ppu/ppu.h')
-rw-r--r-- | src/ppu/ppu.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ppu/ppu.h b/src/ppu/ppu.h index 7aeb7c1..90f964e 100644 --- a/src/ppu/ppu.h +++ b/src/ppu/ppu.h @@ -1,12 +1,22 @@ #pragma once -#include "types.h" +#include "ppu/types.h" void hh_ppu_vblank_interrupt(); void hh_ppu_init(); void hh_ppu_deinit(); +/* @brief update single foreground sprite */ void hh_ppu_update_foreground(unsigned index, hh_s_ppu_loc_fam_entry e); +/* @brief update single background sprite */ void hh_ppu_update_background(unsigned index, hh_s_ppu_loc_bam_entry e); -void hh_ppu_update_sprite(unsigned tilemap_index, hh_s_ppu_loc_sprite sprite); +/* @brief update aux register */ void hh_ppu_update_aux(hh_s_ppu_loc_aux aux); +/* @brief update single sprite */ +void hh_ppu_update_sprite(unsigned tilemap_index, hh_s_ppu_loc_sprite sprite); +/* @brief update entire palette table */ +void hh_ppu_update_palette_table(hh_ppu_loc_palette_table_t table); +/* @brief update single palette */ +void hh_ppu_update_palette(unsigned palette_index, hh_ppu_loc_palette_data_t palette); +/* @brief update single color in palette */ +void hh_ppu_update_color(unsigned palette_index, unsigned color_index, hh_ppu_rgb_color_t color); |