diff --git a/ppu/CMakeLists.txt b/ppu/CMakeLists.txt index fbf880c..296161b 100644 --- a/ppu/CMakeLists.txt +++ b/ppu/CMakeLists.txt @@ -1,6 +1,5 @@ -set(HEADERS pattern_table.h - ppu.h) -set(SOURCE pattern_table.c ppu.c) +set(HEADERS pattern_table.h ppu.h palette.h) +set(SOURCE pattern_table.c ppu.c palette.c) add_library(nes_ppu ${SOURCE} ${HEADERS}) diff --git a/ppu/palette.c b/ppu/palette.c new file mode 100644 index 0000000..571b6d5 --- /dev/null +++ b/ppu/palette.c @@ -0,0 +1,5 @@ +// +// Created by william on 17/05/24. +// + +#include "palette.h" diff --git a/ppu/palette.h b/ppu/palette.h new file mode 100644 index 0000000..2f5ccf2 --- /dev/null +++ b/ppu/palette.h @@ -0,0 +1,23 @@ +// +// Created by william on 17/05/24. +// + +#ifndef NES_EMULATOR_PALETTE_H +#define NES_EMULATOR_PALETTE_H + +#include "../include/types.h" + +typedef struct nes_palette { + byte bg_color0; + byte bg_color1; + byte bg_color2; + byte bg_color3; + byte sp_color0; + byte sp_color1; + byte sp_color2; + byte sp_color3; +} Palette; + + + +#endif //NES_EMULATOR_PALETTE_H