From 4c53a5d8f4f23358a101ef6bda4b6b8ea4b95274 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sun, 31 Jan 1999 07:43:16 +0000 Subject: Added optimization for SGI builds (mike: please run autoconf before making a distribution). Documentation fixes. git-svn-id: file:///fltk/svn/fltk/trunk@259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/opengl.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'documentation/opengl.html') diff --git a/documentation/opengl.html b/documentation/opengl.html index 2078bfa7a..807908a68 100644 --- a/documentation/opengl.html +++ b/documentation/opengl.html @@ -174,36 +174,36 @@ FLTK provides some useful OpenGL drawing functions. They can be freely mixed with any OpenGL calls, and are defined by including <FL/gl.H> (which you should include instead of the OpenGL header <GL/gl.h>). -

void gl_color(Fl_Color)

+

void gl_color(Fl_Color)

Set the current color to a FLTK color. For color-index modes it will use fl_xpixel(c), which is only right if this window uses the default colormap! -

void gl_rect(int x, int y, int w, int h) -
void gl_rectf(int x, int y, int w, int h)

+

void gl_rect(int x, int y, int w, int h) +
void gl_rectf(int x, int y, int w, int h)

Outline or fill a rectangle with the current color. If Fl_Gl_Window::ortho() has been called, then the rectangle will exactly fill the pixel rectangle passed. -

void gl_font(Fl_Font fontid, int size)

+

void gl_font(Fl_Font fontid, int size)

Set the current OpenGL font to the same font you get by calling fl_font(). -

int gl_height() +

int gl_height()
int gl_descent()
float gl_width(const char *)
float gl_width(const char *, int n) -
float gl_width(uchar)

+
float gl_width(uchar) Return information about the current OpenGL font. -

void gl_draw(const char *) -
void gl_draw(const char *, int n)

+

void gl_draw(const char *) +
void gl_draw(const char *, int n)

Draw a nul-terminated string or an array of n characters in the current OpenGL font at the current raster position. -

void gl_draw(const char *, int x, int y) +

void gl_draw(const char *, int x, int y)
void gl_draw(const char *, int n, int x, int y)
void gl_draw(const char *, float x, float y) -
void gl_draw(const char *, int n, float x, float y)

+
void gl_draw(const char *, int n, float x, float y) Draw a nul-terminated string or an array of n characters in the current OpenGL font at the given position. -

void gl_draw(const char *, int x, int y, int w, int h, Fl_Align)

+

void gl_draw(const char *, int x, int y, int w, int h, Fl_Align)

Draw a string formatted into a box, with newlines and tabs expanded, other control characters changed to ^X, and aligned with the edges or center. Exactly the same output as fl_draw() @@ -214,7 +214,7 @@ scene graph toolkit for OpenGL available from Silicon Graphics for IRIX and Microsoft Windows. Versions are in the works for Solaris and HP-UX. It allows you to view large scenes without writing a lot of OpenGL code. -

OptimizerWindow Class Definition

+

OptimizerWindow Class Definition

To use OpenGL Optimizer with FLTK you'll need to create a subclass of Fl_Gl_Widget that includes several state variables: