8 #ifndef META_OCEAN_RENDERING_GLES_UNDISTORTED_BACKGROUND_H
9 #define META_OCEAN_RENDERING_GLES_UNDISTORTED_BACKGROUND_H
26 namespace GLESceneGraph
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.
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.
Timestamp backgroundCameraTimestamp
Timestamp of the camera frame type.
Definition: GLESUndistortedBackground.h:149
bool setDisplayType(const DisplayType type) override
Sets the display type of this background object.
Texture2DRef backgroundOffsetTexture
Definition: GLESUndistortedBackground.h:152
unsigned int backgroundVerticalElements
Number of vertical elements.
Definition: GLESUndistortedBackground.h:146
VertexSetRef backgroundVertexSet
Vertexset for the background geometry.
Definition: GLESUndistortedBackground.h:134
void onMediumCameraChanged(const Timestamp timestamp) override
Event function if the camera of the used medium has changed.
unsigned int backgroundHorizontalElements
Number of horizontal elements.
Definition: GLESUndistortedBackground.h:143
SquareMatrix4 backgroundNormalizedCameraFrustumMatrix
Definition: GLESUndistortedBackground.h:151
Texture2DRef offsetTexture() const
Returns the offset texture.
const Timestamp & cameraTimestamp() const
Returns the timestamp of the most recent camera change.
AttributeSetRef backgroundAttributeSet
Attribute set holding rendering attributes of the background object.
Definition: GLESUndistortedBackground.h:140
TriangleStripsRef backgroundTriangleStrips
Triangle strips for the background geometry.
Definition: GLESUndistortedBackground.h:131
TexturesRef backgroundTextures
Textures object holding the 2D texture.
Definition: GLESUndistortedBackground.h:137
virtual void rebuildPrimitive()
Rebuilds the primitive vertex, normals and face sets.
virtual unsigned int horizontalElements() const
Returns the number of horizontal elements.
const SquareMatrix4 & normalizedCameraFrustumMatrix() const
Returns the normalized camera frustum matrix of the background.
virtual void setHorizontalElements(const unsigned int elements)
Sets the number of horizontal elements.
GLESUndistortedBackground()
Creates a new GLESceneGraph undistorted background object.
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:36
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