SNES color in 15-bit RGB format (BGR555) More...
#include <yaze.h>
Public Attributes | |
uint16_t | red |
uint16_t | green |
uint16_t | blue |
SNES color in 15-bit RGB format (BGR555)
Represents a color in the SNES native format. Colors are stored as 8-bit values but only the lower 5 bits are used by the SNES.
uint16_t snes_color::red |
Red component (0-255, but SNES uses 0-31)
Definition at line 209 of file yaze.h.
Referenced by yaze::gfx::ConvertRgbToSnes(), yaze::gfx::ConvertRgbToSnes(), yaze::gfx::ConvertSnesToRgb(), yaze::gfx::ReadColorFromRom(), yaze::gfx::ReadPaletteFromRom(), yaze::gfx::SnesColor::set_rgb(), yaze::gfx::SnesColor::set_snes(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesPalette::SnesPalette(), yaze::gfx::SnesPalette::SnesPalette(), yaze::test::TEST(), yaze::test::anonymous_namespace{snes_palette_test.cc}::test_convert(), yaze_get_color_from_paletteset(), yaze_rgb_to_snes_color(), and yaze_snes_color_to_rgb().
uint16_t snes_color::green |
Green component (0-255, but SNES uses 0-31)
Definition at line 210 of file yaze.h.
Referenced by yaze::gfx::ConvertRgbToSnes(), yaze::gfx::ConvertRgbToSnes(), yaze::gfx::ConvertSnesToRgb(), yaze::gfx::ReadColorFromRom(), yaze::gfx::ReadPaletteFromRom(), yaze::gfx::SnesColor::set_rgb(), yaze::gfx::SnesColor::set_snes(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesPalette::SnesPalette(), yaze::gfx::SnesPalette::SnesPalette(), yaze::test::TEST(), yaze::test::anonymous_namespace{snes_palette_test.cc}::test_convert(), yaze_get_color_from_paletteset(), yaze_rgb_to_snes_color(), and yaze_snes_color_to_rgb().
uint16_t snes_color::blue |
Blue component (0-255, but SNES uses 0-31)
Definition at line 211 of file yaze.h.
Referenced by yaze::gfx::ConvertRgbToSnes(), yaze::gfx::ConvertRgbToSnes(), yaze::gfx::ConvertSnesToRgb(), yaze::gfx::ReadColorFromRom(), yaze::gfx::ReadPaletteFromRom(), yaze::gfx::SnesColor::set_rgb(), yaze::gfx::SnesColor::set_snes(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesColor::SnesColor(), yaze::gfx::SnesPalette::SnesPalette(), yaze::gfx::SnesPalette::SnesPalette(), yaze::test::TEST(), yaze::test::anonymous_namespace{snes_palette_test.cc}::test_convert(), yaze_get_color_from_paletteset(), yaze_rgb_to_snes_color(), and yaze_snes_color_to_rgb().