yaze 0.2.2
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 "absl/status/status.h"
6#include "app/gui/canvas.h"
7#include "app/rom.h"
8
9namespace yaze {
10namespace editor {
11
17 public:
18 absl::Status Update();
19
20 void DrawBlocksetViewer(bool sheet_only = false);
21 void DrawRoomsetViewer();
22 void DrawSpritesetViewer(bool sheet_only = false);
23 void DrawPaletteViewer();
24
25 void SetSelectedBlockset(uint8_t blockset) { selected_blockset_ = blockset; }
26 void SetSelectedRoomset(uint8_t roomset) { selected_roomset_ = roomset; }
27 void SetSelectedSpriteset(uint8_t spriteset) {
28 selected_spriteset_ = spriteset;
29 }
30 void set_rom(Rom* rom) { rom_ = rom; }
31 Rom* rom() const { return rom_; }
32
33 private:
34 uint8_t selected_blockset_ = 0;
35 uint8_t selected_roomset_ = 0;
38
42
44 Rom* rom_ = nullptr;
45};
46
47} // namespace editor
48} // namespace yaze
49#endif // YAZE_APP_EDITOR_GFX_GROUP_EDITOR_H
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:58
Manage graphics group configurations in a Rom.
void SetSelectedSpriteset(uint8_t spriteset)
void SetSelectedRoomset(uint8_t roomset)
void SetSelectedBlockset(uint8_t blockset)
void DrawSpritesetViewer(bool sheet_only=false)
void DrawBlocksetViewer(bool sheet_only=false)
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a canvas for drawing and manipulating graphics.
Definition canvas.h:37
Editors are the view controllers for the application.
Main namespace for the application.
Definition controller.cc:12