summaryrefslogtreecommitdiffstats
path: root/Project/ControlElement.h
diff options
context:
space:
mode:
authorThales Lima <thaleslima.ufu@gmail.com>2017-10-25 19:17:00 -0200
committerThales Lima <thaleslima.ufu@gmail.com>2017-10-25 19:17:00 -0200
commit7043bf93567689f3b1304cc998c1fb09b7e0e357 (patch)
tree4d6ca5dd407d0f729e7413ddd62d26b25beabfca /Project/ControlElement.h
parentc53fc819fe6dfe15dc3083b71e0161a68c8b32b5 (diff)
downloadPSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.tar.gz
PSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.tar.xz
PSP.git-7043bf93567689f3b1304cc998c1fb09b7e0e357.zip
Fixed textures bug on linux
Diffstat (limited to 'Project/ControlElement.h')
-rw-r--r--Project/ControlElement.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Project/ControlElement.h b/Project/ControlElement.h
index 1a6b8ac..434e535 100644
--- a/Project/ControlElement.h
+++ b/Project/ControlElement.h
@@ -94,7 +94,12 @@ class ControlElement : public Element
std::vector<Node*> GetNodeList() const { return m_nodeList; }
virtual void DrawNodes() const;
virtual void ReplaceNode(Node* oldNode, Node* newNode);
- virtual void UpdateText() {}
+
+ /**
+ * @brief Update the OpenGL text in the element (if present).
+ * @return true if OpenGLText is ok, false otherwise.
+ */
+ virtual bool UpdateText() { return true; }
virtual bool IsSolved() const { return m_solved; }
virtual void SetSolved(bool solved = true) { m_solved = solved; }
virtual bool Solve(double input, double timeStep);