mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Rename proto-palettes to color sets (copied from rsgbds)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#ifndef RGBDS_GFX_PROTO_PALETTE_HPP
|
||||
#define RGBDS_GFX_PROTO_PALETTE_HPP
|
||||
#ifndef RGBDS_GFX_COLOR_SET_HPP
|
||||
#define RGBDS_GFX_COLOR_SET_HPP
|
||||
|
||||
#include <array>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
class ProtoPalette {
|
||||
class ColorSet {
|
||||
public:
|
||||
static constexpr size_t capacity = 4;
|
||||
|
||||
@@ -26,7 +26,7 @@ public:
|
||||
WE_BIGGER,
|
||||
THEY_BIGGER = -1,
|
||||
};
|
||||
ComparisonResult compare(ProtoPalette const &other) const;
|
||||
ComparisonResult compare(ColorSet const &other) const;
|
||||
|
||||
size_t size() const;
|
||||
bool empty() const;
|
||||
@@ -35,4 +35,4 @@ public:
|
||||
decltype(_colorIndices)::const_iterator end() const;
|
||||
};
|
||||
|
||||
#endif // RGBDS_GFX_PROTO_PALETTE_HPP
|
||||
#endif // RGBDS_GFX_COLOR_SET_HPP
|
||||
@@ -8,10 +8,9 @@
|
||||
#include <vector>
|
||||
|
||||
struct Palette;
|
||||
class ProtoPalette;
|
||||
class ColorSet;
|
||||
|
||||
// Returns which palette each proto-palette maps to, and how many palettes are necessary
|
||||
std::tuple<std::vector<size_t>, size_t>
|
||||
overloadAndRemove(std::vector<ProtoPalette> const &protoPalettes);
|
||||
// Returns which palette each color set maps to, and how many palettes are necessary
|
||||
std::tuple<std::vector<size_t>, size_t> overloadAndRemove(std::vector<ColorSet> const &colorSets);
|
||||
|
||||
#endif // RGBDS_GFX_PAL_PACKING_HPP
|
||||
|
||||
Reference in New Issue
Block a user