SNES Color container. More...
#include <snes_color.h>
Public Member Functions | |
SnesColor () | |
SnesColor (const ImVec4 val) | |
SnesColor (const uint16_t val) | |
SnesColor (const snes_color val) | |
SnesColor (uint8_t r, uint8_t g, uint8_t b) | |
ImVec4 | rgb () const |
void | set_rgb (const ImVec4 val) |
void | set_snes (uint16_t val) |
snes_color | rom_color () const |
uint16_t | snes () const |
bool | is_modified () const |
bool | is_transparent () const |
void | set_transparent (bool t) |
void | set_modified (bool m) |
Private Attributes | |
ImVec4 | rgb_ |
uint16_t | snes_ |
snes_color | rom_color_ |
bool | modified = false |
bool | transparent = false |
SNES Color container.
Used for displaying the color to the screen and writing the color to the Rom file in the correct format.
SNES colors may be represented in one of three formats:
Definition at line 39 of file snes_color.h.
|
inline |
Definition at line 41 of file snes_color.h.
|
inlineexplicit |
Definition at line 42 of file snes_color.h.
References snes_color::blue, yaze::app::gfx::ConvertRgbToSnes(), snes_color::green, yaze::app::gfx::kColorByteMax, snes_color::red, and snes_.
|
inlineexplicit |
Definition at line 49 of file snes_color.h.
References snes_color::blue, yaze::app::gfx::ConvertSnesToRgb(), snes_color::green, snes_color::red, and rgb_.
|
inlineexplicit |
Definition at line 53 of file snes_color.h.
|
inline |
Definition at line 58 of file snes_color.h.
References snes_color::blue, yaze::app::gfx::ConvertRgbToSnes(), snes_color::green, yaze::app::gfx::kColorByteMaxF, snes_color::red, rgb_, rom_color_, and snes_.
|
inline |
Definition at line 68 of file snes_color.h.
References rgb_.
Referenced by yaze::app::gfx::Bitmap::ApplyPalette(), yaze::app::gui::ConvertSnesColorToImVec4(), and yaze::app::gfx::ToFloatArray().
|
inline |
Definition at line 70 of file snes_color.h.
References snes_color::blue, yaze::app::gfx::ConvertRgbToSnes(), snes_color::green, yaze::app::gfx::kColorByteMax, modified, snes_color::red, rgb_, rom_color_, and snes_.
Referenced by yaze::app::gfx::GetCgxColor(), yaze::app::gui::SnesColorEdit4(), yaze::app::gfx::SnesPalette::SnesPalette(), yaze::app::gfx::SnesPalette::SnesPalette(), and yaze::app::gfx::SnesPalette::SnesPalette().
|
inline |
Definition at line 83 of file snes_color.h.
References snes_color::blue, yaze::app::gfx::ConvertSnesToRgb(), snes_color::green, modified, snes_color::red, rgb_, and snes_.
Referenced by yaze::app::gui::SnesColorEdit4(), yaze::app::gfx::SnesPalette::SnesPalette(), yaze::app::gfx::SnesPalette::SnesPalette(), and yaze::app::gfx::SnesPalette::SnesPalette().
|
inline |
Definition at line 90 of file snes_color.h.
References rom_color_.
|
inline |
Definition at line 91 of file snes_color.h.
References snes_.
Referenced by yaze::app::gui::SnesColorButton(), yaze::app::gfx::SnesPalette::SnesPalette(), yaze::app::gfx::SnesPalette::SnesPalette(), and yaze::app::Rom::WriteColor().
|
inline |
Definition at line 92 of file snes_color.h.
References modified.
Referenced by yaze::app::Rom::SavePalette().
|
inline |
Definition at line 93 of file snes_color.h.
References transparent.
|
inline |
Definition at line 94 of file snes_color.h.
References transparent.
|
inline |
Definition at line 95 of file snes_color.h.
References modified.
Referenced by yaze::app::Rom::SavePalette().
|
private |
Definition at line 98 of file snes_color.h.
Referenced by rgb(), set_rgb(), set_snes(), SnesColor(), and SnesColor().
|
private |
Definition at line 99 of file snes_color.h.
Referenced by set_rgb(), set_snes(), snes(), SnesColor(), and SnesColor().
|
private |
Definition at line 100 of file snes_color.h.
Referenced by rom_color(), set_rgb(), and SnesColor().
|
private |
Definition at line 101 of file snes_color.h.
Referenced by is_modified(), set_modified(), set_rgb(), and set_snes().
|
private |
Definition at line 102 of file snes_color.h.
Referenced by is_transparent(), and set_transparent().