00001 /*************************************************************************** 00002 * gltools.h 00003 * 00004 * Mon Sep 13 18:25:57 2004 00005 * Copyright 2004 thierry schartz 00006 * thierry.schartz@bluebottle.com 00007 ****************************************************************************/ 00008 00009 /* 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Library General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _GL_TOOLS_H 00026 #define _GL_TOOLS_H 00027 00028 #ifdef WIN32 00029 #include <windows.h> 00030 #endif 00031 00032 #include "build.h" 00033 00034 00035 00036 /* various OpenGL utility functions are gathered here */ 00037 00038 namespace ngn { 00039 namespace gl { 00040 00041 00042 // enter 2D mode 00043 void Enter2DMode(); 00044 // exit 2D mode 00045 void Exit2DMode(); 00046 // enter billboardmode 00047 void EnterBillboardMode(); 00048 // exit billboardmode 00049 void ExitBillboardMode(); 00051 NGN_API void Screenshot( int w, int h, const char* name ); 00052 // draw XZ grid, for debugging 00053 void DrawGrid( int x, int z ); 00054 00055 00056 00057 00058 00059 }//gl 00060 }//ngn 00061 00062 #endif /* _GL_TOOLS_H */ 00063 00064