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

Public Methods | |
| CAMERA () | |
| ~CAMERA () | |
| void | Reset () |
| void | Update () |
| void | Apply () |
Public Attributes | |
| MATRIX | Matrix |
|
|
Definition at line 5 of file camera.cpp.
00006 {
00007 }
|
|
|
Definition at line 9 of file camera.cpp.
00010 {
00011 }
|
|
|
Definition at line 30 of file camera.cpp. References MATRIX::Element, Matrix, MATRIX::MatrixInverse(), OBJECT::Orientation, OBJECT::Position, MATRIX::QuatToMatrix(), VECTOR::x, VECTOR::y, and VECTOR::z.
00031 {
00032 Matrix.QuatToMatrix(Orientation);
00033 Matrix.MatrixInverse();
00034
00035 glLoadMatrixf(Matrix.Element);
00036 glTranslatef(-Position.x,-Position.y,-Position.z);
00037 }
|
|
|
Reimplemented from OBJECT. Definition at line 13 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(). Referenced by SetGLCamera().
00014 {
00015 Orientation.Reset();
00016 Position.Reset();
00017 Delta_x = 0.0;
00018 Delta_y = 0.0;
00019 Delta_z = 0.0;
00020 Matrix.LoadIdentity();
00021 }
|
|
|
Definition at line 23 of file camera.cpp. References OBJECT::Rotate(), and OBJECT::UpdatePosition().
00024 {
00025 Rotate();
00026
00027 UpdatePosition();
00028 }
|
|
|
|
1.2.15