MeshLib Documentation
Loading...
Searching...
No Matches
MR::GlTexture Class Referenceabstract

#include <MRGLTexture.h>

+ Inheritance diagram for MR::GlTexture:

Classes

struct  Settings
 

Public Member Functions

MRVIEWER_API GlTexture (GLenum val)
 
 GlTexture (const GlTexture &)=delete
 
MRVIEWER_API GlTexture (GlTexture &&r)
 
virtual MRVIEWER_API ~GlTexture ()
 
GlTextureoperator= (const GlTexture &)=delete
 
GlTextureoperator= (GlTexture &&r)
 
auto getId () const
 
bool valid () const
 
size_t size () const
 
MRVIEWER_API void gen ()
 
MRVIEWER_API void del ()
 
MRVIEWER_API void bind ()
 
MRVIEWER_API void loadData (const Settings &settings, const char *arr)
 
template<typename C >
void loadData (const Settings &settings, const C &cont)
 
MRVIEWER_API void loadDataOpt (bool refresh, const Settings &settings, const char *arr)
 
template<typename C >
void loadDataOpt (bool refresh, const Settings &settings, const C &cont)
 

Static Public Attributes

static constexpr GLuint NO_TEX = 0
 

Protected Member Functions

virtual void texImage_ (const Settings &settings, const char *arr)=0
 

Protected Attributes

GLuint textureID_ = NO_TEX
 
size_t size_ = 0
 
GLenum type_ = NO_TEX
 

Constructor & Destructor Documentation

◆ GlTexture() [1/3]

MRVIEWER_API MR::GlTexture::GlTexture ( GLenum val)

◆ GlTexture() [2/3]

MR::GlTexture::GlTexture ( const GlTexture & )
delete

◆ GlTexture() [3/3]

MRVIEWER_API MR::GlTexture::GlTexture ( GlTexture && r)

◆ ~GlTexture()

virtual MRVIEWER_API MR::GlTexture::~GlTexture ( )
virtual

Member Function Documentation

◆ bind()

MRVIEWER_API void MR::GlTexture::bind ( )

◆ del()

MRVIEWER_API void MR::GlTexture::del ( )

◆ gen()

MRVIEWER_API void MR::GlTexture::gen ( )

◆ getId()

auto MR::GlTexture::getId ( ) const
inline

◆ loadData() [1/2]

template<typename C >
void MR::GlTexture::loadData ( const Settings & settings,
const C & cont )
inline

◆ loadData() [2/2]

MRVIEWER_API void MR::GlTexture::loadData ( const Settings & settings,
const char * arr )

◆ loadDataOpt() [1/2]

template<typename C >
void MR::GlTexture::loadDataOpt ( bool refresh,
const Settings & settings,
const C & cont )
inline

◆ loadDataOpt() [2/2]

MRVIEWER_API void MR::GlTexture::loadDataOpt ( bool refresh,
const Settings & settings,
const char * arr )

◆ operator=() [1/2]

GlTexture & MR::GlTexture::operator= ( const GlTexture & )
delete

◆ operator=() [2/2]

GlTexture & MR::GlTexture::operator= ( GlTexture && r)
inline

◆ size()

size_t MR::GlTexture::size ( ) const
inline

◆ texImage_()

virtual void MR::GlTexture::texImage_ ( const Settings & settings,
const char * arr )
protectedpure virtual

◆ valid()

bool MR::GlTexture::valid ( ) const
inline

Member Data Documentation

◆ NO_TEX

GLuint MR::GlTexture::NO_TEX = 0
staticconstexpr

◆ size_

size_t MR::GlTexture::size_ = 0
protected

◆ textureID_

GLuint MR::GlTexture::textureID_ = NO_TEX
protected

◆ type_

GLenum MR::GlTexture::type_ = NO_TEX
protected

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