mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-18 04:45:39 +00:00
Remove GuiComponent::init, deinit, and getGlobalPosition.
This commit is contained in:
parent
8d78052808
commit
a82684ec1a
|
@ -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
|
Eigen::Vector3f GuiComponent::getPosition() const
|
||||||
{
|
{
|
||||||
return mPosition;
|
return mPosition;
|
||||||
|
|
|
@ -27,15 +27,6 @@ public:
|
||||||
//4. Tell your children to render, based on your component's transform - renderChildren(t).
|
//4. Tell your children to render, based on your component's transform - renderChildren(t).
|
||||||
virtual void render(const Eigen::Affine3f& parentTrans);
|
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;
|
Eigen::Vector3f getPosition() const;
|
||||||
void setPosition(const Eigen::Vector3f& offset);
|
void setPosition(const Eigen::Vector3f& offset);
|
||||||
void setPosition(float x, float y, float z = 0.0f);
|
void setPosition(float x, float y, float z = 0.0f);
|
||||||
|
|
Loading…
Reference in a new issue