Clean up of scene nodes to support 2d and non int positioning.
This commit is contained in:
parent
1eeaebd0a9
commit
672b31b603
45 changed files with 341 additions and 200 deletions
|
@ -1,45 +0,0 @@
|
|||
#include "SceneItem.h"
|
||||
|
||||
SceneItem::SceneItem()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const Color& SceneItem::getColor() const
|
||||
{
|
||||
return mUniformColor;
|
||||
}
|
||||
|
||||
const Transform& SceneItem::getTransform() const
|
||||
{
|
||||
return mTransform;
|
||||
}
|
||||
|
||||
bool SceneItem::isVisible() const
|
||||
{
|
||||
return mIsVisible;
|
||||
}
|
||||
|
||||
|
||||
void SceneItem::setIsVisible(bool isVisible)
|
||||
{
|
||||
mIsVisible = isVisible;
|
||||
}
|
||||
|
||||
void SceneItem::updateUniformColor(const Color& color)
|
||||
{
|
||||
if (mUniformColor != color)
|
||||
{
|
||||
mColorIsDirty = true;
|
||||
mUniformColor = color;
|
||||
}
|
||||
}
|
||||
|
||||
void SceneItem::updateTransform(const Transform& transform)
|
||||
{
|
||||
if (mTransform != transform)
|
||||
{
|
||||
mTransformIsDirty = true;
|
||||
mTransform = transform;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue