yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
palette_editor.cc File Reference
#include "palette_editor.h"
#include "absl/status/status.h"
#include "app/gfx/snes_palette.h"
#include "app/gui/canvas.h"
#include "app/gui/color.h"
#include "app/gui/icons.h"
#include "app/gui/style.h"
#include "imgui/imgui.h"
Include dependency graph for palette_editor.cc:

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::app
 Main namespace for the ImGui application.
 
namespace  yaze::app::editor
 Editors are the view controllers for the application.
 
namespace  yaze::app::editor::anonymous_namespace{palette_editor.cc}
 

Macros

#define F32_TO_INT8_SAT(_VAL)
 

Functions

int yaze::app::editor::anonymous_namespace{palette_editor.cc}::CustomFormatString (char *buf, size_t buf_size, const char *fmt,...)
 
absl::Status yaze::app::editor::DisplayPalette (gfx::SnesPalette &palette, bool loaded)
 

Variables

constexpr ImGuiTableFlags yaze::app::editor::kPaletteTableFlags
 
constexpr ImGuiColorEditFlags yaze::app::editor::kPalNoAlpha = ImGuiColorEditFlags_NoAlpha
 
constexpr ImGuiColorEditFlags yaze::app::editor::kPalButtonFlags2
 
constexpr ImGuiColorEditFlags yaze::app::editor::kColorPopupFlags
 

Macro Definition Documentation

◆ F32_TO_INT8_SAT

#define F32_TO_INT8_SAT ( _VAL)
Value:
((int)(color_saturate(_VAL) * 255.0f + \
0.5f))

Definition at line 83 of file palette_editor.cc.

Referenced by yaze::app::editor::PaletteEditor::HandleColorPopup().