Path Tracing
Loading...
Searching...
No Matches
GLTexture Class Reference

RAII wrapper around an OpenGL texture object of any target Be it GL_TEXTURE_2D, GL_TEXTURE_2D_ARRAY... More...

#include <texture.hpp>

Public Member Functions

 GLTexture ()=default
 ~GLTexture ()
 GLTexture (const GLTexture &)=delete
GLTexture & operator= (const GLTexture &)=delete
 GLTexture (GLTexture &&other) noexcept
GLTexture & operator= (GLTexture &&other) noexcept
void create (GLenum target)
void reset ()
GLuint id () const
GLenum target () const
 operator bool () const

Detailed Description

RAII wrapper around an OpenGL texture object of any target Be it GL_TEXTURE_2D, GL_TEXTURE_2D_ARRAY...

Constructor & Destructor Documentation

◆ GLTexture() [1/3]

GLTexture::GLTexture ( )
default

◆ ~GLTexture()

GLTexture::~GLTexture ( )
inline

◆ GLTexture() [2/3]

GLTexture::GLTexture ( const GLTexture & )
delete

◆ GLTexture() [3/3]

GLTexture::GLTexture ( GLTexture && other)
inlinenoexcept

Member Function Documentation

◆ create()

void GLTexture::create ( GLenum target)
inline

◆ id()

GLuint GLTexture::id ( ) const
inline

◆ operator bool()

GLTexture::operator bool ( ) const
inlineexplicit

◆ operator=() [1/2]

GLTexture & GLTexture::operator= ( const GLTexture & )
delete

◆ operator=() [2/2]

GLTexture & GLTexture::operator= ( GLTexture && other)
inlinenoexcept

◆ reset()

void GLTexture::reset ( )
inline

◆ target()

GLenum GLTexture::target ( ) const
inline

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