#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "app/core/constants.h"
#include "app/gfx/snes_color.h"
#include "imgui/imgui.h"
Go to the source code of this file.
Classes | |
class | yaze::app::gfx::SnesPalette |
Represents a palette of colors for the Super Nintendo Entertainment System (SNES). More... | |
struct | yaze::app::gfx::PaletteGroup |
Represents a group of palettes. More... | |
struct | yaze::app::gfx::PaletteGroupMap |
Represents a mapping of palette groups. More... | |
struct | yaze::app::gfx::Paletteset |
Represents a set of palettes used in a SNES graphics system. More... | |
class | yaze::app::GfxContext |
Shared graphical context across editors. More... | |
Namespaces | |
namespace | yaze |
namespace | yaze::app |
Main namespace for the ImGui application. | |
namespace | yaze::app::gfx |
Contains classes for handling graphical data. | |
Functions | |
uint32_t | yaze::app::gfx::GetPaletteAddress (const std::string &group_name, size_t palette_index, size_t color_index) |
SnesPalette | yaze::app::gfx::ReadPaletteFromRom (int offset, int num_colors, const uint8_t *rom) |
std::array< float, 4 > | yaze::app::gfx::ToFloatArray (const SnesColor &color) |
absl::StatusOr< PaletteGroup > | yaze::app::gfx::CreatePaletteGroupFromColFile (std::vector< SnesColor > &palette_rows) |
absl::StatusOr< PaletteGroup > | yaze::app::gfx::CreatePaletteGroupFromLargePalette (SnesPalette &palette, int num_colors=8) |
Take a SNESPalette, divide it into palettes of 8 colors. | |
absl::Status | yaze::app::gfx::LoadAllPalettes (const std::vector< uint8_t > &rom_data, PaletteGroupMap &groups) |
Loads all the palettes for the game. | |