adding tests for the getPalette function

This commit is contained in:
Clément Le Bihan
2021-07-11 19:15:46 +02:00
parent 7e2281a640
commit 8a84258c5a
2 changed files with 278 additions and 5 deletions
+2
View File
@@ -46,7 +46,9 @@ namespace ComSquare::PPU
//! @return The color Reference
uint8_t getPixelReferenceFromTileRow(uint16_t tileRowAddress, uint8_t pixelIndex);
//! @brief Gives the actual selected palette with all of it's colors
//! @param nbPalette The index of the palette wanted
//! @return The array of color of the palette
//! @note The return and argument depends on the current bpp
//! @warning Values are CGRAM colors use PPU::getRealColor function to get the actual real color
std::vector<uint16_t> getPalette(int nbPalette);
//! @brief read the 2bpp value for a pixel (used multple times for 4bpp and 8bpp)