housekeeping
This commit is contained in:
@@ -1,22 +1,21 @@
|
||||
#ifndef YAZE_APPLICATION_CORE_CONTROLLER_H
|
||||
#define YAZE_APPLICATION_CORE_CONTROLLER_H
|
||||
|
||||
#include <memory>
|
||||
#define SDL_MAIN_HANDLED
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#include "imgui/imgui.h"
|
||||
#include "imgui/imgui_internal.h"
|
||||
#include <memory>
|
||||
|
||||
#include "Events/Event.h"
|
||||
#include "Renderer.h"
|
||||
#include "Editor/Editor.h"
|
||||
#include "Window.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"
|
||||
|
||||
#include "Window.h"
|
||||
#include "Renderer.h"
|
||||
#include "Events/Event.h"
|
||||
#include "View/Editor.h"
|
||||
#include "View/Debug.h"
|
||||
|
||||
int main(int argc, char** argv);
|
||||
|
||||
namespace yaze {
|
||||
@@ -36,9 +35,8 @@ class Controller {
|
||||
void onExit();
|
||||
|
||||
private:
|
||||
Window window;
|
||||
Window window;
|
||||
Renderer renderer;
|
||||
View::Debug debug;
|
||||
View::Editor editor;
|
||||
bool active = false;
|
||||
void quit() { active = false; }
|
||||
|
||||
@@ -22,7 +22,7 @@ void Renderer::Create(SDL_Window* window) {
|
||||
|
||||
// Create the ImGui and ImPlot contexts
|
||||
ImGui::CreateContext();
|
||||
|
||||
|
||||
// Initialize ImGui for SDL
|
||||
ImGui_ImplSDL2_InitForSDLRenderer(window, renderer);
|
||||
ImGui_ImplSDLRenderer_Init(renderer);
|
||||
|
||||
Reference in New Issue
Block a user