Added floating point versions of gl_draw() functions.

git-svn-id: file:///fltk/svn/fltk/trunk@100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1998-11-24 13:18:34 +00:00
parent c69a1f7382
commit 90a6a06b7f
2 changed files with 15 additions and 4 deletions

View File

@ -1,5 +1,5 @@
//
// "$Id: gl.h,v 1.3 1998/10/21 14:19:48 mike Exp $"
// "$Id: gl.h,v 1.4 1998/11/24 13:18:34 mike Exp $"
//
// OpenGL header file for the Fast Light Tool Kit (FLTK).
//
@ -58,7 +58,9 @@ double gl_width(uchar);
void gl_draw(const char*);
void gl_draw(const char*, int n);
void gl_draw(const char*, int x, int y);
void gl_draw(const char*, float x, float y);
void gl_draw(const char*, int n, int x, int y);
void gl_draw(const char*, int n, float x, float y);
void gl_draw(const char*, int x, int y, int w, int h, Fl_Align);
void gl_measure(const char*, int& x, int& y);
@ -67,5 +69,5 @@ void gl_draw_image(const uchar *, int x,int y,int w,int h, int d=3, int ld=0);
#endif
//
// End of "$Id: gl.h,v 1.3 1998/10/21 14:19:48 mike Exp $".
// End of "$Id: gl.h,v 1.4 1998/11/24 13:18:34 mike Exp $".
//

View File

@ -1,5 +1,5 @@
//
// "$Id: gl_draw.cxx,v 1.3 1998/10/21 14:21:08 mike Exp $"
// "$Id: gl_draw.cxx,v 1.4 1998/11/24 13:18:16 mike Exp $"
//
// OpenGL drawing support routines for the Fast Light Tool Kit (FLTK).
//
@ -82,6 +82,11 @@ void gl_draw(const char* str, int n, int x, int y) {
gl_draw(str, n);
}
void gl_draw(const char* str, int n, float x, float y) {
glRasterPos2f(x, y);
gl_draw(str, n);
}
void gl_draw(const char* str) {
gl_draw(str, strlen(str));
}
@ -90,6 +95,10 @@ void gl_draw(const char* str, int x, int y) {
gl_draw(str, strlen(str), x, y);
}
void gl_draw(const char* str, float x, float y) {
gl_draw(str, strlen(str), x, y);
}
static void gl_draw_invert(const char* str, int n, int x, int y) {
glRasterPos2i(x, -y);
gl_draw(str, n);
@ -143,5 +152,5 @@ void gl_draw_image(const uchar* b, int x, int y, int w, int h, int d, int ld) {
#endif
//
// End of "$Id: gl_draw.cxx,v 1.3 1998/10/21 14:21:08 mike Exp $".
// End of "$Id: gl_draw.cxx,v 1.4 1998/11/24 13:18:16 mike Exp $".
//