§ Camera()
§ ~Camera()
virtual ege::Camera::~Camera |
( |
| ) |
|
|
inlinevirtual |
§ configureOpenGL()
virtual void ege::Camera::configureOpenGL |
( |
| ) |
|
|
virtual |
Configure projection matrix and camera matrix.
§ drawDebug()
Debug display of the current element.
- Parameters
-
[in,out] | draw | Basic system to draw the debug shape and informations |
Reimplemented in ege::camera::View.
§ getAspectRatio()
float ege::Camera::getAspectRatio |
( |
| ) |
const |
|
inline |
get the current aspect Ratio.
- Returns
- The current aspect ratio.
§ getMatrixCamera()
const mat4& ege::Camera::getMatrixCamera |
( |
| ) |
const |
|
inline |
get the transformation matix for the camera.
- Returns
- the current transformation matrix
§ getMatrixProjection()
const mat4& ege::Camera::getMatrixProjection |
( |
| ) |
const |
|
inline |
get the transformation matix for the camera.
- Returns
- the current transformation matrix
§ getRayFromScreen()
virtual ege::Ray ege::Camera::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 in ege::camera::View.
§ getRayFromScreenPosition()
ege::Ray ege::Camera::getRayFromScreenPosition |
( |
const vec2 & |
_position, |
|
|
const vec2 & |
_size |
|
) |
| |
Get ray from the camera with the screen offset.
- Parameters
-
[in] | _position | positin the screen |
[in] | _size | size of the screen |
- Returns
- the ray requested.
§ getXAngleView()
float ege::Camera::getXAngleView |
( |
| ) |
const |
|
inline |
get the current X angle view.
- Returns
- the current X angle view.
§ getZFar()
float ege::Camera::getZFar |
( |
| ) |
|
|
inline |
Get the Z far distane of the camera:
- Returns
- the current end distance view.
§ getZNear()
float ege::Camera::getZNear |
( |
| ) |
|
|
inline |
Get the Z Near distane of the camera:
- Returns
- the current start distance view.
§ periodicCall()
virtual void ege::Camera::periodicCall |
( |
float |
_step | ) |
|
|
inlinevirtual |
It is really needed to call the camera periodicly for performing automatic movement.
- Parameters
-
[in] | _step | step time of moving |
§ setAspectRatio()
virtual void ege::Camera::setAspectRatio |
( |
float |
_ratio | ) |
|
|
virtual |
Set the aspectRatio of the camera:
- Parameters
-
[in] | _ratio | New aspect ratio. |
§ setSceenSize()
virtual void ege::Camera::setSceenSize |
( |
const vec2 & |
_screenSize | ) |
|
|
inlinevirtual |
Set the screen size to display OpenGl interface.
- Parameters
-
[in] | _screenSize | New screen size. |
§ setXAngleView()
virtual void ege::Camera::setXAngleView |
( |
float |
_angleRad | ) |
|
|
virtual |
Set the the X angle view of the camera:
- Parameters
-
[in] | _angleRad | New angle view in X of the camera. |
§ setYAngleView()
virtual void ege::Camera::setYAngleView |
( |
float |
_angleRad | ) |
|
|
inlinevirtual |
Set the the Y angle view of the camera:
- Parameters
-
[in] | _angleRad | New angle view in Y of the camera. |
- Note
- Pay attention that the AspectRatio parameter is set before
§ setZFar()
virtual void ege::Camera::setZFar |
( |
float |
_distance | ) |
|
|
virtual |
Set the Z far distane of the camera:
- Parameters
-
[in] | _distance | New end distance view. |
§ setZNear()
virtual void ege::Camera::setZNear |
( |
float |
_distance | ) |
|
|
virtual |
Set the Z near distane of the camera:
- Parameters
-
[in] | _distance | New start distance view. |
§ tansformPositionToAngle()
vec2 ege::Camera::tansformPositionToAngle |
( |
vec3 |
_vect | ) |
|
|
protected |
get Tetha and psy angle from a position:
- Parameters
-
[in] | _vect | Vector to transform in the euler angle |
- Returns
- x: tetha; y: psy
§ updateProjectionMatrix()
virtual void ege::Camera::updateProjectionMatrix |
( |
| ) |
|
|
protectedvirtual |
Update the current projection matrix.
§ m_angleView
float ege::Camera::m_angleView |
|
protected |
X angle view of the camera.
§ m_aspectRatio
float ege::Camera::m_aspectRatio |
|
protected |
depending to the display the aspect ratio is simply calculated x/y
§ m_matrix
mat4 ege::Camera::m_matrix |
|
protected |
§ m_matrixProjection
mat4 ege::Camera::m_matrixProjection |
|
protected |
§ m_zFar
float ege::Camera::m_zFar |
|
protected |
§ m_zNear
float ege::Camera::m_zNear |
|
protected |
The documentation for this class was generated from the following file: