src/render/rGLEW.h

Go to the documentation of this file.
00001 #ifndef AT_GLEW_H
00002 #define AT_GLEW_H
00003 
00004 #include "aa_config.h"
00005 #include "tException.h"
00006 #include "tString.h"
00007 
00008 // check whether GLEW is available
00009 #ifndef DEDICATED
00010 #ifdef HAVE_GL_GLEW_H
00011 #ifdef HAVE_LIBGLEW
00012 
00013 // it is! define one handy macro indicating so
00014 #define HAVE_GLEW
00015 
00016 // and include the headers
00017 #include <GL/glew.h>
00018 
00019 #endif
00020 #endif
00021 #endif
00022 
00024 class rExceptionGLEW: public tException
00025 {
00026 public:
00027     rExceptionGLEW( char const * description )
00028             : description_( description )
00029     {
00030     }
00031 private:
00032     virtual tString DoGetName() const { return tString("GLEW Exception"); }
00033 
00034     virtual tString DoGetDescription() const { return description_; }
00035     tString description_;
00036 };
00037 
00038 #endif

Generated on Sat Mar 15 22:55:52 2008 for Armagetron Advanced by  doxygen 1.5.4