yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_object_emulator_preview.h
Go to the documentation of this file.
1#ifndef YAZE_APP_GUI_WIDGETS_DUNGEON_OBJECT_EMULATOR_PREVIEW_H_
2#define YAZE_APP_GUI_WIDGETS_DUNGEON_OBJECT_EMULATOR_PREVIEW_H_
3
4#include "app/emu/snes.h"
5#include "app/rom.h"
6
7namespace yaze {
8namespace gfx {
9class IRenderer;
10} // namespace gfx
11}
12
13namespace yaze {
14namespace gui {
15
17 public:
20
21 void Initialize(gfx::IRenderer* renderer, Rom* rom);
22 void Render();
23
24 private:
25 void RenderControls();
27
29 Rom* rom_ = nullptr;
30 std::unique_ptr<emu::Snes> snes_instance_;
31 void* object_texture_ = nullptr;
32
33 int object_id_ = 0;
34 int room_id_ = 0;
35 int object_x_ = 16;
36 int object_y_ = 16;
37 bool show_window_ = true;
38
39 // Debug info
41 std::string last_error_;
42};
43
44} // namespace gui
45} // namespace yaze
46
47#endif // YAZE_APP_GUI_WIDGETS_DUNGEON_OBJECT_EMULATOR_PREVIEW_H_
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:71
Defines an abstract interface for all rendering operations.
Definition irenderer.h:35
void Initialize(gfx::IRenderer *renderer, Rom *rom)
Main namespace for the application.