Ocean
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 
16 namespace Ocean
17 {
18 
19 namespace Rendering
20 {
21 
22 namespace GLESceneGraph
23 {
24 
25 /**
26  * This class implements the base class for all GLESceneGraph primitive objects.
27  * @ingroup renderinggles
28  */
29 class 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
This class implements the base class for all GLESceneGraph primitive objects.
Definition: GLESPrimitive.h:32
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.
This class is the base class for all GLESceneGraph renderable objects.
Definition: GLESRenderable.h:42
This class is the base class for all primitive objects.
Definition: Primitive.h:42
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15