Sunshine master
Self-hosted game stream host for Moonlight.
gl::tex_t Class Reference

OpenGL texture handle wrapper. More...

#include <src/platform/linux/graphics.h>

Inheritance diagram for gl::tex_t:
[legend]
Collaboration diagram for gl::tex_t:
[legend]

Public Member Functions

tex_toperator= (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_toperator= (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.
 

Detailed Description

OpenGL texture handle wrapper.

Member Function Documentation

◆ make()

tex_t gl::tex_t::make ( std::size_t count)
static

Allocate the underlying object and wrap it in the owning handle.

Parameters
countNumber of objects or handles to create.
Returns
Created backend object, or null when creation fails.

◆ operator=()

tex_t & gl::tex_t::operator= ( tex_t && )
default

Assign state from another instance while preserving ownership semantics.

Returns
Reference or value produced by the operator.

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