yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
snes_color.h File Reference
#include <snes_color.h>
#include <cstdint>
#include <vector>
#include "imgui/imgui.h"
Include dependency graph for snes_color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  yaze::app::gfx::SnesColor
 SNES Color container. More...
 

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)
 
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::ReadColorFromRom (int offset, const uint8_t *rom)
 
SnesColor yaze::app::gfx::GetCgxColor (uint16_t color)
 
std::vector< SnesColoryaze::app::gfx::GetColFileData (uint8_t *data)
 

Variables

constexpr int yaze::app::gfx::NumberOfColors = 3143
 
constexpr uint8_t yaze::app::gfx::kColorByteMax = 255
 
constexpr float yaze::app::gfx::kColorByteMaxF = 255.f