1#ifndef YAZE_APP_CORE_CONTROLLER_H
2#define YAZE_APP_CORE_CONTROLLER_H
8#include "absl/status/status.h"
13#include "imgui/backends/imgui_impl_sdl2.h"
14#include "imgui/backends/imgui_impl_sdlrenderer2.h"
15#include "imgui/imconfig.h"
16#include "imgui/imgui.h"
18int main(
int argc,
char **argv);
33 absl::Status
OnEntry(std::string filename =
"");
59 friend int ::main(
int argc,
char **argv);
Main controller for the application.
SDL_AudioDeviceID audio_device_
void SetupScreen(std::string filename="")
absl::Status CreateGuiContext()
editor::EditorManager editor_manager_
absl::Status LoadFontFamilies() const
absl::Status LoadAudioDevice()
std::shared_ptr< SDL_Window > window_
absl::Status OnTestLoad()
void set_active(bool active)
auto window() -> SDL_Window *
absl::Status OnEntry(std::string filename="")
absl::Status LoadConfigFiles()
editor::Editor * test_editor_
auto renderer() -> SDL_Renderer *
absl::Status CreateRenderer()
auto editor_manager() -> editor::EditorManager &
void init_test_editor(editor::Editor *editor)
std::shared_ptr< int16_t > audio_buffer_
absl::Status CreateWindow()
A class to manage experimental feature flags.
auto renderer() -> SDL_Renderer *
static Renderer & GetInstance()
The EditorManager controls the main editor window and manages the various editor classes.
void SetupScreen(std::string filename="")
Interface for editor classes.
int main(int argc, char **argv)
Main entry point for the application.