diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-26 12:00:06 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-07-26 12:00:06 +0700 |
| commit | 02cacabff7c8301412faaaeccdbf67cd2bbc38c0 (patch) | |
| tree | 18dcc35ce477dd93b9767697156b5c57f92f420b /src/Text.h | |
| parent | 2f439764f5e115c37034cf9d4a8d7f39f696f30f (diff) | |
| download | blackshades-02cacabff7c8301412faaaeccdbf67cd2bbc38c0.tar.gz | |
Make g++ and zig c++ happy
Diffstat (limited to 'src/Text.h')
| -rw-r--r-- | src/Text.h | 49 |
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 |
