summaryrefslogtreecommitdiffstats
path: root/src/render/texture/texture.cpp
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2015-10-12 20:45:19 +0100
committerPaul Lemire <paul.lemire@kdab.com>2015-10-13 13:19:50 +0000
commit7c971e0e7791ab38d7d3d8ebc25468c44cbe49c5 (patch)
tree53197a9e5eb7501d6f5b497f70c25dad9c265a6f /src/render/texture/texture.cpp
parent0bfd20ad3b8eb3edec8d6317af9eb5504f8c0871 (diff)
Move Qt3DCore into Qt3DCore namespace
Update other aspects, tests and examples accordingly. Change-Id: Ib1bcf0bdf4f5aec4422dc0c80bfc32b27fb1a317 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/texture/texture.cpp')
-rw-r--r--src/render/texture/texture.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/texture/texture.cpp b/src/render/texture/texture.cpp
index 9ac0966ce..edbf26b68 100644
--- a/src/render/texture/texture.cpp
+++ b/src/render/texture/texture.cpp
@@ -50,7 +50,7 @@
QT_BEGIN_NAMESPACE
-using namespace Qt3D;
+using namespace Qt3DCore;
namespace Qt3DRender {
namespace Render {
@@ -123,7 +123,7 @@ void Texture::cleanup()
}
// AspectThread
-void Texture::updateFromPeer(Qt3D::QNode *peer)
+void Texture::updateFromPeer(Qt3DCore::QNode *peer)
{
QAbstractTextureProvider *texture = static_cast<QAbstractTextureProvider *>(peer);
@@ -412,7 +412,7 @@ void Texture::setFormat(QAbstractTextureProvider::TextureFormat format)
}
// ChangeArbiter/Aspect Thread
-void Texture::sceneChangeEvent(const Qt3D::QSceneChangePtr &e)
+void Texture::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e)
{
// The QOpenGLTexture has to be manipulated from the RenderThread only
QMutexLocker lock(m_lock);
@@ -579,7 +579,7 @@ TextureFunctor::TextureFunctor(TextureManager *textureManager,
{
}
-Qt3D::QBackendNode *TextureFunctor::create(Qt3D::QNode *frontend, const Qt3D::QBackendNodeFactory *factory) const
+Qt3DCore::QBackendNode *TextureFunctor::create(Qt3DCore::QNode *frontend, const Qt3DCore::QBackendNodeFactory *factory) const
{
Texture *backend = m_textureManager->getOrCreateResource(frontend->id());
backend->setFactory(factory);
@@ -590,12 +590,12 @@ Qt3D::QBackendNode *TextureFunctor::create(Qt3D::QNode *frontend, const Qt3D::QB
return backend;
}
-Qt3D::QBackendNode *TextureFunctor::get(const Qt3D::QNodeId &id) const
+Qt3DCore::QBackendNode *TextureFunctor::get(const Qt3DCore::QNodeId &id) const
{
return m_textureManager->lookupResource(id);
}
-void TextureFunctor::destroy(const Qt3D::QNodeId &id) const
+void TextureFunctor::destroy(const Qt3DCore::QNodeId &id) const
{
m_textureManager->releaseResource(id);
}