INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

glerrorutil.h

00001 /*
00002   Copyright (c) 2005, 
00003           Aaron Lefohn (lefohn@cs.ucdavis.edu)
00004   All rights reserved.
00005 
00006   This software is licensed under the BSD open-source license. See
00007   http://www.opensource.org/licenses/bsd-license.php for more detail.
00008 
00009   *************************************************************
00010   Redistribution and use in source and binary forms, with or 
00011   without modification, are permitted provided that the following 
00012   conditions are met:
00013 
00014   Redistributions of source code must retain the above copyright notice, 
00015   this list of conditions and the following disclaimer. 
00016 
00017   Redistributions in binary form must reproduce the above copyright notice, 
00018   this list of conditions and the following disclaimer in the documentation 
00019   and/or other materials provided with the distribution. 
00020 
00021   Neither the name of the University of Californa, Davis nor the names of 
00022   the contributors may be used to endorse or promote products derived 
00023   from this software without specific prior written permission.
00024 
00025   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
00026   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
00027   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
00028   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
00029   THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
00030   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
00031   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
00032   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
00033   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
00034   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
00035   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 
00036   THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
00037   OF SUCH DAMAGE.
00038 */
00039 
00040 /*
00041  * Modifications under above BSD license 
00042  * Copyright 2007-2009 Tom Burdick <thomas.burdick@gmail.com>
00043  */
00044 
00045 #ifndef HYDRO_GLU_GLERRORUTIL_H
00046 #define HYDRO_GLU_GLERRORUTIL_H
00047 
00048 // A simple OpenGL error checking routine. This compiles away
00049 // to a no-op inline method if the NDEBUG preprocessor symbol
00050 // is defined during compilation.
00051 //
00052 // - The first parameter (optional) is a string that can be 
00053 //   used to indicate the location where the error check occurs.
00054 //
00055 // - The second parameter determines the destination of the error
00056 //   message. It defaults to cerr, but could also be a file.
00057 
00058 #include <GL/glew.h>
00059 #include <GL/gl.h>
00060 
00061 #include <iostream>
00062 
00063 namespace hydroglu
00064 {
00065 
00066 #ifndef NDEBUG
00067 
00081 void checkErrorsGL( const char *file = NULL, const char *line = NULL, 
00082                                 std::ostream& ostr = std::cerr );
00083 #else
00084 
00098 inline void checkErrorsGL( const char *file = NULL, const char *line = NULL, 
00099                                              std::ostream& ostr = std::cerr ) 
00100 {}
00101 #endif 
00102 }
00103 #endif
00104 
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5