Ocean
apple/GLESWindowFramebuffer.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_APPLE_GLES_WINDOW_FRAMEBUFFER_H
9 #define META_OCEAN_RENDERING_GLES_APPLE_GLES_WINDOW_FRAMEBUFFER_H
10 
15 
17 
18 namespace Ocean
19 {
20 
21 namespace Rendering
22 {
23 
24 namespace GLESceneGraph
25 {
26 
27 namespace Apple
28 {
29 
30 /**
31  * This class is the base class for all GLESceneGraph window framebuffers for Apple platforms.
32  * @ingroup renderinggles
33  */
34 class OCEAN_RENDERING_GLES_EXPORT GLESWindowFramebuffer :
35  virtual public GLESFramebuffer,
36  virtual public WindowFramebuffer
37 {
38  friend class GLESEngineApple;
39 
40  public:
41 
42  /**
43  * Initialize the OpenGL ES dispaly and context.
44  * @return True, if succeeded
45  */
46  bool initializeContext() override;
47 
48  /**
49  * Returns the transformation between display and device.
50  * @see Framebuffer::device_T_display()
51  */
53 
54  /**
55  * Sets the transformation between display and device.
56  * @see Framebuffer::setDevice_T_display().
57  */
58  bool setDevice_T_display(const HomogenousMatrix4& device_T_display) override;
59 
60  private:
61 
62  /**
63  * Creates a new window framebuffer.
64  */
66 
67  /**
68  * Destructs a window framebuffer.
69  */
71 
72  protected:
73 
74  /// The traverser which is used for rendering.
76 
77  /// The transformation between display and device
79 };
80 
81 }
82 
83 }
84 
85 }
86 
87 }
88 
89 #endif // META_OCEAN_RENDERING_GLES_APPLE_GLES_WINDOW_FRAMEBUFFER_H
This class implements the engine for Apple platforms.
Definition: GLESEngineApple.h:31
This class is the base class for all GLESceneGraph window framebuffers for Apple platforms.
Definition: apple/GLESWindowFramebuffer.h:37
GLESTraverser traverser_
The traverser which is used for rendering.
Definition: apple/GLESWindowFramebuffer.h:75
GLESWindowFramebuffer()
Creates a new window framebuffer.
HomogenousMatrix4 device_T_display() const override
Returns the transformation between display and device.
~GLESWindowFramebuffer() override
Destructs a window framebuffer.
bool setDevice_T_display(const HomogenousMatrix4 &device_T_display) override
Sets the transformation between display and device.
HomogenousMatrix4 device_T_display_
The transformation between display and device.
Definition: apple/GLESWindowFramebuffer.h:78
bool initializeContext() override
Initialize the OpenGL ES dispaly and context.
This class implements a base for all GLESceneGraph framebuffers.
Definition: rendering/glescenegraph/GLESFramebuffer.h:34
This class implements a traverser for renderables.
Definition: GLESTraverser.h:39
This class is the base class for all window framebuffers.
Definition: rendering/WindowFramebuffer.h:55
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15