8#ifndef META_OCEAN_PLATFORM_GL_FRAMEBUFFER_OBJECT_H
9#define META_OCEAN_PLATFORM_GL_FRAMEBUFFER_OBJECT_H
57 inline void release();
115 GLint framebufferOldViewportCoordinates[4];
122 scopedFramebufferObject(&framebufferObject)
134 if (scopedFramebufferObject)
136 scopedFramebufferObject->unbindRenderTarget();
137 scopedFramebufferObject =
nullptr;
This class implements the base class for all object which have an associated context.
Definition ContextAssociated.h:31
Scoped object simplifying the rendering to a texture.
Definition FramebufferObject.h:39
void release()
Explicitly releases the scoped object and unbinds the associated render target (already before the sc...
Definition FramebufferObject.h:132
~ScopedRenderToTexture()
Destroys the scoped render to texture object.
Definition FramebufferObject.h:127
ScopedRenderToTexture(FramebufferObject &framebufferObject, Texture &texture)
Creates a new scoped render to texture object.
Definition FramebufferObject.h:121
ScopedRenderToTexture(const ScopedRenderToTexture &object)=delete
Disabled copy constructor.
FramebufferObject * scopedFramebufferObject
Framebuffer object for rendering to texture.
Definition FramebufferObject.h:76
ScopedRenderToTexture & operator=(const ScopedRenderToTexture &object)=delete
The disabled assign operator.
This class implements a 2D OpenGL texture.
Definition platform/gl/Texture.h:30
The namespace covering the entire Ocean framework.
Definition Accessor.h:15