00001 00002 /* 00003 TEDDY - General graphics application library 00004 Copyright (C) 1999-2002 Timo Suoranta 00005 tksuoran@cc.helsinki.fi 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Lesser General Public 00009 License as published by the Free Software Foundation; either 00010 version 2.1 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this library; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 00021 $Id: $ 00022 */ 00023 00024 00025 #include "Teddy/TeddyConfig.h" 00026 #include "Teddy/Application/BaseObjectManager.h" 00027 #include "Teddy/Graphics/View.h" 00028 #include "Teddy/Materials/Material.h" 00029 #include "Teddy/Materials/Light.h" 00030 #include "Teddy/Maths/Vector.h" 00031 #include "Teddy/Maths/Vector4.h" 00032 #include "Teddy/PhysicalComponents/Projection.h" 00033 #include "Teddy/Scenes/Camera.h" 00034 #include "Teddy/Scenes/Scene.h" 00035 #include "Teddy/SysSupport/Messages.h" 00036 #include "Teddy/SysSupport/StdIO.h" 00037 using namespace Teddy::Graphics; 00038 using namespace Teddy::Materials; 00039 using namespace Teddy::PhysicalComponents; 00040 using namespace Teddy::Scenes; 00041 00042 00043 namespace Teddy { 00044 namespace Application { 00045 00046 00048 BaseObjectManager::BaseObjectManager(){ 00049 } 00050 00051 00053 void BaseObjectManager::setCamera( Camera *c ){ 00054 this->camera = c; 00055 } 00056 00057 00058 void BaseObjectManager::setScene( Scene *scene ){ 00059 this->scene = scene; 00060 } 00061 00062 00064 Camera *BaseObjectManager::getCamera(){ 00065 return camera; 00066 } 00067 00068 00070 Scene *BaseObjectManager::getScene(){ 00071 return scene; 00072 } 00073 00074 00075 }; // namespace Application 00076 }; // namespace Teddy 00077