#include <ExCCameraTarget.h>
Inheritance diagram for ExCCameraTarget:
Public Methods | |
ExCCameraTarget (void) | |
~ExCCameraTarget (void) | |
void | SetTargetObject (ExCObject *TargetObject) |
ExCObject * | GetTargetObject (void) |
void | Draw (void) |
Protected Attributes | |
ExCObject * | m_TargetObject |
|
Definition at line 26 of file ExCCameraTarget.cpp.
00027 { 00028 } |
|
Definition at line 30 of file ExCCameraTarget.cpp.
00031 { 00032 } |
|
Reimplemented from ExCCamera. Definition at line 33 of file ExCCameraTarget.cpp. References ExCObject::GetPosition, ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), ExCObject::m_Position, and m_TargetObject.
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 } |
|
Definition at line 51 of file ExCCameraTarget.h.
00051 {return m_TargetObject;} |
|
Definition at line 50 of file ExCCameraTarget.h.
00050 {m_TargetObject=TargetObject;} |
|
Definition at line 37 of file ExCCameraTarget.h. Referenced by Draw(). |