§ View()
ege::camera::View::View |
( |
const vec3 & |
_eye = vec3(0, 0, 0) , |
|
|
const vec3 & |
_target = vec3(0, 0, 1) , |
|
|
float |
_angle = 0.0f |
|
) |
| |
§ ~View()
ege::camera::View::~View |
( |
| ) |
|
|
inline |
§ drawDebug()
Debug display of the current element.
- Parameters
-
[in,out] | draw | Basic system to draw the debug shape and informations |
Reimplemented from ege::Camera.
§ getAngle()
float ege::camera::View::getAngle |
( |
| ) |
const |
|
inline |
Get the camera angle.
- Returns
- the up camera angle.
§ getEye()
virtual vec3 ege::camera::View::getEye |
( |
| ) |
const |
|
inlinevirtual |
get the curent Camera Eye position.
- Returns
- the current position.
Reimplemented from ege::Camera.
§ getRayFromScreen()
virtual ege::Ray ege::camera::View::getRayFromScreen |
( |
const vec2 & |
_offset | ) |
|
|
virtual |
Get ray from the camera with the screen offset.
- Parameters
-
[in] | _offset | Offset in the screen [-1..1] |
- Returns
- the ray requested.
Reimplemented from ege::Camera.
§ getTarget()
const vec3& ege::camera::View::getTarget |
( |
| ) |
const |
|
inline |
Get the curent Camera target position.
- Returns
- The target position.
§ setAngle()
virtual void ege::camera::View::setAngle |
( |
float |
_angle | ) |
|
|
virtual |
Set the camera angle.
- Parameters
-
§ setEye()
virtual void ege::camera::View::setEye |
( |
const vec3 & |
_eye | ) |
|
|
virtual |
set the position of the camera.
- Parameters
-
[in] | pos | Position of the camera. |
§ setTarget()
virtual void ege::camera::View::setTarget |
( |
const vec3 & |
_target | ) |
|
|
virtual |
set a new Camera target position.
- Parameters
-
[in] | _target | New camera target position. |
§ update()
void ege::camera::View::update |
( |
| ) |
|
|
protected |
update the matrix property
§ m_angle
float ege::camera::View::m_angle |
|
protected |
rotation angle of the camera (in rad) through the axis origin->eye
§ m_eye
vec3 ege::camera::View::m_eye |
|
protected |
position where the camera see
§ m_target
vec3 ege::camera::View::m_target |
|
protected |
The documentation for this class was generated from the following file:
- framework/atria-soft/ege/ege/camera/View.hpp