summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-11-24 13:18:34 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-11-24 13:18:34 +0000
commit90a6a06b7f47aa8ed1cca8f756892fd37faf8f3e (patch)
tree04de38d9467ef0a0c6b3006a051b46f6a3994bf5
parentc69a1f738208e70016c4e91544633200a9be1f86 (diff)
Added floating point versions of gl_draw() functions.
git-svn-id: file:///fltk/svn/fltk/trunk@100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/gl.h6
-rw-r--r--src/gl_draw.cxx13
2 files changed, 15 insertions, 4 deletions
diff --git a/FL/gl.h b/FL/gl.h
index daf3841df..2eb135133 100644
--- a/FL/gl.h
+++ b/FL/gl.h
@@ -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 $".
//
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx
index 086c22006..2dcae667c 100644
--- a/src/gl_draw.cxx
+++ b/src/gl_draw.cxx
@@ -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 $".
//