mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
* Remove namespaces * Prefer `bool operator==`, not `friend auto operator==` * Prefer not to use `using` * Use a `constexpr` function instead of a template for `flipTable`
21 lines
456 B
C++
21 lines
456 B
C++
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef RGBDS_GFX_PAL_PACKING_HPP
|
|
#define RGBDS_GFX_PAL_PACKING_HPP
|
|
|
|
#include <tuple>
|
|
#include <vector>
|
|
|
|
#include "defaultinitvec.hpp"
|
|
|
|
struct Palette;
|
|
class ProtoPalette;
|
|
|
|
/*
|
|
* 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
|