[DEBUG] correct buid of sample
This commit is contained in:
parent
b41fbb70ac
commit
4a80003857
@ -17,43 +17,44 @@
|
|||||||
#include <ewol/widget/Manager.hpp>
|
#include <ewol/widget/Manager.hpp>
|
||||||
#include <ewol/context/Context.hpp>
|
#include <ewol/context/Context.hpp>
|
||||||
|
|
||||||
|
namespace appl {
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
void onCreate(ewol::Context& _context) override {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||||
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
etk::String tmpppp = _context.getCmd().get(iii);
|
etk::String tmpppp = _context.getCmd().get(iii);
|
||||||
if ( tmpppp == "-h"
|
if ( tmpppp == "-h"
|
||||||
|| tmpppp == "--help") {
|
|| tmpppp == "--help") {
|
||||||
APPL_INFO(" -h/--help display this help" );
|
APPL_INFO(" -h/--help display this help" );
|
||||||
exit(0);
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// TODO : Remove this : Move if in the windows properties
|
||||||
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
|
// select internal data for font ...
|
||||||
|
_context.getFontDefault().setUseExternal(true);
|
||||||
|
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
||||||
|
|
||||||
|
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
|
// create the specific windows
|
||||||
|
_context.setWindows(basicWindows);
|
||||||
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
|
||||||
_context.setSize(vec2(800, 600));
|
|
||||||
|
|
||||||
// select internal data for font ...
|
void onStart(ewol::Context& _context) override {
|
||||||
_context.getFontDefault().setUseExternal(true);
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
||||||
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
}
|
||||||
// create the specific windows
|
void onStop(ewol::Context& _context) override {
|
||||||
_context.setWindows(basicWindows);
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
||||||
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
// nothing to do ...
|
||||||
}
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
void onStart(ewol::Context& _context) override {
|
};
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
}
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
void onStop(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
||||||
@ -62,7 +63,7 @@ class MainApplication : public ewol::context::Application {
|
|||||||
*/
|
*/
|
||||||
int main(int _argc, const char *_argv[]) {
|
int main(int _argc, const char *_argv[]) {
|
||||||
// second possibility
|
// second possibility
|
||||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,44 +17,44 @@
|
|||||||
#include <ewol/widget/Manager.hpp>
|
#include <ewol/widget/Manager.hpp>
|
||||||
#include <ewol/context/Context.hpp>
|
#include <ewol/context/Context.hpp>
|
||||||
|
|
||||||
|
namespace appl {
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
void onCreate(ewol::Context& _context) override {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||||
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
etk::String tmpppp = _context.getCmd().get(iii);
|
etk::String tmpppp = _context.getCmd().get(iii);
|
||||||
if ( tmpppp == "-h"
|
if ( tmpppp == "-h"
|
||||||
|| tmpppp == "--help") {
|
|| tmpppp == "--help") {
|
||||||
APPL_INFO(" -h/--help display this help" );
|
APPL_INFO(" -h/--help display this help" );
|
||||||
exit(0);
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// TODO : Remove this : Move if in the windows properties
|
||||||
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
|
// select internal data for font ...
|
||||||
|
_context.getFontDefault().setUseExternal(true);
|
||||||
|
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
||||||
|
|
||||||
|
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
|
// create the specific windows
|
||||||
|
_context.setWindows(basicWindows);
|
||||||
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
|
||||||
_context.setSize(vec2(800, 600));
|
|
||||||
|
|
||||||
// select internal data for font ...
|
|
||||||
_context.getFontDefault().setUseExternal(true);
|
|
||||||
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
|
||||||
|
|
||||||
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
|
||||||
// create the specific windows
|
|
||||||
_context.setWindows(basicWindows);
|
|
||||||
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
|
|
||||||
void onStart(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
void onStop(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
void onStart(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
void onStop(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
||||||
* @param std IO
|
* @param std IO
|
||||||
@ -62,7 +62,7 @@ class MainApplication : public ewol::context::Application {
|
|||||||
*/
|
*/
|
||||||
int main(int _argc, const char *_argv[]) {
|
int main(int _argc, const char *_argv[]) {
|
||||||
// second possibility
|
// second possibility
|
||||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,44 +17,44 @@
|
|||||||
#include <ewol/widget/Manager.hpp>
|
#include <ewol/widget/Manager.hpp>
|
||||||
#include <ewol/context/Context.hpp>
|
#include <ewol/context/Context.hpp>
|
||||||
|
|
||||||
|
namespace appl {
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
void onCreate(ewol::Context& _context) override {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||||
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
etk::String tmpppp = _context.getCmd().get(iii);
|
etk::String tmpppp = _context.getCmd().get(iii);
|
||||||
if ( tmpppp == "-h"
|
if ( tmpppp == "-h"
|
||||||
|| tmpppp == "--help") {
|
|| tmpppp == "--help") {
|
||||||
APPL_INFO(" -h/--help display this help" );
|
APPL_INFO(" -h/--help display this help" );
|
||||||
exit(0);
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// TODO : Remove this : Move if in the windows properties
|
||||||
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
|
// select internal data for font ...
|
||||||
|
_context.getFontDefault().setUseExternal(true);
|
||||||
|
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
||||||
|
|
||||||
|
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
|
// create the specific windows
|
||||||
|
_context.setWindows(basicWindows);
|
||||||
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
|
||||||
_context.setSize(vec2(800, 600));
|
|
||||||
|
|
||||||
// select internal data for font ...
|
|
||||||
_context.getFontDefault().setUseExternal(true);
|
|
||||||
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
|
||||||
|
|
||||||
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
|
||||||
// create the specific windows
|
|
||||||
_context.setWindows(basicWindows);
|
|
||||||
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
|
|
||||||
void onStart(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
void onStop(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
void onStart(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
void onStop(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
||||||
* @param std IO
|
* @param std IO
|
||||||
@ -62,7 +62,7 @@ class MainApplication : public ewol::context::Application {
|
|||||||
*/
|
*/
|
||||||
int main(int _argc, const char *_argv[]) {
|
int main(int _argc, const char *_argv[]) {
|
||||||
// second possibility
|
// second possibility
|
||||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,52 +17,51 @@
|
|||||||
#include <ewol/widget/Manager.hpp>
|
#include <ewol/widget/Manager.hpp>
|
||||||
#include <ewol/context/Context.hpp>
|
#include <ewol/context/Context.hpp>
|
||||||
|
|
||||||
|
namespace appl {
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
void onCreate(ewol::Context& _context) override {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||||
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
etk::String tmpppp = _context.getCmd().get(iii);
|
etk::String tmpppp = _context.getCmd().get(iii);
|
||||||
if ( tmpppp == "-h"
|
if ( tmpppp == "-h"
|
||||||
|| tmpppp == "--help") {
|
|| tmpppp == "--help") {
|
||||||
APPL_INFO(" -h/--help display this help" );
|
APPL_INFO(" -h/--help display this help" );
|
||||||
exit(0);
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// TODO : Remove this : Move if in the windows properties
|
||||||
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
|
// select internal data for font ...
|
||||||
|
_context.getFontDefault().setUseExternal(true);
|
||||||
|
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
||||||
|
|
||||||
|
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
|
// create the specific windows
|
||||||
|
_context.setWindows(basicWindows);
|
||||||
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
|
||||||
_context.setSize(vec2(800, 600));
|
|
||||||
|
|
||||||
// select internal data for font ...
|
|
||||||
_context.getFontDefault().setUseExternal(true);
|
|
||||||
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
|
||||||
|
|
||||||
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
|
||||||
// create the specific windows
|
|
||||||
_context.setWindows(basicWindows);
|
|
||||||
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
|
|
||||||
void onStart(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
void onStop(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
void onStart(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
void onStop(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
||||||
* @param std IO
|
* @param std IO
|
||||||
* @return std IO
|
* @return std IO
|
||||||
*/
|
*/
|
||||||
int main(int _argc, const char *_argv[]) {
|
int main(int _argc, const char *_argv[]) {
|
||||||
// second possibility
|
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,59 +17,59 @@
|
|||||||
#include <ewol/widget/Manager.hpp>
|
#include <ewol/widget/Manager.hpp>
|
||||||
#include <ewol/context/Context.hpp>
|
#include <ewol/context/Context.hpp>
|
||||||
|
|
||||||
|
namespace appl {
|
||||||
|
class MainApplication : public ewol::context::Application {
|
||||||
|
public:
|
||||||
|
void onCreate(ewol::Context& _context) override {
|
||||||
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||||
|
|
||||||
class MainApplication : public ewol::context::Application {
|
// TODO : Remove this : Move if in the windows properties
|
||||||
public:
|
_context.setSize(vec2(800, 600));
|
||||||
void onCreate(ewol::Context& _context) override {
|
|
||||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
|
||||||
|
|
||||||
// TODO : Remove this : Move if in the windows properties
|
// select internal data for font ...
|
||||||
_context.setSize(vec2(800, 600));
|
_context.getFontDefault().setUseExternal(true);
|
||||||
|
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
||||||
|
|
||||||
// select internal data for font ...
|
ememory::SharedPtr<appl::Windows> basicWindows = appl::Windows::create();
|
||||||
_context.getFontDefault().setUseExternal(true);
|
|
||||||
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
|
||||||
|
|
||||||
ememory::SharedPtr<appl::Windows> basicWindows = appl::Windows::create();
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
|
etk::String tmpppp = _context.getCmd().get(iii);
|
||||||
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
if ( tmpppp == "-h"
|
||||||
etk::String tmpppp = _context.getCmd().get(iii);
|
|| tmpppp == "--help") {
|
||||||
if ( tmpppp == "-h"
|
APPL_PRINT(" -h/--help display this help");
|
||||||
|| tmpppp == "--help") {
|
APPL_PRINT(" --mesh=XXX Load this mesh file");
|
||||||
APPL_PRINT(" -h/--help display this help");
|
APPL_PRINT(" --debug-normal Display normal");
|
||||||
APPL_PRINT(" --mesh=XXX Load this mesh file");
|
APPL_PRINT(" --debug-AABB Display AABB box");
|
||||||
APPL_PRINT(" --debug-normal Display normal");
|
APPL_PRINT(" --debug-shape Display Shape");
|
||||||
APPL_PRINT(" --debug-AABB Display AABB box");
|
exit(0);
|
||||||
APPL_PRINT(" --debug-shape Display Shape");
|
} else if (etk::start_with(tmpppp, "--mesh=") == true) {
|
||||||
exit(0);
|
etk::String fileName = &tmpppp[7];
|
||||||
} else if (etk::start_with(tmpppp, "--mesh=") == true) {
|
basicWindows->setMeshName(fileName);
|
||||||
etk::String fileName = &tmpppp[7];
|
} else if (tmpppp == "--debug-normal") {
|
||||||
basicWindows->setMeshName(fileName);
|
basicWindows->setDebugNormal();
|
||||||
} else if (tmpppp == "--debug-normal") {
|
} else if (tmpppp == "--debug-AABB") {
|
||||||
basicWindows->setDebugNormal();
|
basicWindows->setDebugAABB();
|
||||||
} else if (tmpppp == "--debug-AABB") {
|
} else if (tmpppp == "--debug-shape") {
|
||||||
basicWindows->setDebugAABB();
|
basicWindows->setDebugShape();
|
||||||
} else if (tmpppp == "--debug-shape") {
|
}
|
||||||
basicWindows->setDebugShape();
|
|
||||||
}
|
}
|
||||||
|
// create the specific windows
|
||||||
|
_context.setWindows(basicWindows);
|
||||||
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
// create the specific windows
|
|
||||||
_context.setWindows(basicWindows);
|
|
||||||
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
|
|
||||||
void onStart(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
void onStop(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
void onStart(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
void onStop(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
||||||
* @param std IO
|
* @param std IO
|
||||||
@ -77,7 +77,7 @@ class MainApplication : public ewol::context::Application {
|
|||||||
*/
|
*/
|
||||||
int main(int _argc, const char *_argv[]) {
|
int main(int _argc, const char *_argv[]) {
|
||||||
// second possibility
|
// second possibility
|
||||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,44 +17,44 @@
|
|||||||
#include <ewol/widget/Manager.hpp>
|
#include <ewol/widget/Manager.hpp>
|
||||||
#include <ewol/context/Context.hpp>
|
#include <ewol/context/Context.hpp>
|
||||||
|
|
||||||
|
namespace appl {
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
void onCreate(ewol::Context& _context) override {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||||
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
etk::String tmpppp = _context.getCmd().get(iii);
|
etk::String tmpppp = _context.getCmd().get(iii);
|
||||||
if ( tmpppp == "-h"
|
if ( tmpppp == "-h"
|
||||||
|| tmpppp == "--help") {
|
|| tmpppp == "--help") {
|
||||||
APPL_INFO(" -h/--help display this help" );
|
APPL_INFO(" -h/--help display this help" );
|
||||||
exit(0);
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// TODO : Remove this : Move if in the windows properties
|
||||||
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
|
// select internal data for font ...
|
||||||
|
_context.getFontDefault().setUseExternal(true);
|
||||||
|
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
||||||
|
|
||||||
|
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
|
// create the specific windows
|
||||||
|
_context.setWindows(basicWindows);
|
||||||
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
|
||||||
_context.setSize(vec2(800, 600));
|
|
||||||
|
|
||||||
// select internal data for font ...
|
|
||||||
_context.getFontDefault().setUseExternal(true);
|
|
||||||
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
|
||||||
|
|
||||||
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
|
||||||
// create the specific windows
|
|
||||||
_context.setWindows(basicWindows);
|
|
||||||
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
|
|
||||||
void onStart(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
void onStop(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
void onStart(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
void onStop(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
||||||
* @param std IO
|
* @param std IO
|
||||||
@ -62,7 +62,7 @@ class MainApplication : public ewol::context::Application {
|
|||||||
*/
|
*/
|
||||||
int main(int _argc, const char *_argv[]) {
|
int main(int _argc, const char *_argv[]) {
|
||||||
// second possibility
|
// second possibility
|
||||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,44 +17,44 @@
|
|||||||
#include <ewol/widget/Manager.hpp>
|
#include <ewol/widget/Manager.hpp>
|
||||||
#include <ewol/context/Context.hpp>
|
#include <ewol/context/Context.hpp>
|
||||||
|
|
||||||
|
namespace appl {
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
void onCreate(ewol::Context& _context) override {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||||
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
etk::String tmpppp = _context.getCmd().get(iii);
|
etk::String tmpppp = _context.getCmd().get(iii);
|
||||||
if ( tmpppp == "-h"
|
if ( tmpppp == "-h"
|
||||||
|| tmpppp == "--help") {
|
|| tmpppp == "--help") {
|
||||||
APPL_INFO(" -h/--help display this help" );
|
APPL_INFO(" -h/--help display this help" );
|
||||||
exit(0);
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// TODO : Remove this : Move if in the windows properties
|
||||||
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
|
// select internal data for font ...
|
||||||
|
_context.getFontDefault().setUseExternal(true);
|
||||||
|
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
||||||
|
|
||||||
|
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
|
// create the specific windows
|
||||||
|
_context.setWindows(basicWindows);
|
||||||
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
|
||||||
_context.setSize(vec2(800, 600));
|
|
||||||
|
|
||||||
// select internal data for font ...
|
|
||||||
_context.getFontDefault().setUseExternal(true);
|
|
||||||
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
|
|
||||||
|
|
||||||
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
|
||||||
// create the specific windows
|
|
||||||
_context.setWindows(basicWindows);
|
|
||||||
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
|
|
||||||
void onStart(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
void onStop(ewol::Context& _context) override {
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
|
||||||
// nothing to do ...
|
|
||||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
void onStart(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
void onStop(ewol::Context& _context) override {
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
|
||||||
|
// nothing to do ...
|
||||||
|
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
||||||
* @param std IO
|
* @param std IO
|
||||||
@ -62,7 +62,7 @@ class MainApplication : public ewol::context::Application {
|
|||||||
*/
|
*/
|
||||||
int main(int _argc, const char *_argv[]) {
|
int main(int _argc, const char *_argv[]) {
|
||||||
// second possibility
|
// second possibility
|
||||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user