summary refs log tree commit diff
path: root/src/Text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text.h')
-rw-r--r--src/Text.h49
1 files changed, 33 insertions, 16 deletions
diff --git a/src/Text.h b/src/Text.h
index 220bf9c..af25c2d 100644
--- a/src/Text.h
+++ b/src/Text.h
@@ -1,25 +1,42 @@
-#ifndef _TEXT_H_
-#define _TEXT_H_
+// Text object
+// Copyright (C) 2002  David Rosen
+// Copyright (C) 2003  Steven Fuller
+// Copyright (C) 2003  Zachary Jack Slater
+// Copyright (C) 2021  Nguyễn Gia Phong
+//
+// This file is part of Black Shades.
+//
+// Black Shades is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Black Shades is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Black Shades.  If not, see <https://www.gnu.org/licenses/>.
+
+#ifndef BLACKSHADES_TEXT_H
+#define BLACKSHADES_TEXT_H
 
-/**> HEADER FILES <**/
-#include "Quaternions.h"
 #include <GL/gl.h>
 #include <GL/glu.h>
+
 #include "Files.h"
 #include "Quaternions.h"
 
 class Text{
-	public:
-		GLuint FontTexture;
-		GLuint base;
+public:
+	GLuint FontTexture;
+	GLuint base;
 
-		void LoadFontTexture(char *fileName);
-		void BuildFont();
-		void glPrint(GLint x, GLint y, char *string, int set, float size, float width, float height);
-
-		~Text(){
-			glDeleteTextures( 1, (const GLuint *)FontTexture );
-		}
+	void LoadFontTexture(char *fileName);
+	void BuildFont();
+	void glPrint(GLint x, GLint y, char *string, int set,
+		float size, float width, float height);
+	~Text();
 };
-
-#endif
+#endif // BLACKSHADES_TEXT_H