Camera.hpp
Go to the documentation of this file.
48 };
171 virtual void drawDebug(ememory::SharedPtr<ewol::resource::Colored3DObject> _draw, ememory::SharedPtr<ege::Camera> _camera) { }
virtual void setYAngleView(float _angleRad)
Set the the Y angle view of the camera:
Definition: Camera.hpp:105
const mat4 & getMatrixProjection() const
get the transformation matix for the camera.
Definition: Camera.hpp:60
virtual void configureOpenGL()
Configure projection matrix and camera matrix.
const T & x() const
float m_aspectRatio
depending to the display the aspect ratio is simply calculated x/y
Definition: Camera.hpp:71
float getAspectRatio() const
get the current aspect Ratio.
Definition: Camera.hpp:89
virtual void updateProjectionMatrix()
virtual void setXAngleView(float _angleRad)
Set the the X angle view of the camera:
virtual ege::Ray getRayFromScreen(const vec2 &_offset)
Definition: AudioElement.hpp:8
virtual void setSceenSize(const vec2 &_screenSize)
Set the screen size to display OpenGl interface.
Definition: Camera.hpp:82
Definition: Camera.hpp:18
float getXAngleView() const
get the current X angle view.
Definition: Camera.hpp:112
Definition: Ray.hpp:17
const T & y() const
virtual void drawDebug(ememory::SharedPtr< ewol::resource::Colored3DObject > _draw, ememory::SharedPtr< ege::Camera > _camera)
Debug display of the current element.
Definition: Camera.hpp:171
vec2 tansformPositionToAngle(vec3 _vect)
get Tetha and psy angle from a position:
virtual void periodicCall(float _step)
It is really needed to call the camera periodicly for performing automatic movement.
Definition: Camera.hpp:33
ege::Ray getRayFromScreenPosition(const vec2 &_position, const vec2 &_size)
virtual void setAspectRatio(float _ratio)
Set the aspectRatio of the camera:
const mat4 & getMatrixCamera() const
get the transformation matix for the camera.
Definition: Camera.hpp:46
float getZNear()
Get the Z Near distane of the camera:
Definition: Camera.hpp:142