add platform enum to controller
This commit is contained in:
@@ -23,6 +23,8 @@ namespace yaze {
|
|||||||
namespace app {
|
namespace app {
|
||||||
namespace core {
|
namespace core {
|
||||||
|
|
||||||
|
enum class Platform { kUnknown, kMacOS, kiOS, kWindows, kLinux };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Main controller for the application.
|
* @brief Main controller for the application.
|
||||||
*
|
*
|
||||||
@@ -63,9 +65,11 @@ class Controller : public ExperimentFlags {
|
|||||||
friend int ::main(int argc, char **argv);
|
friend int ::main(int argc, char **argv);
|
||||||
|
|
||||||
bool active_;
|
bool active_;
|
||||||
|
Platform platform_;
|
||||||
|
editor::MasterEditor master_editor_;
|
||||||
|
|
||||||
int audio_frequency_ = 48000;
|
int audio_frequency_ = 48000;
|
||||||
int16_t *audio_buffer_;
|
int16_t *audio_buffer_;
|
||||||
editor::MasterEditor master_editor_;
|
|
||||||
SDL_AudioDeviceID audio_device_;
|
SDL_AudioDeviceID audio_device_;
|
||||||
std::shared_ptr<SDL_Window> window_;
|
std::shared_ptr<SDL_Window> window_;
|
||||||
std::shared_ptr<SDL_Renderer> renderer_;
|
std::shared_ptr<SDL_Renderer> renderer_;
|
||||||
@@ -75,4 +79,4 @@ class Controller : public ExperimentFlags {
|
|||||||
} // namespace app
|
} // namespace app
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|
||||||
#endif // YAZE_APP_CORE_CONTROLLER_H
|
#endif // YAZE_APP_CORE_CONTROLLER_H
|
||||||
|
|||||||
Reference in New Issue
Block a user