Remove GuiComponent::init, deinit, and getGlobalPosition.

This commit is contained in:
Aloshi 2013-07-23 06:15:10 -05:00
parent 8d78052808
commit a82684ec1a
2 changed files with 0 additions and 34 deletions

View file

@ -52,31 +52,6 @@ void GuiComponent::renderChildren(const Eigen::Affine3f& transform) const
}
}
void GuiComponent::init()
{
for(unsigned int i = 0; i < getChildCount(); i++)
{
getChild(i)->init();
}
}
void GuiComponent::deinit()
{
for(unsigned int i = 0; i < getChildCount(); i++)
{
getChild(i)->deinit();
}
}
//Offset stuff.
Eigen::Vector3f GuiComponent::getGlobalPosition()
{
if(mParent)
return mParent->getGlobalPosition() + mPosition;
else
return mPosition;
}
Eigen::Vector3f GuiComponent::getPosition() const
{
return mPosition;

View file

@ -27,15 +27,6 @@ public:
//4. Tell your children to render, based on your component's transform - renderChildren(t).
virtual void render(const Eigen::Affine3f& parentTrans);
//TO BE DEPRECATED
//Called when the Renderer initializes. Passes to children.
virtual void init();
//TO BE DEPRECATED
//Called when the Renderer deinitializes. Passes to children.
virtual void deinit();
virtual Eigen::Vector3f getGlobalPosition(); //to be deprecated
Eigen::Vector3f getPosition() const;
void setPosition(const Eigen::Vector3f& offset);
void setPosition(float x, float y, float z = 0.0f);