Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
gl::tex_t Class Reference

OpenGL texture handle wrapper. More...

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

Inheritance diagram for gl::tex_t:
Collaboration diagram for gl::tex_t:

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.
GLuint * end ()
 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
 Exchange allocations and logical counts with the source buffer.
GLuint & operator[] (size_t el)
 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: