|
Sunshine master
Self-hosted game stream host for Moonlight.
|
OpenGL texture handle wrapper. More...
#include <src/platform/linux/graphics.h>
Public Member Functions | |
| tex_t & | operator= (tex_t &&)=default |
| Assign state from another instance while preserving ownership semantics. | |
| tex_t (tex_t &&)=default | |
| Move ownership of OpenGL texture object names. | |
Public Member Functions inherited from util::buffer_t< GLuint > | |
| GLuint * | begin () |
| Return an iterator to the first byte in the buffer view. | |
| const GLuint * | begin () const |
| Return an iterator to the first byte in the buffer view. | |
| buffer_t (buffer_t &&o) noexcept | |
| Construct an owning contiguous buffer. | |
| buffer_t (const buffer_t &o) | |
| Construct an owning contiguous buffer. | |
| buffer_t (size_t elements) | |
| Construct an owning contiguous buffer. | |
| buffer_t (size_t elements, const GLuint &t) | |
| Construct an owning contiguous buffer. | |
| GLuint * | end () |
| Return an iterator one past the final byte in the buffer view. | |
| const GLuint * | end () const |
| Return an iterator one past the final byte in the buffer view. | |
| void | fake_resize (std::size_t els) |
| Update the logical element count without reallocating storage. | |
| buffer_t & | operator= (buffer_t &&o) noexcept |
| Assign state from another instance while preserving ownership semantics. | |
| GLuint & | operator[] (size_t el) |
| Access an element in the owning buffer. | |
| const GLuint & | operator[] (size_t el) const |
| Access an element in the owning buffer. | |
| size_t | size () const |
| Return the serialized size of the current object. | |
Static Public Member Functions | |
| static tex_t | make (std::size_t count) |
| Allocate the underlying object and wrap it in the owning handle. | |
OpenGL texture handle wrapper.
|
static |
Allocate the underlying object and wrap it in the owning handle.
| count | Number of objects or handles to create. |
Assign state from another instance while preserving ownership semantics.