50 #    if defined(__CYGWIN__) 
   51 #      define APIENTRY __attribute__ ((__stdcall__)) 
   58 #    include <OpenGL/gl.h> 
   70 FL_EXPORT 
void gl_rect(
int x,
int y,
int w,
int h);
 
   75 inline void gl_rectf(
int x,
int y,
int w,
int h) {glRecti(x,y,x+w,y+h);}
 
   77 FL_EXPORT 
void gl_font(
int fontid, 
int size);
 
   80 FL_EXPORT 
double gl_width(
const char *);
 
   81 FL_EXPORT 
double gl_width(
const char *, 
int n);
 
   84 FL_EXPORT 
void gl_draw(
const char*);
 
   85 FL_EXPORT 
void gl_draw(
const char*, 
int n);
 
   86 FL_EXPORT 
void gl_draw(
const char*, 
int x, 
int y);
 
   87 FL_EXPORT 
void gl_draw(
const char*, 
float x, 
float y);
 
   88 FL_EXPORT 
void gl_draw(
const char*, 
int n, 
int x, 
int y);
 
   89 FL_EXPORT 
void gl_draw(
const char*, 
int n, 
float x, 
float y);
 
   90 FL_EXPORT 
void gl_draw(
const char*, 
int x, 
int y, 
int w, 
int h, 
Fl_Align);
 
   91 FL_EXPORT 
void gl_measure(
const char*, 
int& x, 
int& y);
 
   97 FL_EXPORT 
void gl_draw_image(
const uchar *, 
int x,
int y,
int w,
int h, 
int d=3, 
int ld=0);
 
FL_EXPORT void gl_rect(int x, int y, int w, int h)
Outlines the given rectangle with the current color. 
Definition: gl_draw.cxx:298
FL_EXPORT double gl_width(const char *)
Returns the width of the string in the current fnt. 
Definition: gl_draw.cxx:48
FL_EXPORT void gl_start()
Creates an OpenGL context. 
Definition: gl_start.cxx:56
FL_EXPORT void gl_color(Fl_Color i)
Sets the curent OpenGL color to an FLTK color. 
Definition: gl_draw.cxx:321
FL_EXPORT void gl_measure(const char *, int &x, int &y)
Measure how wide and tall the string will be when drawn by the gl_draw() function. 
Definition: gl_draw.cxx:291
This file contains type definitions and general enumerations. 
int gl_texture_pile_height(void)
Returns the current height of the pile of pre-computed string textures. 
Definition: gl_draw.cxx:535
void gl_rectf(int x, int y, int w, int h)
Fills the given rectangle with the current color. 
Definition: gl.h:75
FL_EXPORT void gl_draw(const char *)
Draws a nul-terminated string in the current font at the current position. 
Definition: gl_draw.cxx:253
unsigned int Fl_Color
An FLTK color value; see also Colors. 
Definition: Enumerations.H:796
unsigned Fl_Align
FLTK type for alignment control. 
Definition: Enumerations.H:690
FL_EXPORT int gl_descent()
Returns the current font's descent. 
Definition: gl_draw.cxx:46
FL_EXPORT void gl_font(int fontid, int size)
Sets the current OpenGL font to the same font as calling fl_font() 
Definition: gl_draw.cxx:70
FL_EXPORT void gl_finish()
Releases an OpenGL context. 
Definition: gl_start.cxx:97
unsigned char uchar
unsigned char 
Definition: fl_types.h:30
FL_EXPORT int gl_height()
Returns the current font's height. 
Definition: gl_draw.cxx:44