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 "RigidObject.h" 00013 using namespace OpenCAL; 00014 00015 using namespace std; 00016 00017 00018 /****************************** 00019 * Constructors and destructor * 00020 ******************************/ 00021 00022 RigidObject::RigidObject(System *parent) 00023 : Object(parent), Rigid() 00024 { 00025 #ifdef VERBOSE 00026 Debug::print("RigidObject constructor", 2); 00027 #endif // VERBOSE 00028 } 00029 00030 RigidObject::~RigidObject() 00031 { 00032 #ifdef VERBOSE 00033 Debug::print("RigidObject destructor", 2); 00034 #endif // VERBOSE 00035 } 00036 00037 00038 /****************** 00039 * Other functions * 00040 ******************/ 00041 00042 void RigidObject::initialize() 00043 { 00044 /* 00045 #ifdef USE_OPENGL 00046 initializeGL(); 00047 #endif // USE_OPENGL 00048 */ 00049 00050 Object::initialize(); 00051 } 00052 00053 /* 00054 #ifdef USE_OPENGL 00055 void RigidObject::drawGL() 00056 { 00057 #ifdef VERBOSE 00058 Debug::print("RigidObject drawGL", Debug::maxLevel); 00059 #endif // VERBOSE 00060 00061 //if(!m_draw) return; 00062 00063 glPushMatrix(); 00064 00065 translateGL(); 00066 rotateGL(); 00067 renderGL(); 00068 00069 glPopMatrix(); 00070 } 00071 #endif // USE_OPENGL 00072 */ 00073 00074 00075 /********************** 00076 * Protected functions * 00077 **********************/