8#ifndef META_OCEAN_RENDERING_GLES_TRIANGLES_H
9#define META_OCEAN_RENDERING_GLES_TRIANGLES_H
60 void setFaces(
const unsigned int numberImplicitTriangleFaces)
override;
84 void drawTriangles(
const unsigned int firstTriangle,
const unsigned int numberTriangles);
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.
This class implements a container for an OpenGL ES shader program.
Definition GLESShaderProgram.h:53
friend class GLESFactory
Definition GLESTriangles.h:34
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.
GLuint vboIndices_
Vertex buffer object for triangle indices.
Definition GLESTriangles.h:112
void setFaces(const unsigned int numberImplicitTriangleFaces) override
Sets the faces of this triangles object.
unsigned int numberImplicitTriangleFaces_
Number of triangle faces, in case triangles are defined implicitly based on vertices with consecutive...
Definition GLESTriangles.h:118
~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.
Triangles()
Creates a new triangles 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
std::vector< TriangleFace > TriangleFaces
Definition of a vector holding triangle faces.
Definition TriangleFace.h:30
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