[dev] add some test on the scene
This commit is contained in:
parent
9578d1b5ea
commit
3057c3e3c9
BIN
data/icon.png
BIN
data/icon.png
Binary file not shown.
Before ![]() (image error) Size: 6.4 KiB After ![]() (image error) Size: 7.1 KiB ![]() ![]() |
@ -252,6 +252,12 @@ void TestScene::OnReceiveMessage(ewol::EObject * CallerObject, const char * even
|
||||
vec3 newPos = vec3(etk::tool::frand(-20,20),etk::tool::frand(-20,20),etk::tool::frand(1,8));
|
||||
APPL_DEBUG("add a box at the pos : " << newPos);
|
||||
tmpp->Translate(newPos);
|
||||
float angle = etk::tool::frand(-M_PI,M_PI);
|
||||
tmpp->Rotate(vec3(1,0,0), angle);
|
||||
angle = etk::tool::frand(-M_PI,M_PI);
|
||||
tmpp->Rotate(vec3(0,1,0), angle);
|
||||
angle = etk::tool::frand(-M_PI,M_PI);
|
||||
tmpp->Rotate(vec3(0,0,1), angle);
|
||||
}
|
||||
firstTime = false;
|
||||
m_gameEngine.AddElement(tmpp, true);
|
||||
|
@ -58,6 +58,8 @@ void APP_Init(void)
|
||||
#else
|
||||
ewol::config::FontSetDefault("FreeSerif", 14);
|
||||
#endif
|
||||
// set the application icon ...
|
||||
ewol::SetIcon("DATA:icon.png");
|
||||
|
||||
basicWindows = new MainWindows();
|
||||
|
||||
@ -80,14 +82,7 @@ void APP_Init(void)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief the system request the icon file name :
|
||||
*/
|
||||
etk::UString APP_Icon(void)
|
||||
{
|
||||
etk::UString bitmapFile("DATA:icon.png");
|
||||
return bitmapFile;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief main application function Un-Initialisation
|
||||
|
Loading…
x
Reference in New Issue
Block a user