yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
gfx_group_editor.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_GFX_GROUP_EDITOR_H
2#define YAZE_APP_EDITOR_GFX_GROUP_EDITOR_H
3
4#include <cmath>
5
6#include "absl/status/status.h"
7#include "absl/status/statusor.h"
9#include "app/gfx/bitmap.h"
11#include "app/gfx/snes_tile.h"
12#include "app/gui/canvas.h"
13#include "app/gui/icons.h"
14#include "app/gui/style.h"
15#include "app/rom.h"
17#include "imgui/imgui.h"
18
19namespace yaze {
20namespace app {
21namespace editor {
22
27class GfxGroupEditor : public SharedRom {
28 public:
29 absl::Status Update();
30
31 void DrawBlocksetViewer(bool sheet_only = false);
32 void DrawRoomsetViewer();
33 void DrawSpritesetViewer(bool sheet_only = false);
34 void DrawPaletteViewer();
35
36 void SetSelectedBlockset(uint8_t blockset) { selected_blockset_ = blockset; }
37 void SetSelectedRoomset(uint8_t roomset) { selected_roomset_ = roomset; }
38 void SetSelectedSpriteset(uint8_t spriteset) {
39 selected_spriteset_ = spriteset;
40 }
41
42 private:
43 uint8_t selected_blockset_ = 0;
44 uint8_t selected_roomset_ = 0;
47
51
53};
54
55} // namespace editor
56} // namespace app
57} // namespace yaze
58#endif // YAZE_APP_EDITOR_GFX_GROUP_EDITOR_H
A class to hold a shared pointer to a Rom object.
Definition rom.h:585
Manage graphics group configurations in a Rom.
void SetSelectedBlockset(uint8_t blockset)
void SetSelectedRoomset(uint8_t roomset)
void DrawSpritesetViewer(bool sheet_only=false)
void DrawBlocksetViewer(bool sheet_only=false)
void SetSelectedSpriteset(uint8_t spriteset)
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a canvas for drawing and manipulating graphics.
Definition canvas.h:36
Definition common.cc:21