Update scene element class

This commit is contained in:
Edouard Dupin 2012-04-17 18:25:37 +02:00
parent 56b749b3ed
commit 02c92b3e2e
2 changed files with 5 additions and 2 deletions

View File

@ -36,12 +36,16 @@ namespace ewol {
namespace ewol { namespace ewol {
class SceneElement { class SceneElement {
private:
int32_t m_id; //!< Unique element ID
public: 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::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*> 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::Sprite*> effects[NB_BOUBLE_BUFFER]; //!< element that must be display the first
etk::VectorType<ewol::GameElement*> listAnimatedElements; //!< generic element to display... 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); int32_t AddElement(ewol::GameElement* newElement);
}; };
}; };

View File

@ -48,7 +48,6 @@ ewol::Scene::Scene(void)
SetCanHaveFocus(true); SetCanHaveFocus(true);
PeriodicCallSet(true); PeriodicCallSet(true);
m_lastCallTime = -1; m_lastCallTime = -1;
m_sceneElement.id = 1;
} }