Ocean
Loading...
Searching...
No Matches
GLESMediaTexture2D.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_MEDIA_TEXTURE_2D_H
9#define META_OCEAN_RENDERING_GLES_MEDIA_TEXTURE_2D_H
10
13
15
16namespace Ocean
17{
18
19namespace Rendering
20{
21
22namespace GLESceneGraph
23{
24
25/**
26 * This class wraps a GLESceneGraph media texture object.
27 * @ingroup renderinggles
28 */
29class OCEAN_RENDERING_GLES_EXPORT GLESMediaTexture2D final :
30 virtual public GLESTexture2D,
31 virtual public MediaTexture2D
32{
33 friend class GLESFactory;
34
35 public:
36
37 /**
38 * Returns whether the texture internally holds valid data.
39 * @see Texture::isValid().
40 */
41 bool isValid() const override;
42
43 /**
44 * Returns descriptive information about the object as string.
45 * @see Object::descriptiveInformation().
46 */
47 std::string descriptiveInformation() const override;
48
49 protected:
50
51 /**
52 * Creates a new GLESceneGraph texture 2D object.
53 */
55
56 /**
57 * Destructs a GLESceneGraph texture 2D object.
58 */
60
61 /**
62 * Update function called by the framebuffer.
63 * @see DynamicObject::onDynamicUpdate().
64 */
65 void onDynamicUpdate(const ViewRef& view, const Timestamp timestamp) override;
66
67 protected:
68
69 /// The recent timestamp of the rendering engine.
71};
72
73}
74
75}
76
77}
78
79#endif // META_OCEAN_RENDERING_GLES_MEDIA_TEXTURE_2D_H
This class implements a class factory for all GLESceneGraph objects.
Definition GLESFactory.h:30
This class wraps a GLESceneGraph media texture object.
Definition GLESMediaTexture2D.h:32
void onDynamicUpdate(const ViewRef &view, const Timestamp timestamp) override
Update function called by the framebuffer.
bool isValid() const override
Returns whether the texture internally holds valid data.
GLESMediaTexture2D()
Creates a new GLESceneGraph texture 2D object.
Timestamp renderTimestamp_
The recent timestamp of the rendering engine.
Definition GLESMediaTexture2D.h:70
~GLESMediaTexture2D() override
Destructs a GLESceneGraph texture 2D object.
std::string descriptiveInformation() const override
Returns descriptive information about the object as string.
This class wraps a GLESceneGraph texture object.
Definition GLESTexture2D.h:34
This class is the base class for all 2D textures receiving their image content from Media objects.
Definition MediaTexture2D.h:38
This class implements a timestamp.
Definition Timestamp.h:63
The namespace covering the entire Ocean framework.
Definition Accessor.h:15