MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::GlTexture3 Class Reference

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

#include <MRRenderGLHelpers.h>

+ Inheritance diagram for MR::GlTexture3:

Public Member Functions

 GlTexture3 ()
 
- 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 ()
 generates new texture
 
MRVIEWER_API void del ()
 deletes the texture
 
MRVIEWER_API void bind ()
 binds current texture to OpenGL context
 
MRVIEWER_API 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)
 
MRVIEWER_API 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)
 

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 3D texture owner, and allows uploading data in it remembering texture size


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