8#ifndef META_OCEAN_RENDERING_GLES_UNDISTORTED_BACKGROUND_H
9#define META_OCEAN_RENDERING_GLES_UNDISTORTED_BACKGROUND_H
26namespace GLESceneGraph
143 unsigned int horizontalElements_ = 20u;
146 unsigned int verticalElements_ = 20u;
This class implements the base class for all GLESceneGraph background nodes.
Definition GLESBackground.h:34
This class implements a class factory for all GLESceneGraph objects.
Definition GLESFactory.h:30
This class implements a base for all GLESceneGraph framebuffers.
Definition rendering/glescenegraph/GLESFramebuffer.h:34
This class implements a traverser for renderables.
Definition GLESTraverser.h:39
This class implements an undistorted background for the GLESceneGraph render engine.
Definition GLESUndistortedBackground.h:36
void addToTraverser(const GLESFramebuffer &framebuffer, const SquareMatrix4 &projectionMatrix, const HomogenousMatrix4 &camera_T_parent, const Lights &lights, GLESTraverser &traverser) const override
Adds this node and all child node to a traverser.
Texture2DRef texture() const
Returns the background texture.
SquareMatrix4 normalizedCameraFrustumMatrix_
The normalized camera frustum matrix mapping 3D points to texture coordinates [0, 1],...
Definition GLESUndistortedBackground.h:152
virtual void setVerticalElements(const unsigned int elements)
Sets the number of vertical elements.
virtual unsigned int verticalElements() const
Returns the number of vertical elements.
~GLESUndistortedBackground() override
Destructs a GLESceneGraph undistorted background object.
const Timestamp & cameraTimestamp() const
Returns the timestamp of the most recent camera change.
TexturesRef textures_
Textures object holding the 2D texture.
Definition GLESUndistortedBackground.h:137
bool setDisplayType(const DisplayType type) override
Sets the display type of this background object.
const SquareMatrix4 & normalizedCameraFrustumMatrix() const
Returns the normalized camera frustum matrix of the background.
void onMediumCameraChanged(const Timestamp timestamp) override
Event function if the camera of the used medium has changed.
AttributeSetRef attributeSet_
Attribute set holding rendering attributes of the background object.
Definition GLESUndistortedBackground.h:140
Texture2DRef offsetTexture() const
Returns the offset texture.
TriangleStripsRef triangleStrips_
Triangle strips for the background geometry.
Definition GLESUndistortedBackground.h:131
Timestamp cameraTimestamp_
Timestamp of the camera frame type.
Definition GLESUndistortedBackground.h:149
virtual void rebuildPrimitive()
Rebuilds the primitive vertex, normals and face sets.
virtual unsigned int horizontalElements() const
Returns the number of horizontal elements.
virtual void setHorizontalElements(const unsigned int elements)
Sets the number of horizontal elements.
GLESUndistortedBackground()
Creates a new GLESceneGraph undistorted background object.
VertexSetRef vertexSet_
Vertexset for the background geometry.
Definition GLESUndistortedBackground.h:134
Texture2DRef offsetTexture_
Optional texture storing per-pixel offset data for additional distortion correction during background...
Definition GLESUndistortedBackground.h:155
This class is the base class for all undistorted backgrounds.
Definition UndistortedBackground.h:46
DisplayType
Definition of different distortion display types.
Definition UndistortedBackground.h:53
This class implements a timestamp.
Definition Timestamp.h:64
std::vector< LightPair > Lights
Definition of a set holding light sources.
Definition GLESLightSource.h:44
The namespace covering the entire Ocean framework.
Definition Accessor.h:15