8 #ifndef META_OCEAN_RENDERING_GLES_TRIANGLES_H
9 #define META_OCEAN_RENDERING_GLES_TRIANGLES_H
22 namespace GLESceneGraph
60 void setFaces(
const unsigned int numberImplicitTriangleFaces)
override;
84 void drawTriangles(
const unsigned int firstTriangle,
const unsigned int numberTriangles);
112 GLuint vboIndices_ = 0u;
118 unsigned int numberImplicitTriangleFaces_ = 0u;
This class implements a GLESceneGraph attribute set object.
Definition: GLESAttributeSet.h:40
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 the base class for all GLESceneGraph independent primitive.
Definition: GLESIndependentPrimitive.h:32
This class implements a container for an OpenGL ES shader program.
Definition: GLESShaderProgram.h:53
This class implements a GLESceneGraph triangles object.
Definition: GLESTriangles.h:33
void drawTriangles(const unsigned int firstTriangle, const unsigned int numberTriangles)
Draws a subset of all triangles with the currently bound shader program.
void updateBoundingBox() override
Updates the bounding box of this primitive.
void render(const SquareMatrix4 &projectionMatrix, const HomogenousMatrix4 &camera_T_object, const HomogenousMatrix4 &camera_T_world, const SquareMatrix3 &normalMatrix, GLESShaderProgram &shaderProgram) override
Renders the renderable node.
void setFaces(const unsigned int numberImplicitTriangleFaces) override
Sets the faces of this triangles object.
~GLESTriangles() override
Destructs a GLESceneGraph triangles object.
void release()
Releases the internal vertex buffer object containing the triangle indices.
unsigned int numberFaces() const override
Returns the number of triangle faces defined in this primitive.
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 triangles defined by the associated vertex set and the defined triangle faces.
void setFaces(const TriangleFaces &faces) override
Sets the faces of this triangles object.
TriangleFaces faces() const override
Returns the faces of this triangles object.
TriangleFaces explicitTriangleFaces_
The vertex indices, in case triangles are defined via vertex indices, three for each triangle.
Definition: GLESTriangles.h:115
void drawTriangles()
Draws all triangles with the currently bound shader program.
GLESTriangles()
Creates a new GLESceneGraph triangles object.
This class is the base for all triangles objects.
Definition: Triangles.h:42
std::vector< TriangleFace > TriangleFaces
Definition of a vector holding triangle faces.
Definition: TriangleFace.h:23
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