8 #ifndef META_OCEAN_RENDERING_GLES_LINES_H
9 #define META_OCEAN_RENDERING_GLES_LINES_H
22 namespace GLESceneGraph
65 void setIndices(
const unsigned int numberImplicitLines)
override;
116 GLuint vboIndices_ = 0u;
122 unsigned int numberImplicitLines_ = 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 GLESceneGraph lines object.
Definition: GLESLines.h:32
~GLESLines() override
Destructs a GLESceneGraph lines object.
void updateBoundingBox() override
Updates the bounding box of this primitive.
GLESLines()
Creates a new GLESceneGraph lines object.
void setIndices(const VertexIndices &indices) override
Sets the indices of the used vertex lines.
VertexIndices explicitLineIndices_
The line indices, in case lines are defined via explicit line indices.
Definition: GLESLines.h:119
void drawLines()
Draws all lines with the currently bound shader program.
void setLineWidth(const Scalar width) override
Sets the width (thickness) in pixels at which all lines will be rendered.
Scalar lineWidth() const override
Returns the width (thickness ) in pixels at which all lines will be rendered.
unsigned int numberIndices() const override
Returns the number of line indices defined in 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 triangles defined by the associated vertex set and the defined triangle faces.
VertexIndices indices() const override
Returns the indices of the used vertex lines.
void setIndices(const unsigned int numberImplicitLines) override
Sets the indices of the used vertex lines.
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 lines defined by the associated vertex set and the defined indices.
void release()
Releases the internal vertex buffer object containing the line indices.
This class implements a container for an OpenGL ES shader program.
Definition: GLESShaderProgram.h:53
This class is the base for all lines objects.
Definition: Lines.h:39
float Scalar
Definition of a scalar type.
Definition: Math.h:128
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
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15