[DEV] set back the test software
This commit is contained in:
parent
9450ebc574
commit
05940a19ab
15
lutinParseSubFolders.txt
Normal file
15
lutinParseSubFolders.txt
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
sample/Accelerometer
|
||||||
|
sample/CameraPosition
|
||||||
|
sample/Collision
|
||||||
|
sample/DoubleView
|
||||||
|
sample/GameFPS
|
||||||
|
sample/GamePad
|
||||||
|
sample/GameRacer
|
||||||
|
sample/GameSpaceSimulation
|
||||||
|
sample/Light
|
||||||
|
sample/Material
|
||||||
|
sample/MeshCreator
|
||||||
|
sample/Particle
|
||||||
|
sample/RayTest
|
||||||
|
sample/Script
|
||||||
|
sample/StereoVision
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
appl::Windows::Windows() {
|
appl::Windows::Windows() {
|
||||||
addObjectType("appl::Windows");
|
addObjectType("appl::Windows");
|
||||||
|
propertyTitle.setDirectCheck("example ege : CameraPosirion");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -66,21 +67,21 @@ static std::shared_ptr<ege::resource::Mesh> createViewBoxStar() {
|
|||||||
|
|
||||||
void appl::Windows::init() {
|
void appl::Windows::init() {
|
||||||
ewol::widget::Windows::init();
|
ewol::widget::Windows::init();
|
||||||
setTitle("example ege : CameraPosirion");
|
|
||||||
|
|
||||||
getObjectManager().periodicCall.bind(shared_from_this(), &appl::Windows::onCallbackPeriodicUpdateCamera);
|
getObjectManager().periodicCall.connect(shared_from_this(), &appl::Windows::onCallbackPeriodicUpdateCamera);
|
||||||
|
|
||||||
m_env = ege::Environement::create();
|
m_env = ege::Environement::create();
|
||||||
// Create basic Camera
|
// Create basic Camera
|
||||||
m_camera = std::make_shared<ege::camera::View>(vec3(30,30,-100), vec3(0,0,0));
|
m_camera = std::make_shared<ege::camera::View>(vec3(30,30,-100), vec3(0,0,0));
|
||||||
m_env->addCamera("basic", m_camera);
|
m_env->addCamera("basic", m_camera);
|
||||||
|
|
||||||
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create(m_env);
|
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create();
|
||||||
if (tmpWidget == nullptr) {
|
if (tmpWidget == nullptr) {
|
||||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
tmpWidget->setExpand(bvec2(true,true));
|
tmpWidget->setEnv(m_env);
|
||||||
tmpWidget->setFill(bvec2(true,true));
|
tmpWidget->propertyExpand.set(bvec2(true,true));
|
||||||
|
tmpWidget->propertyFill.set(bvec2(true,true));
|
||||||
tmpWidget->setCamera("basic");
|
tmpWidget->setCamera("basic");
|
||||||
setSubWidget(tmpWidget);
|
setSubWidget(tmpWidget);
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,16 @@
|
|||||||
|
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
bool init(ewol::Context& _context, size_t _initId) {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Init APPL (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ") (BEGIN)");
|
||||||
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
|
std::string tmpppp = _context.getCmd().get(iii);
|
||||||
|
if ( tmpppp == "-h"
|
||||||
|
|| tmpppp == "--help") {
|
||||||
|
APPL_INFO(" -h/--help display this help" );
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
// TODO : Remove this : Move if in the windows properties
|
||||||
_context.setSize(vec2(800, 600));
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
@ -33,14 +40,18 @@ class MainApplication : public ewol::context::Application {
|
|||||||
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
// create the specific windows
|
// create the specific windows
|
||||||
_context.setWindows(basicWindows);
|
_context.setWindows(basicWindows);
|
||||||
APPL_INFO("==> Init APPL (END)");
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void unInit(ewol::Context& _context) {
|
void onStart(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Un-Init APPL (START)");
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
// nothing to do ...
|
// nothing to do ...
|
||||||
APPL_INFO("==> Un-Init APPL (END)");
|
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)");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,6 +28,9 @@ def get_compagny_name():
|
|||||||
def get_maintainer():
|
def get_maintainer():
|
||||||
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
|
def get_version():
|
||||||
|
return [0,1]
|
||||||
|
|
||||||
def create(target, module_name):
|
def create(target, module_name):
|
||||||
# module name is 'edn' and type binary.
|
# module name is 'edn' and type binary.
|
||||||
my_module = module.Module(__file__, module_name, get_type())
|
my_module = module.Module(__file__, module_name, get_type())
|
||||||
@ -44,8 +47,12 @@ def create(target, module_name):
|
|||||||
|
|
||||||
my_module.copy_path("data/*")
|
my_module.copy_path("data/*")
|
||||||
|
|
||||||
# set the package properties :
|
my_module.compile_flags('c++', [
|
||||||
my_module.pkg_set("VERSION", "0.0.0")
|
"-DPROJECT_NAME=\"\\\"" + my_module.name + "\\\"\"",
|
||||||
|
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
|
||||||
|
])
|
||||||
|
|
||||||
|
# set the package properties:
|
||||||
my_module.pkg_set("VERSION_CODE", "0")
|
my_module.pkg_set("VERSION_CODE", "0")
|
||||||
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
||||||
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
||||||
@ -54,7 +61,5 @@ def create(target, module_name):
|
|||||||
my_module.pkg_set("PRIORITY", "optional")
|
my_module.pkg_set("PRIORITY", "optional")
|
||||||
my_module.pkg_set("DESCRIPTION", get_desc())
|
my_module.pkg_set("DESCRIPTION", get_desc())
|
||||||
my_module.pkg_set("NAME", get_name())
|
my_module.pkg_set("NAME", get_name())
|
||||||
|
|
||||||
# add the currrent module at the
|
|
||||||
return my_module
|
return my_module
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
appl::Windows::Windows() {
|
appl::Windows::Windows() {
|
||||||
addObjectType("appl::Windows");
|
addObjectType("appl::Windows");
|
||||||
|
propertyTitle.setDirectCheck("example ege : DoubleView");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -69,9 +70,8 @@ static std::shared_ptr<ege::resource::Mesh> createViewBoxStar() {
|
|||||||
|
|
||||||
void appl::Windows::init() {
|
void appl::Windows::init() {
|
||||||
ewol::widget::Windows::init();
|
ewol::widget::Windows::init();
|
||||||
setTitle("example ege : DoubleView");
|
|
||||||
|
|
||||||
getObjectManager().periodicCall.bind(shared_from_this(), &appl::Windows::onCallbackPeriodicCheckCollision);
|
getObjectManager().periodicCall.connect(shared_from_this(), &appl::Windows::onCallbackPeriodicCheckCollision);
|
||||||
|
|
||||||
m_env = ege::Environement::create();
|
m_env = ege::Environement::create();
|
||||||
// Create basic Camera
|
// Create basic Camera
|
||||||
@ -79,12 +79,13 @@ void appl::Windows::init() {
|
|||||||
m_camera->setEye(vec3(100*std::sin(m_angleTetha),100*std::cos(m_angleTetha),40*std::cos(m_anglePsy)));
|
m_camera->setEye(vec3(100*std::sin(m_angleTetha),100*std::cos(m_angleTetha),40*std::cos(m_anglePsy)));
|
||||||
m_env->addCamera("basic", m_camera);
|
m_env->addCamera("basic", m_camera);
|
||||||
|
|
||||||
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create(m_env);
|
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create();
|
||||||
if (tmpWidget == nullptr) {
|
if (tmpWidget == nullptr) {
|
||||||
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
tmpWidget->setExpand(bvec2(true,true));
|
tmpWidget->setEnv(m_env);
|
||||||
tmpWidget->setFill(bvec2(true,true));
|
tmpWidget->propertyExpand.set(bvec2(true,true));
|
||||||
|
tmpWidget->propertyFill.set(bvec2(true,true));
|
||||||
tmpWidget->setCamera("basic");
|
tmpWidget->setCamera("basic");
|
||||||
setSubWidget(tmpWidget);
|
setSubWidget(tmpWidget);
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,16 @@
|
|||||||
|
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
bool init(ewol::Context& _context, size_t _initId) {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Init APPL (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ") (BEGIN)");
|
||||||
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
|
std::string tmpppp = _context.getCmd().get(iii);
|
||||||
|
if ( tmpppp == "-h"
|
||||||
|
|| tmpppp == "--help") {
|
||||||
|
APPL_INFO(" -h/--help display this help" );
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
// TODO : Remove this : Move if in the windows properties
|
||||||
_context.setSize(vec2(800, 600));
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
@ -33,14 +40,18 @@ class MainApplication : public ewol::context::Application {
|
|||||||
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
// create the specific windows
|
// create the specific windows
|
||||||
_context.setWindows(basicWindows);
|
_context.setWindows(basicWindows);
|
||||||
APPL_INFO("==> Init APPL (END)");
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void unInit(ewol::Context& _context) {
|
void onStart(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Un-Init APPL (START)");
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
// nothing to do ...
|
// nothing to do ...
|
||||||
APPL_INFO("==> Un-Init APPL (END)");
|
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)");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,6 +28,9 @@ def get_compagny_name():
|
|||||||
def get_maintainer():
|
def get_maintainer():
|
||||||
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
|
def get_version():
|
||||||
|
return [0,1]
|
||||||
|
|
||||||
def create(target, module_name):
|
def create(target, module_name):
|
||||||
# module name is 'edn' and type binary.
|
# module name is 'edn' and type binary.
|
||||||
my_module = module.Module(__file__, module_name, get_type())
|
my_module = module.Module(__file__, module_name, get_type())
|
||||||
@ -44,8 +47,12 @@ def create(target, module_name):
|
|||||||
|
|
||||||
my_module.copy_path("data/*")
|
my_module.copy_path("data/*")
|
||||||
|
|
||||||
|
my_module.compile_flags('c++', [
|
||||||
|
"-DPROJECT_NAME=\"\\\"" + my_module.name + "\\\"\"",
|
||||||
|
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
|
||||||
|
])
|
||||||
|
|
||||||
# set the package properties :
|
# set the package properties :
|
||||||
my_module.pkg_set("VERSION", "0.0.0")
|
|
||||||
my_module.pkg_set("VERSION_CODE", "0")
|
my_module.pkg_set("VERSION_CODE", "0")
|
||||||
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
||||||
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
appl::Windows::Windows() {
|
appl::Windows::Windows() {
|
||||||
addObjectType("appl::Windows");
|
addObjectType("appl::Windows");
|
||||||
|
propertyTitle.setDirectCheck("example ege : DoubleView");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -69,7 +70,6 @@ static std::shared_ptr<ege::resource::Mesh> createViewBoxStar() {
|
|||||||
|
|
||||||
void appl::Windows::init() {
|
void appl::Windows::init() {
|
||||||
ewol::widget::Windows::init();
|
ewol::widget::Windows::init();
|
||||||
setTitle("example ege : DoubleView");
|
|
||||||
|
|
||||||
m_env = ege::Environement::create();
|
m_env = ege::Environement::create();
|
||||||
// Create basic Camera
|
// Create basic Camera
|
||||||
@ -86,40 +86,45 @@ void appl::Windows::init() {
|
|||||||
std::shared_ptr<ege::camera::View> camera4 = std::make_shared<ege::camera::View>(vec3(0,100,0), vec3(0,0,0));
|
std::shared_ptr<ege::camera::View> camera4 = std::make_shared<ege::camera::View>(vec3(0,100,0), vec3(0,0,0));
|
||||||
m_env->addCamera("left", camera4);
|
m_env->addCamera("left", camera4);
|
||||||
|
|
||||||
std::shared_ptr<ewol::widget::Sizer> tmpSizerVert = ewol::widget::Sizer::create(ewol::widget::Sizer::modeVert);
|
std::shared_ptr<ewol::widget::Sizer> tmpSizerVert = ewol::widget::Sizer::create();
|
||||||
if (tmpSizerVert == nullptr) {
|
if (tmpSizerVert == nullptr) {
|
||||||
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
|
tmpSizerVert->propertyMode.set(ewol::widget::Sizer::modeVert);
|
||||||
setSubWidget(tmpSizerVert);
|
setSubWidget(tmpSizerVert);
|
||||||
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create(m_env);
|
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create();
|
||||||
if (tmpWidget == nullptr) {
|
if (tmpWidget == nullptr) {
|
||||||
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
tmpWidget->setExpand(bvec2(true,true));
|
tmpWidget->setEnv(m_env);
|
||||||
tmpWidget->setFill(bvec2(true,true));
|
tmpWidget->propertyExpand.set(bvec2(true,true));
|
||||||
|
tmpWidget->propertyFill.set(bvec2(true,true));
|
||||||
tmpWidget->setCamera("basic");
|
tmpWidget->setCamera("basic");
|
||||||
tmpSizerVert->subWidgetAdd(tmpWidget);
|
tmpSizerVert->subWidgetAdd(tmpWidget);
|
||||||
}
|
}
|
||||||
std::shared_ptr<ewol::widget::Sizer> tmpSizerHori = ewol::widget::Sizer::create(ewol::widget::Sizer::modeHori);
|
std::shared_ptr<ewol::widget::Sizer> tmpSizerHori = ewol::widget::Sizer::create();
|
||||||
if (tmpSizerHori == nullptr) {
|
if (tmpSizerHori == nullptr) {
|
||||||
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
|
tmpSizerHori->propertyMode.set(ewol::widget::Sizer::modeHori);
|
||||||
tmpSizerVert->subWidgetAdd(tmpSizerHori);
|
tmpSizerVert->subWidgetAdd(tmpSizerHori);
|
||||||
tmpWidget = ege::widget::Scene::create(m_env);
|
tmpWidget = ege::widget::Scene::create();
|
||||||
if (tmpWidget == nullptr) {
|
if (tmpWidget == nullptr) {
|
||||||
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
tmpWidget->setExpand(bvec2(true,true));
|
tmpWidget->setEnv(m_env);
|
||||||
tmpWidget->setFill(bvec2(true,true));
|
tmpWidget->propertyExpand.set(bvec2(true,true));
|
||||||
|
tmpWidget->propertyFill.set(bvec2(true,true));
|
||||||
tmpWidget->setCamera("front");
|
tmpWidget->setCamera("front");
|
||||||
tmpSizerHori->subWidgetAdd(tmpWidget);
|
tmpSizerHori->subWidgetAdd(tmpWidget);
|
||||||
}
|
}
|
||||||
tmpWidget = ege::widget::Scene::create(m_env);
|
tmpWidget = ege::widget::Scene::create();
|
||||||
if (tmpWidget == nullptr) {
|
if (tmpWidget == nullptr) {
|
||||||
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
APPL_CRITICAL("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
tmpWidget->setExpand(bvec2(true,true));
|
tmpWidget->setEnv(m_env);
|
||||||
tmpWidget->setFill(bvec2(true,true));
|
tmpWidget->propertyExpand.set(bvec2(true,true));
|
||||||
|
tmpWidget->propertyFill.set(bvec2(true,true));
|
||||||
tmpWidget->setCamera("top");
|
tmpWidget->setCamera("top");
|
||||||
tmpSizerHori->subWidgetAdd(tmpWidget);
|
tmpSizerHori->subWidgetAdd(tmpWidget);
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,16 @@
|
|||||||
|
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
bool init(ewol::Context& _context, size_t _initId) {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Init APPL (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ") (BEGIN)");
|
||||||
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
|
std::string tmpppp = _context.getCmd().get(iii);
|
||||||
|
if ( tmpppp == "-h"
|
||||||
|
|| tmpppp == "--help") {
|
||||||
|
APPL_INFO(" -h/--help display this help" );
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
// TODO : Remove this : Move if in the windows properties
|
||||||
_context.setSize(vec2(800, 600));
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
@ -33,14 +40,18 @@ class MainApplication : public ewol::context::Application {
|
|||||||
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
// create the specific windows
|
// create the specific windows
|
||||||
_context.setWindows(basicWindows);
|
_context.setWindows(basicWindows);
|
||||||
APPL_INFO("==> Init APPL (END)");
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void unInit(ewol::Context& _context) {
|
void onStart(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Un-Init APPL (START)");
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
// nothing to do ...
|
// nothing to do ...
|
||||||
APPL_INFO("==> Un-Init APPL (END)");
|
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)");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,6 +28,9 @@ def get_compagny_name():
|
|||||||
def get_maintainer():
|
def get_maintainer():
|
||||||
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
|
def get_version():
|
||||||
|
return [0,1]
|
||||||
|
|
||||||
def create(target, module_name):
|
def create(target, module_name):
|
||||||
# module name is 'edn' and type binary.
|
# module name is 'edn' and type binary.
|
||||||
my_module = module.Module(__file__, module_name, get_type())
|
my_module = module.Module(__file__, module_name, get_type())
|
||||||
@ -44,8 +47,12 @@ def create(target, module_name):
|
|||||||
|
|
||||||
my_module.copy_path("data/*")
|
my_module.copy_path("data/*")
|
||||||
|
|
||||||
# set the package properties :
|
my_module.compile_flags('c++', [
|
||||||
my_module.pkg_set("VERSION", "0.0.0")
|
"-DPROJECT_NAME=\"\\\"" + my_module.name + "\\\"\"",
|
||||||
|
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
|
||||||
|
])
|
||||||
|
|
||||||
|
# set the package properties:
|
||||||
my_module.pkg_set("VERSION_CODE", "0")
|
my_module.pkg_set("VERSION_CODE", "0")
|
||||||
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
||||||
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
appl::Windows::Windows() {
|
appl::Windows::Windows() {
|
||||||
addObjectType("appl::Windows");
|
addObjectType("appl::Windows");
|
||||||
|
propertyTitle.setDirectCheck("example ege: MeshCreator");
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::shared_ptr<ege::resource::Mesh> createViewBoxStar() {
|
static std::shared_ptr<ege::resource::Mesh> createViewBoxStar() {
|
||||||
@ -78,21 +79,21 @@ static std::shared_ptr<ege::resource::Mesh> createMars() {
|
|||||||
|
|
||||||
void appl::Windows::init() {
|
void appl::Windows::init() {
|
||||||
ewol::widget::Windows::init();
|
ewol::widget::Windows::init();
|
||||||
setTitle("example ege : MeshCreator");
|
|
||||||
|
|
||||||
getObjectManager().periodicCall.bind(shared_from_this(), &appl::Windows::onCallbackPeriodicUpdateCamera);
|
getObjectManager().periodicCall.connect(shared_from_this(), &appl::Windows::onCallbackPeriodicUpdateCamera);
|
||||||
|
|
||||||
m_env = ege::Environement::create();
|
m_env = ege::Environement::create();
|
||||||
// Create basic Camera
|
// Create basic Camera
|
||||||
m_camera = std::make_shared<ege::camera::View>(vec3(30,30,-100), vec3(50,0,0));
|
m_camera = std::make_shared<ege::camera::View>(vec3(30,30,-100), vec3(50,0,0));
|
||||||
m_env->addCamera("basic", m_camera);
|
m_env->addCamera("basic", m_camera);
|
||||||
|
|
||||||
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create(m_env);
|
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create();
|
||||||
if (tmpWidget == nullptr) {
|
if (tmpWidget == nullptr) {
|
||||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
tmpWidget->setExpand(bvec2(true,true));
|
tmpWidget->setEnv(m_env);
|
||||||
tmpWidget->setFill(bvec2(true,true));
|
tmpWidget->propertyExpand.set(bvec2(true,true));
|
||||||
|
tmpWidget->propertyFill.set(bvec2(true,true));
|
||||||
tmpWidget->setCamera("basic");
|
tmpWidget->setCamera("basic");
|
||||||
setSubWidget(tmpWidget);
|
setSubWidget(tmpWidget);
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,16 @@
|
|||||||
|
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
bool init(ewol::Context& _context, size_t _initId) {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Init APPL (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ") (BEGIN)");
|
||||||
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
|
std::string tmpppp = _context.getCmd().get(iii);
|
||||||
|
if ( tmpppp == "-h"
|
||||||
|
|| tmpppp == "--help") {
|
||||||
|
APPL_INFO(" -h/--help display this help" );
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
// TODO : Remove this : Move if in the windows properties
|
||||||
_context.setSize(vec2(800, 600));
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
@ -33,14 +40,18 @@ class MainApplication : public ewol::context::Application {
|
|||||||
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
// create the specific windows
|
// create the specific windows
|
||||||
_context.setWindows(basicWindows);
|
_context.setWindows(basicWindows);
|
||||||
APPL_INFO("==> Init APPL (END)");
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void unInit(ewol::Context& _context) {
|
void onStart(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Un-Init APPL (START)");
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
// nothing to do ...
|
// nothing to do ...
|
||||||
APPL_INFO("==> Un-Init APPL (END)");
|
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)");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,6 +28,9 @@ def get_compagny_name():
|
|||||||
def get_maintainer():
|
def get_maintainer():
|
||||||
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
|
def get_version():
|
||||||
|
return [0,1]
|
||||||
|
|
||||||
def create(target, module_name):
|
def create(target, module_name):
|
||||||
# module name is 'edn' and type binary.
|
# module name is 'edn' and type binary.
|
||||||
my_module = module.Module(__file__, module_name, get_type())
|
my_module = module.Module(__file__, module_name, get_type())
|
||||||
@ -44,8 +47,12 @@ def create(target, module_name):
|
|||||||
|
|
||||||
my_module.copy_path("data/*")
|
my_module.copy_path("data/*")
|
||||||
|
|
||||||
# set the package properties :
|
my_module.compile_flags('c++', [
|
||||||
my_module.pkg_set("VERSION", "0.0.0")
|
"-DPROJECT_NAME=\"\\\"" + my_module.name + "\\\"\"",
|
||||||
|
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
|
||||||
|
])
|
||||||
|
|
||||||
|
# set the package properties:
|
||||||
my_module.pkg_set("VERSION_CODE", "0")
|
my_module.pkg_set("VERSION_CODE", "0")
|
||||||
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
||||||
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
||||||
@ -55,6 +62,5 @@ def create(target, module_name):
|
|||||||
my_module.pkg_set("DESCRIPTION", get_desc())
|
my_module.pkg_set("DESCRIPTION", get_desc())
|
||||||
my_module.pkg_set("NAME", get_name())
|
my_module.pkg_set("NAME", get_name())
|
||||||
|
|
||||||
# add the currrent module at the
|
|
||||||
return my_module
|
return my_module
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ appl::Windows::Windows() :
|
|||||||
m_angleTetha(0),
|
m_angleTetha(0),
|
||||||
m_anglePsy(0) {
|
m_anglePsy(0) {
|
||||||
addObjectType("appl::Windows");
|
addObjectType("appl::Windows");
|
||||||
|
propertyTitle.setDirectCheck("example ege: RayTest");
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::shared_ptr<ege::resource::Mesh> createViewBoxStar() {
|
static std::shared_ptr<ege::resource::Mesh> createViewBoxStar() {
|
||||||
@ -67,7 +68,7 @@ static std::shared_ptr<ege::resource::Mesh> createViewBoxStar() {
|
|||||||
|
|
||||||
void appl::Windows::init() {
|
void appl::Windows::init() {
|
||||||
ewol::widget::Windows::init();
|
ewol::widget::Windows::init();
|
||||||
setTitle("example ege : RayTest");
|
|
||||||
|
|
||||||
m_env = ege::Environement::create();
|
m_env = ege::Environement::create();
|
||||||
// Create basic Camera
|
// Create basic Camera
|
||||||
@ -75,15 +76,16 @@ void appl::Windows::init() {
|
|||||||
m_camera->setEye(vec3(100*std::sin(m_angleTetha),100*std::cos(m_angleTetha),40*std::cos(m_anglePsy)));
|
m_camera->setEye(vec3(100*std::sin(m_angleTetha),100*std::cos(m_angleTetha),40*std::cos(m_anglePsy)));
|
||||||
m_env->addCamera("basic", m_camera);
|
m_env->addCamera("basic", m_camera);
|
||||||
|
|
||||||
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create(m_env);
|
std::shared_ptr<ege::widget::Scene> tmpWidget = ege::widget::Scene::create();
|
||||||
if (tmpWidget == nullptr) {
|
if (tmpWidget == nullptr) {
|
||||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
tmpWidget->setExpand(bvec2(true,true));
|
tmpWidget->setEnv(m_env);
|
||||||
tmpWidget->setFill(bvec2(true,true));
|
tmpWidget->propertyExpand.set(bvec2(true,true));
|
||||||
|
tmpWidget->propertyFill.set(bvec2(true,true));
|
||||||
tmpWidget->setCamera("basic");
|
tmpWidget->setCamera("basic");
|
||||||
setSubWidget(tmpWidget);
|
setSubWidget(tmpWidget);
|
||||||
tmpWidget->signalDisplayDebug.bind(shared_from_this(), &appl::Windows::onCallbackDisplayDebug);
|
tmpWidget->signalDisplayDebug.connect(shared_from_this(), &appl::Windows::onCallbackDisplayDebug);
|
||||||
}
|
}
|
||||||
std::shared_ptr<ege::resource::Mesh> myMesh;
|
std::shared_ptr<ege::resource::Mesh> myMesh;
|
||||||
// Create an external box :
|
// Create an external box :
|
||||||
|
@ -20,9 +20,16 @@
|
|||||||
|
|
||||||
class MainApplication : public ewol::context::Application {
|
class MainApplication : public ewol::context::Application {
|
||||||
public:
|
public:
|
||||||
bool init(ewol::Context& _context, size_t _initId) {
|
void onCreate(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Init APPL (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ") (BEGIN)");
|
||||||
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
|
std::string tmpppp = _context.getCmd().get(iii);
|
||||||
|
if ( tmpppp == "-h"
|
||||||
|
|| tmpppp == "--help") {
|
||||||
|
APPL_INFO(" -h/--help display this help" );
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
// TODO : Remove this : Move if in the windows properties
|
// TODO : Remove this : Move if in the windows properties
|
||||||
_context.setSize(vec2(800, 600));
|
_context.setSize(vec2(800, 600));
|
||||||
|
|
||||||
@ -33,14 +40,18 @@ class MainApplication : public ewol::context::Application {
|
|||||||
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
std::shared_ptr<ewol::widget::Windows> basicWindows = appl::Windows::create();
|
||||||
// create the specific windows
|
// create the specific windows
|
||||||
_context.setWindows(basicWindows);
|
_context.setWindows(basicWindows);
|
||||||
APPL_INFO("==> Init APPL (END)");
|
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void unInit(ewol::Context& _context) {
|
void onStart(ewol::Context& _context) override {
|
||||||
APPL_INFO("==> Un-Init APPL (START)");
|
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
|
||||||
// nothing to do ...
|
// nothing to do ...
|
||||||
APPL_INFO("==> Un-Init APPL (END)");
|
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)");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,6 +28,9 @@ def get_compagny_name():
|
|||||||
def get_maintainer():
|
def get_maintainer():
|
||||||
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
|
def get_version():
|
||||||
|
return [0,1]
|
||||||
|
|
||||||
def create(target, module_name):
|
def create(target, module_name):
|
||||||
# module name is 'edn' and type binary.
|
# module name is 'edn' and type binary.
|
||||||
my_module = module.Module(__file__, module_name, get_type())
|
my_module = module.Module(__file__, module_name, get_type())
|
||||||
@ -44,8 +47,12 @@ def create(target, module_name):
|
|||||||
|
|
||||||
my_module.copy_path("data/*")
|
my_module.copy_path("data/*")
|
||||||
|
|
||||||
# set the package properties :
|
my_module.compile_flags('c++', [
|
||||||
my_module.pkg_set("VERSION", "0.0.0")
|
"-DPROJECT_NAME=\"\\\"" + my_module.name + "\\\"\"",
|
||||||
|
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
|
||||||
|
])
|
||||||
|
|
||||||
|
# set the package properties:
|
||||||
my_module.pkg_set("VERSION_CODE", "0")
|
my_module.pkg_set("VERSION_CODE", "0")
|
||||||
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
|
||||||
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
|
||||||
@ -54,7 +61,5 @@ def create(target, module_name):
|
|||||||
my_module.pkg_set("PRIORITY", "optional")
|
my_module.pkg_set("PRIORITY", "optional")
|
||||||
my_module.pkg_set("DESCRIPTION", get_desc())
|
my_module.pkg_set("DESCRIPTION", get_desc())
|
||||||
my_module.pkg_set("NAME", get_name())
|
my_module.pkg_set("NAME", get_name())
|
||||||
|
|
||||||
# add the currrent module at the
|
|
||||||
return my_module
|
return my_module
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user