Main Page Namespace List Class Hierarchy Alphabetical List Data Structures File List Namespace Members Data Fields Globals

# ExCCameraTarget Class Reference

`#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

## Constructor & Destructor Documentation

ExCCameraTarget | ( | void |  | ) |

| Definition at line 26 of file ExCCameraTarget.cpp.
    00027 {
    00028 }

~ExCCameraTarget | ( | void |  | ) |

| Definition at line 30 of file ExCCameraTarget.cpp.
    00031 {
    00032 }

## Member Function Documentation

void Draw | ( | void |  | ) | `[virtual]`

| Reimplemented from ExCCamera. Definition at line 33 of file ExCCameraTarget.cpp. References ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), ExCObject3D::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 }

ExCObject* GetTargetObject | ( | void |  | ) | `[inline]`

| Definition at line 50 of file ExCCameraTarget.h.
    00050 {m_TargetObject=TargetObject;}

void SetTargetObject | ( | ExCObject * | TargetObject | ) | `[inline]`

| Definition at line 49 of file ExCCameraTarget.h.
    00050 {m_TargetObject=TargetObject;}

## Field Documentation

ExCObject* m_TargetObject`[protected]`

| Definition at line 36 of file ExCCameraTarget.h. Referenced by Draw().

The documentation for this class was generated from the following files:

- ExCCameraTarget.h
- ExCCameraTarget.cpp