Rearranging structure
This commit is contained in:
@@ -20,10 +20,14 @@ void Editor::UpdateScreen() {
|
||||
return;
|
||||
}
|
||||
DrawYazeMenu();
|
||||
|
||||
if (ImGui::BeginTabBar("##TabBar")) {
|
||||
DrawOverworldEditor();
|
||||
ImGui::EndTabBar();
|
||||
}
|
||||
|
||||
ImGui::ShowDemoWindow();
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
@@ -124,11 +128,11 @@ void Editor::DrawEditMenu() const {
|
||||
// 4) get the tiles32 data
|
||||
// 5) get the tiles16 data
|
||||
// 6) get the map32 data (they must be decompressed as well with a lz2 variant
|
||||
// not the same as gfx compression but pretty similar)
|
||||
// 7) get the gfx data of the map
|
||||
// not the same as gfx compression but pretty similar)
|
||||
// 7) get the gfx data of the map
|
||||
// yeah i forgot that one and load 4bpp in a pseudo vram and use that to
|
||||
// render tiles on screen
|
||||
// 8) try to render the tiles on the bitmap in black & white to start
|
||||
// 8) try to render the tiles on the bitmap in black & white to start
|
||||
// 9) get the palettes data and try to find how they're loaded in
|
||||
// the game that's a big puzzle to solve then 9 you'll have an overworld map
|
||||
// viewer, in less than few hours if are able to understand the data quickly
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "Data/Overworld.h"
|
||||
#include "ImGuiFileDialog/ImGuiFileDialog.h"
|
||||
#include "Utils/ROM.h"
|
||||
#include "imgui/backends/imgui_impl_sdl.h"
|
||||
@@ -26,6 +27,7 @@ class Editor {
|
||||
|
||||
void DrawOverworldEditor();
|
||||
|
||||
Data::Overworld overworld;
|
||||
Utils::ROM rom;
|
||||
};
|
||||
|
||||
@@ -1,17 +1,13 @@
|
||||
#ifndef YAZE_APPLICATION_UTILS_BITMAP_H
|
||||
#define YAZE_APPLICATION_UTILS_BITMAP_H
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
|
||||
namespace yaze {
|
||||
namespace Application {
|
||||
namespace Utils {
|
||||
class Bitmap {
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // namespace Utils
|
||||
} // namespace Application
|
||||
} // namespace yaze
|
||||
@@ -1,29 +0,0 @@
|
||||
#include "Debug.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace Application {
|
||||
namespace View {
|
||||
|
||||
void Debug::UpdateScreen() const
|
||||
{
|
||||
const ImGuiIO& io = ImGui::GetIO();
|
||||
ImGui::NewFrame();
|
||||
ImGui::SetNextWindowPos(ImVec2(0, 0));
|
||||
ImVec2 dimensions(io.DisplaySize.x, io.DisplaySize.y);
|
||||
ImGui::SetNextWindowSize(dimensions, ImGuiCond_Always);
|
||||
|
||||
|
||||
if (!ImGui::Begin("Main", nullptr, flags)) {
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::ShowDemoWindow();
|
||||
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
#ifndef YAZE_APPLICATION_DEBUG_DEBUG_H
|
||||
#define YAZE_APPLICATION_DEBUG_DEBUG_H
|
||||
|
||||
#include "imgui/backends/imgui_impl_sdl.h"
|
||||
#include "imgui/backends/imgui_impl_sdlrenderer.h"
|
||||
#include "imgui/imgui.h"
|
||||
#include "imgui/imgui_internal.h"
|
||||
#include "imgui/misc/cpp/imgui_stdlib.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace Application {
|
||||
namespace View {
|
||||
|
||||
class Debug {
|
||||
public:
|
||||
Debug()=default;
|
||||
void UpdateScreen() const;
|
||||
private:
|
||||
ImGuiWindowFlags flags =
|
||||
ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse |
|
||||
ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoScrollbar;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user