Ocean
Loading...
Searching...
No Matches
GLESPrimitive.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_RENDERING_GLES_PRIMITIVE_H
9#define META_OCEAN_RENDERING_GLES_PRIMITIVE_H
10
13
15
16namespace Ocean
17{
18
19namespace Rendering
20{
21
22namespace GLESceneGraph
23{
24
25/**
26 * This class implements the base class for all GLESceneGraph primitive objects.
27 * @ingroup renderinggles
28 */
29class OCEAN_RENDERING_GLES_EXPORT GLESPrimitive :
30 virtual public GLESRenderable,
31 virtual public Primitive
32{
33 public:
34
35 /**
36 * Sets the vetex set of this primitive object.
37 * @see Primitive::setVertexSet().
38 */
39 void setVertexSet(const VertexSetRef& vertexSet) override;
40
41 protected:
42
43 /**
44 * Creates a new GLESceneGraph primitive object.
45 */
47
48 /**
49 * Destructs a GLESceneGraph primitive object.
50 */
51 ~GLESPrimitive() override;
52
53 /**
54 * Updates the bounding box of this primitive.
55 */
56 virtual void updateBoundingBox() = 0;
57};
58
59}
60
61}
62
63}
64
65#endif // META_OCEAN_RENDERING_GLES_PRIMITIVE_H
GLESPrimitive()
Creates a new GLESceneGraph primitive object.
void setVertexSet(const VertexSetRef &vertexSet) override
Sets the vetex set of this primitive object.
virtual void updateBoundingBox()=0
Updates the bounding box of this primitive.
~GLESPrimitive() override
Destructs a GLESceneGraph primitive object.
GLESRenderable()
Creates a new GLESceneGraph renderable object.
const VertexSetRef & vertexSet() const
Returns the vertex set of this primitive object.
Definition Primitive.h:81
Primitive()
Creates a new primitive object.
SmartObjectRef< VertexSet > VertexSetRef
Definition of a smart object reference holding a vertex set node.
Definition VertexSet.h:31
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