8#ifndef META_OCEAN_RENDERING_GLES_VIEW_H
9#define META_OCEAN_RENDERING_GLES_VIEW_H
This class implements a color defined by red, green, blue and alpha parameters.
Definition RGBAColor.h:41
GLESObject()
Creates a new GLESceneGraph object.
PhantomAttribute::PhantomMode phantomMode_
The phantom mode which is used in this view.
Definition GLESView.h:188
RGBAColor backgroundColor_
The view's background color.
Definition GLESView.h:179
bool useHeadlight_
True, if the view's headlight is enabled.
Definition GLESView.h:182
Scalar aspectRatio() const override
Returns the aspect ratio of this view.
RGBAColor backgroundColor() const override
Returns the background color of the view.
HomogenousMatrix4 transformation() const override
Returns the transformation between view and world (the inverse of the known View Matrix).
bool setPhantomMode(const PhantomAttribute::PhantomMode mode) override
Sets the phantom mode of this view.
bool setNearDistance(const Scalar distance) override
Sets the distance to the near clippling plane.
Scalar farDistance() const override
Returns the distance to the far clipping plane.
GLESView()
Creates a new view object.
LightSourceRef headlight_
Thew view's headlight object.
Definition GLESView.h:185
SquareMatrix4 clip_T_view_
The view's projection matrix, which is clip_T_view.
Definition GLESView.h:164
Scalar aspectRatio_
Thew view's aspect ratio defined by the ratio between width and height, with range (0,...
Definition GLESView.h:170
bool setAspectRatio(const Scalar aspectRatio) override
Sets the aspect ratio of this view.
void setTransformation(const HomogenousMatrix4 &transformation) override
Sets the position and orientation of the view by a viewing matrix.
friend class GLESFramebuffer
Definition GLESView.h:35
Scalar nearDistance() const override
Returns the distance to the near clipping plane.
bool useHeadlight() const override
Returns whether the headlight is enabled.
Scalar nearDistance_
The view's near clipping plane, with range (0, farDistance_).
Definition GLESView.h:173
virtual bool calculateProjectionMatrix()
(Re-)calculates the view projection matrix.
PhantomAttribute::PhantomMode phantomMode() const override
Returns the phantom mode of this view.
Scalar farDistance_
The view's far clipping plane, with range (nearDistance_, infinity).
Definition GLESView.h:176
bool setBackgroundColor(const RGBAColor &color) override
Sets the background color of the view.
SquareMatrix4 projectionMatrix() const override
Returns the view projection matrix.
bool setFarDistance(const Scalar distance) override
Sets the distance to the far clipping plane.
const LightSourceRef & headlight() const
Returns the headlight object of this view.
bool setNearFarDistance(const Scalar nearDistance, const Scalar farDistance) override
Sets the distance to the near and far clipping plane.
void setUseHeadlight(const bool state) override
Sets whether the headlight should be activated.
HomogenousMatrix4 world_T_view_
The transformation between view and world.
Definition GLESView.h:167
~GLESView() override
Destructs a view object.
PhantomMode
Definition of different phantom modes.
Definition PhantomAttribute.h:43
@ PM_DEFAULT
Default phantom mode.
Definition PhantomAttribute.h:47
View()
Creates a new view object.
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
SquareMatrixT4< Scalar > SquareMatrix4
Definition of the SquareMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with ...
Definition SquareMatrix4.h:39
float Scalar
Definition of a scalar type.
Definition Math.h:129
SmartObjectRef< LightSource > LightSourceRef
Definition of a smart object reference holding a light source object.
Definition LightSource.h:31
Namespace of the Rendering GLESceneGraph library.
Definition rendering/glescenegraph/android/Android.h:20
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15