Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Search  

/home/mrm/Simex/include/FL/gl.h

Go to the documentation of this file.
00001 //
00002 // "$Id: gl.h,v 1.1.1.1 2002/11/26 22:02:17 pv9f Exp $"
00003 //
00004 // OpenGL header file for the Fast Light Tool Kit (FLTK).
00005 //
00006 // Copyright 1998-2002 by Bill Spitzak and others.
00007 //
00008 // You must include this instead of GL/gl.h to get the Microsoft
00009 // APIENTRY stuff included (from <windows.h>) prior to the OpenGL
00010 // header files.
00011 //
00012 // This file also provides "missing" OpenGL functions, and
00013 // gl_start() and gl_finish() to allow OpenGL to be used in any window
00014 //
00015 // This library is free software; you can redistribute it and/or
00016 // modify it under the terms of the GNU Library General Public
00017 // License as published by the Free Software Foundation; either
00018 // version 2 of the License, or (at your option) any later version.
00019 //
00020 // This library is distributed in the hope that it will be useful,
00021 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023 // Library General Public License for more details.
00024 //
00025 // You should have received a copy of the GNU Library General Public
00026 // License along with this library; if not, write to the Free Software
00027 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00028 // USA.
00029 //
00030 // Please report all bugs and problems to "fltk-bugs@fltk.org".
00031 //
00032 
00033 #ifndef gl_draw_H
00034 #define gl_draw_H
00035 
00036 #include "Enumerations.H" // for color names
00037 #ifdef _WIN32
00038 # include <windows.h>
00039 #endif
00040 #ifndef APIENTRY
00041 # if defined(__CYGWIN__)
00042 #  define APIENTRY __attribute__ ((__stdcall__))
00043 # else
00044 #  define APIENTRY
00045 # endif
00046 #endif
00047 
00048 #ifdef __APPLE__
00049 # include <OpenGL/gl.h>
00050 #else
00051 # include <GL/gl.h>
00052 #endif
00053 
00054 FL_EXPORT void gl_start();
00055 FL_EXPORT void gl_finish();
00056 
00057 FL_EXPORT void gl_color(Fl_Color);
00058 inline void gl_color(int c) {gl_color((Fl_Color)c);} // back compatability
00059 
00060 FL_EXPORT void gl_rect(int x,int y,int w,int h);
00061 inline void gl_rectf(int x,int y,int w,int h) {glRecti(x,y,x+w,y+h);}
00062 
00063 FL_EXPORT void gl_font(int fontid, int size);
00064 FL_EXPORT int  gl_height();
00065 FL_EXPORT int  gl_descent();
00066 FL_EXPORT double gl_width(const char *);
00067 FL_EXPORT double gl_width(const char *, int n);
00068 FL_EXPORT double gl_width(uchar);
00069 
00070 FL_EXPORT void gl_draw(const char*);
00071 FL_EXPORT void gl_draw(const char*, int n);
00072 FL_EXPORT void gl_draw(const char*, int x, int y);
00073 FL_EXPORT void gl_draw(const char*, float x, float y);
00074 FL_EXPORT void gl_draw(const char*, int n, int x, int y);
00075 FL_EXPORT void gl_draw(const char*, int n, float x, float y);
00076 FL_EXPORT void gl_draw(const char*, int x, int y, int w, int h, Fl_Align);
00077 FL_EXPORT void gl_measure(const char*, int& x, int& y);
00078 
00079 FL_EXPORT void gl_draw_image(const uchar *, int x,int y,int w,int h, int d=3, int ld=0);
00080 
00081 #endif
00082 
00083 //
00084 // End of "$Id: gl.h,v 1.1.1.1 2002/11/26 22:02:17 pv9f Exp $".
00085 //

Generated on Sat Jul 19 04:01:18 2003 for SIMEX by doxygen1.2.18