MeshLib Documentation
Loading...
Searching...
No Matches
MR::GlTexture2 Class Reference

#include <MRRenderGLHelpers.h>

+ Inheritance diagram for MR::GlTexture2:

Public Member Functions

 GlTexture2 ()
 
- Public Member Functions inherited from MR::GlTexture
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 Member Functions

static Vector3i ToResolution (const Vector2i &value)
 

Additional Inherited Members

- Static Public Attributes inherited from MR::GlTexture
static constexpr GLuint NO_TEX = 0
 
- Protected Attributes inherited from MR::GlTexture
GLuint textureID_ = NO_TEX
 
size_t size_ = 0
 
GLenum type_ = NO_TEX
 

Constructor & Destructor Documentation

◆ GlTexture2()

MR::GlTexture2::GlTexture2 ( )
inline

Member Function Documentation

◆ ToResolution()

static Vector3i MR::GlTexture2::ToResolution ( const Vector2i & value)
inlinestatic

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