summaryrefslogtreecommitdiffstats
path: root/Project/Text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Text.cpp')
-rw-r--r--Project/Text.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Project/Text.cpp b/Project/Text.cpp
index 3e0eb1c..fd1d986 100644
--- a/Project/Text.cpp
+++ b/Project/Text.cpp
@@ -926,4 +926,13 @@ Element* Text::GetCopy()
}
copy->m_openGLTextList = copyList;
return copy;
-} \ No newline at end of file
+}
+
+bool Text::IsGLTextOK()
+{
+ bool isOk = true;
+ for(auto it = m_openGLTextList.begin(), itEnd = m_openGLTextList.end(); it != itEnd; ++it) {
+ if(!(*it)->IsTextureOK()) isOk = false;
+ }
+ return isOk;
+}