MeshLib C++ Docs
Loading...
Searching...
No Matches

represents OpenGL 2D texture owner, and allows uploading data in it remembering texture size More...

#include <MRViewer/MRRenderGLHelpers.h>

Inheritance diagram for MR::GlTexture2:

Public Member Functions

 GlTexture2 ()
Public Member Functions inherited from MR::GlTexture
 GlTexture (GLenum val)
 GlTexture (const GlTexture &)=delete
 GlTexture (GlTexture &&r)
virtual ~GlTexture ()
GlTextureoperator= (const GlTexture &)=delete
GlTextureoperator= (GlTexture &&r)
auto getId () const
bool valid () const
size_t size () const
void gen ()
 generates new texture
void del ()
 deletes the texture
void bind ()
 binds current texture to OpenGL context
void loadData (const Settings &settings, const char *arr)
 creates GL data texture using given data and binds it
template<typename C>
void loadData (const Settings &settings, const C &cont)
void loadDataOpt (bool refresh, const Settings &settings, const char *arr)
 binds current texture to OpenGL context, optionally refreshing its data
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

Detailed Description

represents OpenGL 2D texture owner, and allows uploading data in it remembering texture size


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