Developer documentation
Version 3.0.3-105-gd3941f44
MR::GUI::GL::Texture Class Reference

#include "gui/opengl/gl.h"

Public Member Functions

 Texture ()
 
 ~Texture ()
 
 Texture (const Texture &)
 
 Texture (Texture &&t)
 
Textureoperator= (Texture &&t)
 
void cache_copy (const Texture &t)
 
 operator GLuint () const
 
void gen (GLenum target, GLint interp_type=gl::LINEAR)
 
GLenum type () const
 
void clear ()
 
void bind () const
 
void set_interp (GLint type) const
 
void set_interp_on (bool interpolate) const
 

Protected Attributes

Context::Checker check_context
 
GLuint id
 
GLenum tex_type
 

Detailed Description

Definition at line 165 of file gl.h.

Constructor & Destructor Documentation

◆ Texture() [1/3]

MR::GUI::GL::Texture::Texture ( )
inline

Definition at line 167 of file gl.h.

◆ ~Texture()

MR::GUI::GL::Texture::~Texture ( )
inline

Definition at line 168 of file gl.h.

◆ Texture() [2/3]

MR::GUI::GL::Texture::Texture ( const Texture )
inline

Definition at line 169 of file gl.h.

◆ Texture() [3/3]

MR::GUI::GL::Texture::Texture ( Texture &&  t)
inline

Definition at line 170 of file gl.h.

Member Function Documentation

◆ bind()

void MR::GUI::GL::Texture::bind ( ) const
inline

Definition at line 201 of file gl.h.

◆ cache_copy()

void MR::GUI::GL::Texture::cache_copy ( const Texture t)
inline

Definition at line 172 of file gl.h.

◆ clear()

void MR::GUI::GL::Texture::clear ( )
inline

Definition at line 192 of file gl.h.

◆ gen()

void MR::GUI::GL::Texture::gen ( GLenum  target,
GLint  interp_type = gl::LINEAR 
)
inline

Definition at line 174 of file gl.h.

◆ operator GLuint()

MR::GUI::GL::Texture::operator GLuint ( ) const
inline

Definition at line 173 of file gl.h.

◆ operator=()

Texture & MR::GUI::GL::Texture::operator= ( Texture &&  t)
inline

Definition at line 171 of file gl.h.

◆ set_interp()

void MR::GUI::GL::Texture::set_interp ( GLint  type) const
inline

Definition at line 207 of file gl.h.

◆ set_interp_on()

void MR::GUI::GL::Texture::set_interp_on ( bool  interpolate) const
inline

Definition at line 212 of file gl.h.

◆ type()

GLenum MR::GUI::GL::Texture::type ( ) const
inline

Definition at line 191 of file gl.h.

Member Data Documentation

◆ check_context

Context::Checker MR::GUI::GL::Texture::check_context
protected

Definition at line 214 of file gl.h.

◆ id

GLuint MR::GUI::GL::Texture::id
protected

Definition at line 215 of file gl.h.

◆ tex_type

GLenum MR::GUI::GL::Texture::tex_type
protected

Definition at line 216 of file gl.h.


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