//=========================================================================== // SISL - SINTEF Spline Library, version 4.5.0. // Definition and interrogation of NURBS curves and surfaces. // // Copyright (C) 2000-2005, 2010 SINTEF ICT, Applied Mathematics, Norway. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., // 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // // Contact information: E-mail: tor.dokken@sintef.no // SINTEF ICT, Department of Applied Mathematics, // P.O. Box 124 Blindern, // 0314 Oslo, Norway. // // Other licenses are also available for this software, notably licenses // for: // - Building commercial software. // - Building software whose source code you wish to keep private. //=========================================================================== 00029 #ifndef GLUTILS_H_INCLUDED 00030 00031 00032 #ifndef MICROSOFT // 041103 00033 # include <GL/glx.h> 00034 #endif 00035 #include "GL/glut.h" 00036 00037 #include <vector> 00038 using std::vector; 00039 00040 #include "jonvec.h" 00041 00042 00043 // 00044 // 991117: Note!!! glGetError shouldn't be called between glBegin/End!!! 00045 // 00046 00047 // 00048 // If gl-error, write out a message and abort execution. 00049 // If no error, this should be fast. 00050 // If you want to fool yourself, use the macro with function syntax! 00051 // 00052 void assert_gl_m(int line, char *file, const bool do_exit=true); 00053 void assert_gl_dummy_and_empty(void); 00054 00055 00056 // 00057 // No semicolon; we won't allow anybody to destroy the source formatting... 00058 // 00059 #define ASSERT_GL assert_gl_m(__LINE__, __FILE__) 00060 #define ASSERT_GL_DONT_EXIT assert_gl_m(__LINE__, __FILE__, false) 00061 00062 // 00063 // This must be called with parantheses, function-like... 00064 // 00065 #define assert_gl assert_gl_m(__LINE__, __FILE__); assert_gl_dummy_and_empty 00066 00067 #ifndef MICROSOFT // 041103 00068 void list_FBConfigs(GLXFBConfig *config, int nelements); 00069 #endif 00070 00071 void draw_sphere(const vector3t<float> &pos, const float r, 00072 const int n, const int slot, 00073 const vector3t<float> &col, 00074 const bool wiremode); 00075 00076 00077 00078 00079 00080 00081 #define GLUTILS_H_INCLUDED 00082 #endif
Generated on Tue Sep 21 17:28:53 2010 for SISL by  doxygen 1.6.3