AxesInfo.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
5 */
6
7 #ifndef CAFU_AXES_INFO_HPP_INCLUDED
8 #define CAFU_AXES_INFO_HPP_INCLUDED
9
10
11 /// This class describes how the three world-space axes are mapped to the two screen- or window-space axes.
12 /// The origin of screen/window-space is always in the upper left corner. The screen/window-space horizontal axis
13 /// ("x-axis") points from left to right, and the related vertical axis ("y-axis") points from top to bottom.
14 /// In the context of this class, the three world space axes x, y and z are numbered 0, 1 and 2, respectively.
15 class AxesInfoT
16 {
17  public:
18
19  AxesInfoT(int HorzAxis_, bool MirrorHorz_, int VertAxis_, bool MirrorVert_);
20
21
22  public:
23
24  int HorzAxis; ///< The number of the world axis that maps to the horizontal (x) screen/window axis.
25  int VertAxis; ///< The number of the world axis that maps to the vertical (y) screen/window axis.
26  int ThirdAxis; ///< The number of the world axis that points into or out of the screen/window.
27
28  bool MirrorHorz; ///< When true, the mapping from the horizontal world space axis to the horizontal screen/window axis is mirrored.
29  bool MirrorVert; ///< When true, the mapping from the vertical world space axis to the vertical screen/window axis is mirrored.
30 };
31
32 #endif
bool MirrorHorz
When true, the mapping from the horizontal world space axis to the horizontal screen/window axis is m...
Definition: AxesInfo.hpp:28
int HorzAxis
The number of the world axis that maps to the horizontal (x) screen/window axis.
Definition: AxesInfo.hpp:24
int ThirdAxis
The number of the world axis that points into or out of the screen/window.
Definition: AxesInfo.hpp:26
bool MirrorVert
When true, the mapping from the vertical world space axis to the vertical screen/window axis is mirro...
Definition: AxesInfo.hpp:29
int VertAxis
The number of the world axis that maps to the vertical (y) screen/window axis.
Definition: AxesInfo.hpp:25
This class describes how the three world-space axes are mapped to the two screen- or window-space axe...
Definition: AxesInfo.hpp:15