diff options
Diffstat (limited to 'src/Text.h')
-rw-r--r-- | src/Text.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/Text.h b/src/Text.h index 6fa4e35..9fe45be 100644 --- a/src/Text.h +++ b/src/Text.h @@ -23,18 +23,19 @@ #define BLACKSHADES_TEXT_H #include <GL/gl.h> -#include <GL/glu.h> -#include "Quaternions.h" - -class Text{ -public: - GLuint FontTexture; +struct Text { + GLuint texture; GLuint base; - - void BuildFont(); - void glPrint(GLint x, GLint y, char *string, int set, - float size, float width, float height); - ~Text(); }; + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + void buildFont(struct Text*); + void glPrint(struct Text*, GLdouble, GLdouble, const char*, int, + float, float, float); +#ifdef __cplusplus +} // extern "C" +#endif // __cplusplus #endif // BLACKSHADES_TEXT_H |