From 7043bf93567689f3b1304cc998c1fb09b7e0e357 Mon Sep 17 00:00:00 2001 From: Thales Lima Date: Wed, 25 Oct 2017 19:17:00 -0200 Subject: Fixed textures bug on linux --- Project/ControlElement.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Project/ControlElement.h') 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 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); -- cgit