Sunshine latest
Self-hosted game stream host for Moonlight.
gl::frame_buf_t Class Reference
Inheritance diagram for gl::frame_buf_t:
[legend]
Collaboration diagram for gl::frame_buf_t:
[legend]

Public Member Functions

template<class It >
void bind (It it_begin, It it_end)
 
void bind (std::nullptr_t, std::nullptr_t)
 
void copy (int id, int texture, int offset_x, int offset_y, int width, int height)
 
 frame_buf_t (frame_buf_t &&)=default
 
frame_buf_toperator= (frame_buf_t &&)=default
 
- Public Member Functions inherited from util::buffer_t< GLuint >
GLuint * begin ()
 
const GLuint * begin () const
 
 buffer_t (buffer_t &&o) noexcept
 
 buffer_t (const buffer_t &o)
 
 buffer_t (size_t elements)
 
 buffer_t (size_t elements, const GLuint &t)
 
GLuint * end ()
 
const GLuint * end () const
 
void fake_resize (std::size_t els)
 
buffer_toperator= (buffer_t &&o) noexcept
 
GLuint & operator[] (size_t el)
 
const GLuint & operator[] (size_t el) const
 
size_t size () const
 

Static Public Member Functions

static frame_buf_t make (std::size_t count)
 

Member Function Documentation

◆ copy()

void gl::frame_buf_t::copy ( int id,
int texture,
int offset_x,
int offset_y,
int width,
int height )

Copies a part of the framebuffer to texture


The documentation for this class was generated from the following files: