yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
canvas.cc File Reference
#include "canvas.h"
#include <cmath>
#include <string>
#include "app/core/platform/renderer.h"
#include "app/gfx/bitmap.h"
#include "app/gui/color.h"
#include "app/gui/input.h"
#include "app/gui/style.h"
#include "app/rom.h"
#include "imgui/imgui.h"

Go to the source code of this file.

Classes

class  yaze::gui::Renderer
 The Renderer class represents the renderer for the Yaze application. More...
 

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::gui
 Graphical User Interface (GUI) components for the application.
 
namespace  yaze::gui::anonymous_namespace{canvas.cc}
 

Functions

ImVec2 yaze::gui::anonymous_namespace{canvas.cc}::AlignPosToGrid (ImVec2 pos, float scale)
 
void yaze::gui::GraphicsBinCanvasPipeline (int width, int height, int tile_size, int num_sheets_to_load, int canvas_id, bool is_loaded, gfx::BitmapTable &graphics_bin)
 
void yaze::gui::BitmapCanvasPipeline (gui::Canvas &canvas, const gfx::Bitmap &bitmap, int width, int height, int tile_size, bool is_loaded, bool scrollbar, int canvas_id)
 

Variables

constexpr uint32_t yaze::gui::kBlackColor = IM_COL32(0, 0, 0, 255)
 
constexpr uint32_t yaze::gui::kRectangleColor = IM_COL32(32, 32, 32, 255)
 
constexpr uint32_t yaze::gui::kWhiteColor = IM_COL32(255, 255, 255, 255)
 
constexpr uint32_t yaze::gui::kOutlineRect = IM_COL32(255, 255, 255, 200)
 
constexpr ImGuiButtonFlags yaze::gui::kMouseFlags