mirror of
https://github.com/slendidev/lunar.git
synced 2026-01-30 16:28:58 +02:00
Make the constructor and destructor of Application private
Application is a singleton now, no need to have it be constructed outside of the(). Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -24,9 +24,6 @@ namespace Lunar {
|
|||||||
struct VulkanRenderer;
|
struct VulkanRenderer;
|
||||||
|
|
||||||
struct Application {
|
struct Application {
|
||||||
Application();
|
|
||||||
~Application();
|
|
||||||
|
|
||||||
auto run() -> void;
|
auto run() -> void;
|
||||||
auto binary_directory() const -> std::filesystem::path;
|
auto binary_directory() const -> std::filesystem::path;
|
||||||
|
|
||||||
@@ -41,6 +38,9 @@ struct Application {
|
|||||||
static auto the() -> Application &;
|
static auto the() -> Application &;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Application();
|
||||||
|
~Application();
|
||||||
|
|
||||||
auto init_input() -> void;
|
auto init_input() -> void;
|
||||||
auto init_test_meshes() -> void;
|
auto init_test_meshes() -> void;
|
||||||
auto asset_directory() -> std::filesystem::path;
|
auto asset_directory() -> std::filesystem::path;
|
||||||
|
|||||||
Reference in New Issue
Block a user