diff --git a/src/SceneGraph/CMakeLists.txt b/src/SceneGraph/CMakeLists.txt index dd8f5bee3..7eb5ef7b6 100644 --- a/src/SceneGraph/CMakeLists.txt +++ b/src/SceneGraph/CMakeLists.txt @@ -1,10 +1,8 @@ # Files shared between main library and unit test library set(MagnumSceneGraph_SRCS - Camera.cpp - Light.cpp) + Camera.cpp) set(MagnumSceneGraph_HEADERS Camera.h - Light.h Object.h Scene.h diff --git a/src/SceneGraph/Light.cpp b/src/SceneGraph/Light.cpp deleted file mode 100644 index 385c6efc4..000000000 --- a/src/SceneGraph/Light.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/* - Copyright © 2010, 2011, 2012 Vladimír Vondruš - - This file is part of Magnum. - - Magnum is free software: you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License version 3 - only, as published by the Free Software Foundation. - - Magnum is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License version 3 for more details. -*/ - -#include "Light.h" - -namespace Magnum { namespace SceneGraph { - -void Light::clean(const Matrix4& absoluteTransformation) { - Object3D::clean(absoluteTransformation); - - _position = absoluteTransformation[3]; -} - -}} diff --git a/src/SceneGraph/Light.h b/src/SceneGraph/Light.h deleted file mode 100644 index 74070122c..000000000 --- a/src/SceneGraph/Light.h +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef Magnum_SceneGraph_Light_h -#define Magnum_SceneGraph_Light_h -/* - Copyright © 2010, 2011, 2012 Vladimír Vondruš - - This file is part of Magnum. - - Magnum is free software: you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License version 3 - only, as published by the Free Software Foundation. - - Magnum is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License version 3 for more details. -*/ - -/** @file - * @brief Class Magnum::SceneGraph::Light - */ - -#include "Math/Point3D.h" -#include "Object.h" - -namespace Magnum { namespace SceneGraph { - -/** - * @brief Basic light object - * - * Provides cached light position. - */ -class SCENEGRAPH_EXPORT Light: public Object3D { - public: - /** - * @brief Constructor - * @param parent Parent object - */ - inline Light(Object3D* parent = nullptr): Object3D(parent) {} - - /** - * @brief Light position relative to root object (scene) - */ - inline Point3D position() { - setClean(); - return _position; - } - - protected: - /** - * Recomputes light position. - */ - void clean(const Matrix4& absoluteTransformation); - - private: - Point3D _position; -}; - -}} - -#endif