00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#include "Animation.h"
00013
#include <OpenCAL/Renderer.h>
00014
using namespace OpenCAL;
00015
00016
using namespace std;
00017
00018
00019
00020
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
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
00059
00060
00061
void Animation::initialize()
00062 {
00063
System::initialize();
00064 afterInit();
00065 }