|
@@ -14,11 +14,12 @@
|
|
|
using ls::atlantis::cycle::StatusCodeOk;
|
|
using ls::atlantis::cycle::StatusCodeOk;
|
|
|
using ls::atlantis::cycle::StatusCodeWindowApiLoadingFailed;
|
|
using ls::atlantis::cycle::StatusCodeWindowApiLoadingFailed;
|
|
|
using ls::atlantis::cycle::StatusCodeWindowCreationFailed;
|
|
using ls::atlantis::cycle::StatusCodeWindowCreationFailed;
|
|
|
|
|
+using ls::atlantis::glossary::WindowApiTypes;
|
|
|
using ls::atlantis::interfaces::AStatusCode;
|
|
using ls::atlantis::interfaces::AStatusCode;
|
|
|
using ls::atlantis::interfaces::ISdlApi;
|
|
using ls::atlantis::interfaces::ISdlApi;
|
|
|
-using ls::std::core::NullPointerArgumentEvaluator;
|
|
|
|
|
using ls::atlantis::window::SdlApi;
|
|
using ls::atlantis::window::SdlApi;
|
|
|
using ls::atlantis::window::SdlWindowApi;
|
|
using ls::atlantis::window::SdlWindowApi;
|
|
|
|
|
+using ls::std::core::NullPointerArgumentEvaluator;
|
|
|
using ::std::make_shared;
|
|
using ::std::make_shared;
|
|
|
using ::std::shared_ptr;
|
|
using ::std::shared_ptr;
|
|
|
|
|
|
|
@@ -27,7 +28,8 @@ SdlWindowApi::SdlWindowApi() : SdlWindowApi(make_shared<SdlApi>())
|
|
|
|
|
|
|
|
SdlWindowApi::SdlWindowApi(const shared_ptr<ISdlApi> &_sdlApi)
|
|
SdlWindowApi::SdlWindowApi(const shared_ptr<ISdlApi> &_sdlApi)
|
|
|
: sdlApi(_sdlApi),
|
|
: sdlApi(_sdlApi),
|
|
|
- window(nullptr, [this](SDL_Window *_window) { this->sdlApi->DestroyWindow(_window); })
|
|
|
|
|
|
|
+ window(nullptr, [this](SDL_Window *_window) { this->sdlApi->DestroyWindow(_window); }),
|
|
|
|
|
+ windowApiType(WindowApiTypes::SDL_WINDOW_API)
|
|
|
{
|
|
{
|
|
|
NullPointerArgumentEvaluator(_sdlApi).evaluate();
|
|
NullPointerArgumentEvaluator(_sdlApi).evaluate();
|
|
|
}
|
|
}
|
|
@@ -37,6 +39,11 @@ SdlWindowApi::~SdlWindowApi()
|
|
|
sdlApi->Quit();
|
|
sdlApi->Quit();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+WindowApiTypes SdlWindowApi::getWindowApiType()
|
|
|
|
|
+{
|
|
|
|
|
+ return this->windowApiType;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
shared_ptr<AStatusCode> SdlWindowApi::init()
|
|
shared_ptr<AStatusCode> SdlWindowApi::init()
|
|
|
{
|
|
{
|
|
|
shared_ptr<AStatusCode> statusCode = this->_initApi();
|
|
shared_ptr<AStatusCode> statusCode = this->_initApi();
|