-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding WindowInstance and MacOSInstance
- Loading branch information
Showing
13 changed files
with
227 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
// This file is a part of Akel | ||
// Authors : @kbz_8 | ||
// Created : 03/02/2024 | ||
// Updated : 03/02/2024 | ||
// Updated : 04/02/2024 | ||
|
||
#ifndef __AK_DRIVERS_MACOS_INSTANCE__ | ||
#define __AK_DRIVERS_MACOS_INSTANCE__ | ||
|
||
#include <Drivers/MacOS/PreCompiled.h> | ||
#include <Core/OS/OSInstance.h> | ||
|
||
namespace Ak | ||
{ | ||
class AK_MACOS_API MacOSInstance final : public OSInstance | ||
{ | ||
public: | ||
void Init() override; | ||
void Shutdown() override; | ||
|
||
std::filesystem::path GetExecutablePath() override; | ||
std::filesystem::path GetCurrentWorkingDirectoryPath() override; | ||
bool OpenURL([[maybe_unused]] const std::string& url) override; | ||
void Delay(std::uint32_t us) override; | ||
|
||
bool SetTitleBarColor(Vec4f color, bool dark = true) override; | ||
|
||
OSInstance& Get() override; | ||
|
||
private: | ||
MacOSInstance() = default; | ||
~MacOSInstance() override = default; | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
// This file is a part of Akel | ||
// Authors : @kbz_8 | ||
// Created : 02/02/2024 | ||
// Updated : 03/02/2024 | ||
// Updated : 04/02/2024 | ||
|
||
#ifndef __AK_DRIVERS_UNIX_PRE_COMPILED_HEADER__ | ||
#define __AK_DRIVERS_UNIX_PRE_COMPILED_HEADER__ | ||
|
||
#include <Core/CompilationProfile.h> | ||
#include <Drivers/Unix/Unix.h> | ||
#include <ctime> | ||
#include <unistd.h> | ||
#ifdef AK_PLAT_UNIX | ||
#include <unistd.h> | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
// This file is a part of Akel | ||
// Authors : @kbz_8 | ||
// Created : 03/02/2024 | ||
// Updated : 03/02/2024 | ||
// Updated : 04/02/2024 | ||
|
||
#ifndef __AK_DRIVERS_WINDOWS_INSTANCE__ | ||
#define __AK_DRIVERS_WINDOWS_INSTANCE__ | ||
|
||
#include <Drivers/Windows/PreCompiled.h> | ||
#include <Core/OS/OSInstance.h> | ||
|
||
namespace Ak | ||
{ | ||
class AK_WINDOWS_API WindowsInstance final : public OSInstance | ||
{ | ||
public: | ||
void Init() override; | ||
void Shutdown() override; | ||
|
||
std::filesystem::path GetExecutablePath() override; | ||
std::filesystem::path GetCurrentWorkingDirectoryPath() override; | ||
bool OpenURL(const std::string& url) override; | ||
void Delay(std::uint32_t us) override; | ||
|
||
bool SetTitleBarColor(Vec4f color, bool dark = true) override; | ||
|
||
OSInstance& Get() override; | ||
|
||
private: | ||
WindowsInstance() = default; | ||
~WindowsInstance() = default; | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.