common e2d_main

This commit is contained in:
2018-09-27 18:49:11 +07:00
parent a8548258d9
commit f639c6605e
7 changed files with 11 additions and 45 deletions

View File

@@ -10,5 +10,6 @@
#include "configs.hpp"
#include "macros.hpp"
#include "main.hpp"
#include "stdex.hpp"
#include "types.hpp"

View File

@@ -4,12 +4,8 @@
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#include <enduro2d/base/_all.hpp>
#pragma once
#if defined(E2D_PLATFORM) && E2D_PLATFORM == E2D_PLATFORM_LINUX
#include "types.hpp"
int main() {
return 0;
}
#endif
e2d::i32 e2d_main();

View File

@@ -7,7 +7,7 @@
#include "../common.hpp"
using namespace e2d;
int main() {
int e2d_main() {
input& i = modules::initialize<input>();
debug& d = modules::initialize<debug>();
window& w = modules::initialize<window>(
@@ -27,4 +27,5 @@ int main() {
w.swap_buffers();
window::frame_tick();
}
return 0;
}

View File

@@ -7,7 +7,7 @@
#include "../common.hpp"
using namespace e2d;
int main() {
int e2d_main() {
input& i = modules::initialize<input>();
debug& d = modules::initialize<debug>();
window& w = modules::initialize<window>(
@@ -27,4 +27,5 @@ int main() {
w.swap_buffers();
window::frame_tick();
}
return 0;
}

View File

@@ -6,10 +6,7 @@
#include <enduro2d/base/_all.hpp>
#if defined(E2D_PLATFORM) && E2D_PLATFORM == E2D_PLATFORM_IOS
int main() {
return 0;
int main(int argc, char *argv[]) {
E2D_UNUSED(argc, argv);
return e2d_main();
}
#endif

View File

@@ -1,15 +0,0 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#include <enduro2d/base/_all.hpp>
#if defined(E2D_PLATFORM) && E2D_PLATFORM == E2D_PLATFORM_MACOSX
int main() {
return 0;
}
#endif

View File

@@ -1,15 +0,0 @@
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018 Matvey Cherevko
******************************************************************************/
#include <enduro2d/base/_all.hpp>
#if defined(E2D_PLATFORM) && E2D_PLATFORM == E2D_PLATFORM_WINDOWS
int main() {
return 0;
}
#endif