- added optional debugging info system

- removed bugs
This commit is contained in:
granzuglia 2016-05-11 12:01:34 +00:00
parent 6c7fb7b0ab
commit 9f9fab7a98
1 changed files with 13 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include <wrap/qt/qt_thread_safe_memory_info.h> #include <wrap/qt/qt_thread_safe_memory_info.h>
#include <wrap/qt/qt_thread_safe_texture_names_container.h> #include <wrap/qt/qt_thread_safe_texture_names_container.h>
#include <wrap/gl/gl_mesh_attributes_multi_viewer_bo_manager.h> #include <wrap/gl/gl_mesh_attributes_multi_viewer_bo_manager.h>
#include <QString>
namespace vcg namespace vcg
{ {
@ -105,6 +106,18 @@ namespace vcg
vcg::NotThreadSafeGLMeshAttributesMultiViewerBOManager<MESH_TYPE,UNIQUE_VIEW_ID_TYPE,GL_OPTIONS_DERIVED_TYPE>::setGLOptions(viewid,opts); vcg::NotThreadSafeGLMeshAttributesMultiViewerBOManager<MESH_TYPE,UNIQUE_VIEW_ID_TYPE,GL_OPTIONS_DERIVED_TYPE>::setGLOptions(viewid,opts);
} }
void setDebugMode(bool activatedebugmodality)
{
QWriteLocker locker(&_lock);
vcg::NotThreadSafeGLMeshAttributesMultiViewerBOManager<MESH_TYPE,UNIQUE_VIEW_ID_TYPE,GL_OPTIONS_DERIVED_TYPE>::setDebugMode(activatedebugmodality);
}
void getLog(vcg::GLMeshAttributesInfo::DebugInfo& info)
{
QWriteLocker locker(&_lock);
vcg::NotThreadSafeGLMeshAttributesMultiViewerBOManager<MESH_TYPE,UNIQUE_VIEW_ID_TYPE,GL_OPTIONS_DERIVED_TYPE>::getLog(info);
}
private: private:
mutable QReadWriteLock _lock; mutable QReadWriteLock _lock;
vcg::QtThreadSafeTextureNamesContainer _textids; vcg::QtThreadSafeTextureNamesContainer _textids;