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
11
#include "
ocean/rendering/glescenegraph/GLESceneGraph.h
"
12
#include "
ocean/rendering/glescenegraph/GLESTexture2D.h
"
13
14
#include "
ocean/rendering/MediaTexture2D.h
"
15
16
namespace
Ocean
17
{
18
19
namespace
Rendering
20
{
21
22
namespace
GLESceneGraph
23
{
24
25
/**
26
* This class wraps a GLESceneGraph media texture object.
27
* @ingroup renderinggles
28
*/
29
class
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
*/
54
GLESMediaTexture2D
();
55
56
/**
57
* Destructs a GLESceneGraph texture 2D object.
58
*/
59
~GLESMediaTexture2D
()
override
;
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.
70
Timestamp
renderTimestamp_
;
71
};
72
73
}
74
75
}
76
77
}
78
79
#endif
// META_OCEAN_RENDERING_GLES_MEDIA_TEXTURE_2D_H
GLESTexture2D.h
GLESceneGraph.h
MediaTexture2D.h
Ocean::Rendering::GLESceneGraph::GLESFactory
This class implements a class factory for all GLESceneGraph objects.
Definition
GLESFactory.h:30
Ocean::Rendering::GLESceneGraph::GLESMediaTexture2D
This class wraps a GLESceneGraph media texture object.
Definition
GLESMediaTexture2D.h:32
Ocean::Rendering::GLESceneGraph::GLESMediaTexture2D::onDynamicUpdate
void onDynamicUpdate(const ViewRef &view, const Timestamp timestamp) override
Update function called by the framebuffer.
Ocean::Rendering::GLESceneGraph::GLESMediaTexture2D::isValid
bool isValid() const override
Returns whether the texture internally holds valid data.
Ocean::Rendering::GLESceneGraph::GLESMediaTexture2D::GLESMediaTexture2D
GLESMediaTexture2D()
Creates a new GLESceneGraph texture 2D object.
Ocean::Rendering::GLESceneGraph::GLESMediaTexture2D::renderTimestamp_
Timestamp renderTimestamp_
The recent timestamp of the rendering engine.
Definition
GLESMediaTexture2D.h:70
Ocean::Rendering::GLESceneGraph::GLESMediaTexture2D::~GLESMediaTexture2D
~GLESMediaTexture2D() override
Destructs a GLESceneGraph texture 2D object.
Ocean::Rendering::GLESceneGraph::GLESMediaTexture2D::descriptiveInformation
std::string descriptiveInformation() const override
Returns descriptive information about the object as string.
Ocean::Rendering::GLESceneGraph::GLESTexture2D
This class wraps a GLESceneGraph texture object.
Definition
GLESTexture2D.h:34
Ocean::Rendering::MediaTexture2D
This class is the base class for all 2D textures receiving their image content from Media objects.
Definition
MediaTexture2D.h:38
Ocean::Rendering::SmartObjectRef< View >
Ocean::Timestamp
This class implements a timestamp.
Definition
Timestamp.h:63
Ocean
The namespace covering the entire Ocean framework.
Definition
Accessor.h:15
impl
ocean
rendering
glescenegraph
GLESMediaTexture2D.h
Generated on Mon Nov 24 2025 23:44:23 for Ocean by
1.9.8