#include <camera.h>
Inheritance diagram for CAMERA:

Public Methods | |
| CAMERA () | |
| ~CAMERA () | |
| void | Set () |
| void | UpdateCamera () |
| void | ApplyCamera () |
Public Attributes | |
| MATRIX | Matrix |
|
|
Definition at line 7 of file camera.cpp.
00008 {
00009 }
|
|
|
Definition at line 11 of file camera.cpp.
00012 {
00013 }
|
|
|
Definition at line 32 of file camera.cpp. References MATRIX::Element, Matrix, MATRIX::MatrixInverse(), OBJECT::Orientation, OBJECT::Position, MATRIX::QuatToMatrix(), VECTOR::x, VECTOR::y, and VECTOR::z.
00033 {
00034 Matrix.QuatToMatrix(Orientation);
00035 Matrix.MatrixInverse();
00036
00037 glLoadMatrixf(Matrix.Element);
00038 glTranslatef(-Position.x,-Position.y,-Position.z);
00039 }
|
|
|
Reimplemented from OBJECT. Definition at line 15 of file camera.cpp. References OBJECT::Delta_x, OBJECT::Delta_y, OBJECT::Delta_z, MATRIX::LoadIdentity(), Matrix, OBJECT::Orientation, OBJECT::Position, VECTOR::Set(), and QUAT::Set().
00016 {
00017 Orientation.Set();
00018 Position.Set();
00019 Delta_x = 0.0;
00020 Delta_y = 0.0;
00021 Delta_z = 0.0;
00022 Matrix.LoadIdentity();
00023 }
|
|
|
Definition at line 25 of file camera.cpp. References OBJECT::Rotate(), and OBJECT::UpdatePosition().
00026 {
00027 Rotate();
00028
00029 UpdatePosition();
00030 }
|
|
|
Definition at line 19 of file camera.h. Referenced by ApplyCamera(), and Set(). |
1.2.15