#include <camera.h>
Inheritance diagram for CAMERA:
Public Methods | |
CAMERA () | |
~CAMERA () | |
void | Reset () |
void | Update () |
void | Apply () |
Public Attributes | |
MATRIX | Matrix |
|
Definition at line 6 of file camera.cpp.
00007 { 00008 } |
|
Definition at line 10 of file camera.cpp.
00011 { 00012 } |
|
Definition at line 31 of file camera.cpp. References MATRIX::Element, Matrix, MATRIX::MatrixInverse(), OBJECT::Orientation, OBJECT::Position, MATRIX::QuatToMatrix(), VECTOR::x, VECTOR::y, and VECTOR::z.
00032 { 00033 Matrix.QuatToMatrix(Orientation); 00034 Matrix.MatrixInverse(); 00035 00036 glLoadMatrixf(Matrix.Element); 00037 glTranslatef(-Position.x,-Position.y,-Position.z); 00038 } |
|
Reimplemented from OBJECT. Definition at line 14 of file camera.cpp. References OBJECT::Delta_x, OBJECT::Delta_y, OBJECT::Delta_z, MATRIX::LoadIdentity(), Matrix, OBJECT::Orientation, OBJECT::Position, VECTOR::Reset(), and QUAT::Reset().
00015 { 00016 Orientation.Reset(); 00017 Position.Reset(); 00018 Delta_x = 0.0; 00019 Delta_y = 0.0; 00020 Delta_z = 0.0; 00021 Matrix.LoadIdentity(); 00022 } |
|
Definition at line 24 of file camera.cpp. References OBJECT::Rotate(), and OBJECT::UpdatePosition().
00025 { 00026 Rotate(); 00027 00028 UpdatePosition(); 00029 } |
|
|