00001 /* 00002 * ExNihilo 3D Engine 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 * 00018 * Please read AUTHORS file !!! 00019 * 00020 * $Id: ExCCameraTarget.cpp,v 1.6 2002/07/21 18:49:33 binny Exp $ 00021 * 00022 */ 00023 00024 #include "ExCCameraTarget.h" 00025 00026 ExCCameraTarget::ExCCameraTarget(void) 00027 { 00028 } 00029 00030 ExCCameraTarget::~ExCCameraTarget(void) 00031 { 00032 } 00033 void ExCCameraTarget::Draw(void) 00034 { 00035 ExCVec3D Target; 00036 Target=m_TargetObject->GetPosition(); 00037 gluLookAt(m_Position.GetX(),m_Position.GetY(),m_Position.GetZ() 00038 ,Target.GetX(),Target.GetY(),Target.GetZ() 00039 ,0.0,1.0,0.0); 00040 } 00041