8#ifndef META_OCEAN_RENDERING_GLES_POINTS_H
9#define META_OCEAN_RENDERING_GLES_POINTS_H
65 void setIndices(
const unsigned int numberImplicitPoints)
override;
This class implements a GLESceneGraph attribute set object.
Definition GLESAttributeSet.h:40
This class implements a base for all GLESceneGraph framebuffers.
Definition rendering/glescenegraph/GLESFramebuffer.h:34
GLESIndependentPrimitive()
Creates a new GLESceneGraph independent primitive object.
friend class GLESFactory
Definition GLESPoints.h:33
void render(const GLESFramebuffer &framebuffer, const SquareMatrix4 &projectionMatrix, const HomogenousMatrix4 &camera_T_object, const HomogenousMatrix4 &camera_T_world, const SquareMatrix3 &normalMatrix, GLESAttributeSet &attributeSet, const Lights &lights) override
Renders the points defined by the associated vertex set and the defined indices.
void setIndices(const unsigned int numberImplicitPoints) override
Sets the indices of the used vertex points.
GLuint vboIndices_
Vertex buffer object for point indices.
Definition GLESPoints.h:116
~GLESPoints() override
Destructs a GLESceneGraph points object.
VertexIndices explicitPointIndices_
The point indices, in case points are defined via explicit point indices.
Definition GLESPoints.h:119
Scalar pointSize_
The size of all points (the diameter), in pixels, with range (0, infinity).
Definition GLESPoints.h:125
Scalar pointSize() const override
Returns the size in pixels at which all points will be rendered.
VertexIndices indices() const override
Returns the indices of the used vertex points.
GLESPoints()
Creates a new GLESceneGraph points object.
void drawPoints()
Draws all points with the currently bound shader program.
void setIndices(const VertexIndices &indices) override
Sets the indices of the used vertex points.
unsigned int numberIndices() const override
Returns the number of point indices defined in this primitive.
unsigned int numberImplicitPoints_
Number of points, in case points are defined implicitly based on points with consecutive indices.
Definition GLESPoints.h:122
void render(const SquareMatrix4 &projectionMatrix, const HomogenousMatrix4 &camera_T_object, const HomogenousMatrix4 &camera_T_world, const SquareMatrix3 &normalMatrix, GLESShaderProgram &shaderProgram) override
Renders the triangles defined by the associated vertex set and the defined triangle faces.
void release()
Releases the internal vertex buffer object containing the point indices.
void setPointSize(const Scalar size) override
Sets the size in pixels at which all points will be rendered.
void updateBoundingBox() override
Updates the bounding box of this primitive.
This class implements a container for an OpenGL ES shader program.
Definition GLESShaderProgram.h:53
Points()
Creates a new points object.
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
SquareMatrixT3< Scalar > SquareMatrix3
Definition of the SquareMatrix3 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with ...
Definition SquareMatrix3.h:43
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
std::vector< VertexIndex > VertexIndices
Definition of a vector holding vertex indices.
Definition rendering/Rendering.h:101
std::vector< LightPair > Lights
Definition of a set holding light sources.
Definition GLESLightSource.h:44
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