MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / loadData

Method loadData

source/MRViewer/MRGLTexture.cpp:80–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void GlTexture::loadData( const Settings& settings, const char* arr )
81{
82 if ( !valid() )
83 gen();
84 bind();
85
86 setTextureWrapType( settings.wrap, type_ );
87 setTextureFilterType( settings.filter, type_ );
88 GL_EXEC( glPixelStorei( GL_UNPACK_ALIGNMENT, 1 ) );
89 texImage_( settings, arr );
90
91 size_ = settings.size();
92}
93
94void GlTexture::loadDataOpt( bool refresh, const Settings& settings, const char* arr )
95{

Callers 12

drawLinesMethod · 0.45
drawPointsMethod · 0.45
drawTrisMethod · 0.45
bind_Method · 0.45
bindPositions_Method · 0.45
calcAndBindLength_Method · 0.45
bindLines_Method · 0.45
bindVolume_Method · 0.45
bindMesh_Method · 0.45
bindEdges_Method · 0.45
bindBorders_Method · 0.45
bindSelectedEdges_Method · 0.45

Calls 3

setTextureWrapTypeFunction · 0.85
setTextureFilterTypeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected