19 #ifndef MIR_COMPOSITOR_SCREENCAST_DISPLAY_BUFFER_H_
20 #define MIR_COMPOSITOR_SCREENCAST_DISPLAY_BUFFER_H_
24 #include <GLES2/gl2.h>
33 template <
void (*Generate)(GLsizei,GLu
int*),
void (*Delete)(GLsizei,GLu
int const*)>
39 operator GLuint()
const {
return resource; }
76 GLint old_viewport[4];
GLResource()
Definition: screencast_display_buffer.h:37
Definition: screencast_display_buffer.h:48
Interface to an output framebuffer.
Definition: display_buffer.h:39
Definition: screencast_display_buffer.h:34
~GLResource()
Definition: screencast_display_buffer.h:38
std::list< std::shared_ptr< Renderable > > RenderableList
Definition: renderable.h:88
MirOrientation orientation() const
Returns the orientation of the display buffer relative to how the user should see it (the orientation...
Definition: screencast_display_buffer.cpp:108
Definition: renderable.h:33
~ScreencastDisplayBuffer()
Definition: screencast_display_buffer.cpp:58
void make_current()
Makes the DisplayBuffer the current GL rendering target.
Definition: screencast_display_buffer.cpp:68
geometry::Rectangle view_area() const
The area the DisplayBuffer occupies in the virtual screen space.
Definition: screencast_display_buffer.cpp:63
Definition: rectangle.h:33
bool can_bypass() const
to be deprecated
Definition: screencast_display_buffer.cpp:103
void post_update()
This will trigger OpenGL rendering and post the result to the screen.
Definition: screencast_display_buffer.cpp:98
void render_and_post_update(graphics::RenderableList const &, std::function< void(graphics::Renderable const &)> const &)
Definition: screencast_display_buffer.cpp:88
void release_current()
Releases the current GL rendering target.
Definition: screencast_display_buffer.cpp:81
ScreencastDisplayBuffer(geometry::Rectangle const &rect, graphics::Buffer &buffer)
Definition: screencast_display_buffer.cpp:28