Main Page | Namespace List | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

OpenGLWindow.hh

Go to the documentation of this file.
00001 /*
00002  * OpenGLWindow class
00003  * by hackervalley@free.fr
00004  * http://hackervalley.free.fr
00005  * May 2004
00006  * this program is licensed under the GPL.
00007  */
00008  
00009 #ifndef OPENGLWINDOW_H
00010 #define OPENGLWINDOW_H
00011 
00012 // Fltk headers
00013 #include <FL/Fl.H>
00014 
00015 // Handle OpengL
00016 #include <FL/gl.h>
00017 #include <FL/Fl_Gl_Window.H>
00018 
00019 extern "C"
00020 {
00021 #include <GL/gl.h>
00022 #include <GL/glu.h>
00023 }
00024 
00025 #include "Engine.hh"
00026 
00027 namespace FE
00028 {
00029         class OpenGLWindow:public Fl_Gl_Window
00030         {
00031                 
00032                 void draw ();
00033                 int handle(int );
00034                 
00035 
00036             public: 
00037                         
00038                 bool createvertex;
00039                                           
00040                   // Instantiate Engine
00041                 Engine *engine;
00042                  
00043                           OpenGLWindow (int X, int Y, int W, int H,
00044                                 const char *L):Fl_Gl_Window (X, Y, W, H, L)
00045                 {
00046                  engine = new Engine;
00047                  createvertex   = false;
00048                 }
00049                 
00050                 ~OpenGLWindow();
00051 
00052         };
00053 
00054 }
00055 
00056 #endif

Generated on Sat Aug 7 18:49:02 2004 for FE by doxygen 1.3.6-20040222