mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
27 lines
507 B
C++
27 lines
507 B
C++
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RGBDS_GFX_PAL_PACKING_HPP
|
|
#define RGBDS_GFX_PAL_PACKING_HPP
|
|
|
|
#include <tuple>
|
|
#include <vector>
|
|
|
|
#include "defaultinitalloc.hpp"
|
|
|
|
#include "gfx/main.hpp"
|
|
|
|
struct Palette;
|
|
class ProtoPalette;
|
|
|
|
namespace packing {
|
|
|
|
/*
|
|
* Returns which palette each proto-palette maps to, and how many palettes are necessary
|
|
*/
|
|
std::tuple<DefaultInitVec<size_t>, size_t>
|
|
overloadAndRemove(std::vector<ProtoPalette> const &protoPalettes);
|
|
|
|
}
|
|
|
|
#endif // RGBDS_GFX_PAL_PACKING_HPP
|