38 MRVIEWER_API
void gen();
41 MRVIEWER_API
void del();
60 GLint
type = GL_UNSIGNED_BYTE;
70 assert( cont.size() >= settings.
size() );
71 loadData( settings, (
const char* )cont.data() );
79 assert( !refresh || cont.size() >= settings.
size() );
80 loadDataOpt( refresh, settings, (
const char* )cont.data() );
Definition MRGLTexture.h:17
size_t size_
Definition MRGLTexture.h:86
size_t size() const
Definition MRGLTexture.h:35
virtual MRVIEWER_API ~GlTexture()
void loadData(const Settings &settings, const C &cont)
Definition MRGLTexture.h:68
GLenum type_
Definition MRGLTexture.h:87
static constexpr GLuint NO_TEX
Definition MRGLTexture.h:19
void loadDataOpt(bool refresh, const Settings &settings, const C &cont)
Definition MRGLTexture.h:77
auto getId() const
Definition MRGLTexture.h:33
MRVIEWER_API void loadDataOpt(bool refresh, const Settings &settings, const char *arr)
GlTexture(const GlTexture &)=delete
MRVIEWER_API GlTexture(GLenum val)
virtual void texImage_(const Settings &settings, const char *arr)=0
MRVIEWER_API void loadData(const Settings &settings, const char *arr)
GLuint textureID_
Definition MRGLTexture.h:85
MRVIEWER_API GlTexture(GlTexture &&r)
GlTexture & operator=(const GlTexture &)=delete
bool valid() const
Definition MRGLTexture.h:34
Definition MRCameraOrientationPlugin.h:8
WrapType
Definition MRMesh/MRMeshFwd.h:585
MRVIEWER_API void setTextureWrapType(WrapType wrapType, GLenum type=GL_TEXTURE_2D)
FilterType
Definition MRMesh/MRMeshFwd.h:579
MRVIEWER_API void setTextureFilterType(FilterType filterType, GLenum type=GL_TEXTURE_2D)
Definition MRGLTexture.h:47
size_t size() const
Definition MRGLTexture.h:53
GLint internalFormat
Definition MRGLTexture.h:58
GLint format
Definition MRGLTexture.h:59
WrapType wrap
Definition MRGLTexture.h:61
FilterType filter
Definition MRGLTexture.h:62
GLint type
Definition MRGLTexture.h:60
Vector3i resolution
Definition MRGLTexture.h:52