Mercurial > fife-parpg
changeset 26:70f41ea8e7db
fix compile errors in node setters...
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 11 Jul 2008 11:29:13 +0000 |
parents | fc6713d72b80 |
children | 788cb9525b2f |
files | engine/core/view/renderers/genericrenderer.cpp engine/core/view/renderers/genericrenderer.h engine/core/view/renderers/genericrenderer.i |
diffstat | 3 files changed, 18 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/core/view/renderers/genericrenderer.cpp Fri Jul 11 11:25:11 2008 +0000 +++ b/engine/core/view/renderers/genericrenderer.cpp Fri Jul 11 11:29:13 2008 +0000 @@ -65,12 +65,12 @@ GenericRendererNode::~GenericRendererNode() { } - void GenericRendererNode::setAttached(Instance* attached_instance, const Location &relative_location, const Point &relative_point) { + void GenericRendererNode::setAttached(Instance* attached_instance, Location* relative_location, const Point &relative_point) { m_instance = attached_instance; m_location = relative_location; m_point = relative_point; } - void GenericRendererNode::setAttached(Instance* attached_instance, const Location &relative_location) { + void GenericRendererNode::setAttached(Instance* attached_instance, Location* relative_location) { m_instance = attached_instance; m_location = relative_location; } @@ -81,12 +81,12 @@ void GenericRendererNode::setAttached(Instance* attached_instance) { m_instance = attached_instance; } - void GenericRendererNode::setAttached(const Location &attached_location, const Point &relative_point) { + void GenericRendererNode::setAttached(Location* attached_location, const Point &relative_point) { m_instance = NULL; m_location = attached_location; m_point = relative_point; } - void GenericRendererNode::setAttached(const Location &attached_location) { + void GenericRendererNode::setAttached(Location* attached_location) { m_instance = NULL; m_location = attached_location; } @@ -96,13 +96,13 @@ m_point = attached_point; } - void GenericRendererNode::setRelative(const Location &relative_location) { + void GenericRendererNode::setRelative(Location* relative_location) { if(m_instance == NULL) { throw NotSupported("No instance attached."); } m_location = relative_location; } - void GenericRendererNode::setRelative(const Location &relative_location, Point relative_point) { + void GenericRendererNode::setRelative(Location* relative_location, Point relative_point) { if(m_instance == NULL) { throw NotSupported("No instance attached."); }
--- a/engine/core/view/renderers/genericrenderer.h Fri Jul 11 11:25:11 2008 +0000 +++ b/engine/core/view/renderers/genericrenderer.h Fri Jul 11 11:29:13 2008 +0000 @@ -44,16 +44,16 @@ GenericRendererNode(const Point &attached_point); ~GenericRendererNode(); - void setAttached(Instance* attached_instance, const Location &relative_location, const Point &relative_point); - void setAttached(Instance* attached_instance, const Location &relative_location); + void setAttached(Instance* attached_instance, Location* relative_location, const Point &relative_point); + void setAttached(Instance* attached_instance, Location* relative_location); void setAttached(Instance* attached_instance, const Point &relative_point); void setAttached(Instance* attached_instance); - void setAttached(const Location &attached_location, const Point &relative_point); - void setAttached(const Location &attached_location); + void setAttached(Location* attached_location, const Point &relative_point); + void setAttached(Location* attached_location); void setAttached(const Point &attached_point); - void setRelative(const Location &relative_location); - void setRelative(const Location &relative_location, Point relative_point); + void setRelative(Location* relative_location); + void setRelative(Location* relative_location, Point relative_point); void setRelative(const Point &relative_point); Instance* getAttachedInstance();
--- a/engine/core/view/renderers/genericrenderer.i Fri Jul 11 11:25:11 2008 +0000 +++ b/engine/core/view/renderers/genericrenderer.i Fri Jul 11 11:29:13 2008 +0000 @@ -14,16 +14,16 @@ GenericRendererNode(const Point &attached_point); ~GenericRendererNode(); - void setAttached(Instance* attached_instance, const Location &relative_location, const Point &relative_point); - void setAttached(Instance* attached_instance, const Location &relative_location); + void setAttached(Instance* attached_instance, Location* relative_location, const Point &relative_point); + void setAttached(Instance* attached_instance, Location* relative_location); void setAttached(Instance* attached_instance, const Point &relative_point); void setAttached(Instance* attached_instance); - void setAttached(const Location &attached_location, const Point &relative_point); - void setAttached(const Location &attached_location); + void setAttached(Location* attached_location, const Point &relative_point); + void setAttached(Location* attached_location); void setAttached(const Point &attached_point); - void setRelative(const Location &relative_location); - void setRelative(const Location &relative_location, Point relative_point); + void setRelative(Location* relative_location); + void setRelative(Location* relative_location, Point relative_point); void setRelative(const Point &relative_point); Instance* getAttachedInstance();