Update scene element class
This commit is contained in:
parent
56b749b3ed
commit
02c92b3e2e
@ -36,12 +36,16 @@ namespace ewol {
|
||||
|
||||
namespace ewol {
|
||||
class SceneElement {
|
||||
private:
|
||||
int32_t m_id; //!< Unique element ID
|
||||
public:
|
||||
SceneElement(void) { m_id = 1; };
|
||||
~SceneElement(void) { };
|
||||
etk::VectorType<ewol::OObject*> backgroundElements[NB_BOUBLE_BUFFER]; //!< element that must be display the first
|
||||
etk::VectorType<ewol::Sprite*> animated[NB_BOUBLE_BUFFER]; //!< element that must be display the first
|
||||
etk::VectorType<ewol::Sprite*> effects[NB_BOUBLE_BUFFER]; //!< element that must be display the first
|
||||
etk::VectorType<ewol::GameElement*> listAnimatedElements; //!< generic element to display...
|
||||
int32_t id; //!< Unique element ID
|
||||
int32_t GetUniqueId(void) { int32_t iddd = m_id; m_id++; return iddd; };
|
||||
int32_t AddElement(ewol::GameElement* newElement);
|
||||
};
|
||||
};
|
||||
|
@ -48,7 +48,6 @@ ewol::Scene::Scene(void)
|
||||
SetCanHaveFocus(true);
|
||||
PeriodicCallSet(true);
|
||||
m_lastCallTime = -1;
|
||||
m_sceneElement.id = 1;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user