yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
snes_color.cc File Reference
#include "app/gfx/snes_color.h"
#include <cstdint>
#include <vector>
#include "imgui/imgui.h"
Include dependency graph for snes_color.cc:

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::app
 Main namespace for the ImGui application.
 
namespace  yaze::app::gfx
 Contains classes for handling graphical data.
 

Functions

snes_color yaze::app::gfx::ConvertSnesToRgb (uint16_t color_snes)
 
uint16_t yaze::app::gfx::ConvertRgbToSnes (const snes_color &color)
 
uint16_t yaze::app::gfx::ConvertRgbToSnes (const ImVec4 &color)
 
SnesColor yaze::app::gfx::ReadColorFromRom (int offset, const uint8_t *rom)
 
std::vector< snes_coloryaze::app::gfx::Extract (const char *data, unsigned int offset, unsigned int palette_size)
 
std::vector< char > yaze::app::gfx::Convert (const std::vector< snes_color > &palette)
 
SnesColor yaze::app::gfx::GetCgxColor (uint16_t color)
 
std::vector< SnesColoryaze::app::gfx::GetColFileData (uint8_t *data)
 

Variables

constexpr uint16_t yaze::app::gfx::SNES_RED_MASK = 32
 
constexpr uint16_t yaze::app::gfx::SNES_GREEN_MASK = 32
 
constexpr uint16_t yaze::app::gfx::SNES_BLUE_MASK = 32
 
constexpr uint16_t yaze::app::gfx::SNES_GREEN_SHIFT = 32
 
constexpr uint16_t yaze::app::gfx::SNES_BLUE_SHIFT = 1024