Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Animation.cpp

00001 /*************************************************************************** 00002 * This file is part of OpenCAL: Open Computer Animation Library * 00003 * I created OpenCAL as my master's thesis Computer Science (multimedia) * 00004 * at the tUL university in Diepenbeek, Belgium * 00005 * * 00006 * Copyright (C) 2003-2004 by Jeroen Dierckx * 00007 * jeroen.dierckx@student.luc.ac.be * 00008 * * 00009 ***************************************************************************/ 00010 00011 // Includes 00012 #include "Animation.h" 00013 #include <OpenCAL/Renderer.h> 00014 using namespace OpenCAL; 00015 00016 using namespace std; 00017 00018 00019 /****************************** 00020 * Constructors and destructor * 00021 ******************************/ 00022 00023 Animation::Animation() 00024 : System(0) 00025 { 00026 #ifdef VERBOSE 00027 Debug::print("Animation constructor", 2); 00028 #endif // VERBOSE 00029 } 00030 00031 Animation::~Animation() 00032 { 00033 #ifdef VERBOSE 00034 Debug::print("Animation destructor", 2); 00035 #endif // VERBOSE 00036 } 00037 00038 00039 /******************* 00040 * Render functions * 00041 *******************/ 00042 00043 void Animation::render() 00044 { 00045 if(!isInitialized()) 00046 initialize(); 00047 00048 if(!m_renderer) 00049 return; 00050 00051 m_renderer->applyCamera(m_camera); 00052 00053 System::render(); 00054 } 00055 00056 00057 /****************** 00058 * Other functions * 00059 ******************/ 00060 00061 void Animation::initialize() 00062 { 00063 System::initialize(); 00064 afterInit(); 00065 }

Generated on Sun Aug 15 19:19:21 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8