This commit is contained in:
FyloZ 2024-05-17 13:25:32 -04:00
parent 87179ec891
commit 608a2b7578
Signed by: william
GPG Key ID: 835378AE9AF4AE97
3 changed files with 30 additions and 3 deletions

View File

@ -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})

5
ppu/palette.c Normal file
View File

@ -0,0 +1,5 @@
//
// Created by william on 17/05/24.
//
#include "palette.h"

23
ppu/palette.h Normal file
View File

@ -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