GraphicsErrors.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2002 The Pentagram Team
00003 
00004 This program is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU General Public License
00006 as published by the Free Software Foundation; either version 2
00007 of the License, or (at your option) any later version.
00008 
00009 This program is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU General Public License for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with this program; if not, write to the Free Software
00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 */
00018 
00019 #ifndef GRAPHICSERRORS_H_INCLUDED
00020 #define GRAPHICSERRORS_H_INCLUDED
00021 
00022 
00024 //                                //
00025 // Graphics Subsystem Error Codes //
00026 //                                //
00028 
00029 #include "Errors.h"
00030 
00031 
00032 // 
00033 // Graphics Error Code Bases
00034 //
00035 
00036 // Software Rendering Error Code Base 
00037 #define GR_SOFT_ERROR_BASE                                              (GRAPHICS_ERROR_BASE-0x1000)
00038 
00039 // OpenGL Rendering Error Code Base 
00040 #define GR_OGL_ERROR_BASE                                               (GRAPHICS_ERROR_BASE-0x2000)
00041 
00042 // Texture Error Code Base 
00043 #define GR_TEX_ERROR_BASE                                               (GRAPHICS_ERROR_BASE-0x3000)
00044 
00045 
00046 //
00047 // Generic Graphics Errors
00048 //
00049 
00050 
00051 //
00052 // SoftRenderSurface Error Codes
00053 //
00054         
00055 // Surface Locked with NULL SoftRenderSurface::pixels pointer
00056 #define GR_SOFT_ERROR_LOCKED_NULL_PIXELS                (GR_SOFT_ERROR_BASE-1)
00057 
00058 // SDL Surface Lock Failed
00059 #define GR_SOFT_ERROR_SDL_LOCK_FAILED                   (GR_SOFT_ERROR_BASE-2)
00060 
00061 // BeginPainting()/EndPainting() Mismatch
00062 #define GR_SOFT_ERROR_BEGIN_END_MISMATCH                (GR_SOFT_ERROR_BASE-3)
00063 
00064 
00065 //
00066 // OpenGL Error Codes
00067 //
00068 
00069         
00070 
00071 //
00072 // Texturing Error Codes
00073 //
00074         
00075 
00076 #endif //GRAPHICSERRORS_H_INCLUDED
00077 

Generated on Fri Jul 27 22:27:16 2007 for pentagram by  doxygen 1.4.7