00001 /*************** <auto-copyright.pl BEGIN do not edit this line> ************** 00002 * 00003 * VR Juggler is (C) Copyright 1998-2006 by Iowa State University 00004 * 00005 * Original Authors: 00006 * Allen Bierbaum, Christopher Just, 00007 * Patrick Hartling, Kevin Meinert, 00008 * Carolina Cruz-Neira, Albert Baker 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Library General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2 of the License, or (at your option) any later version. 00014 * 00015 * This library 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 GNU 00018 * Library General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Library General Public 00021 * License along with this library; if not, write to the 00022 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00023 * Boston, MA 02111-1307, USA. 00024 * 00025 * ----------------------------------------------------------------- 00026 * File: $RCSfile$ 00027 * Date modified: $Date$ 00028 * Version: $Revision$ 00029 * ----------------------------------------------------------------- 00030 * 00031 *************** <auto-copyright.pl END do not edit this line> ***************/ 00032 00033 #ifndef VRJ_WGL_EXTENSION_LOADER_H_ 00034 #define VRJ_WGL_EXTENSION_LOADER_H_ 00035 00036 #include <vrj/Draw/OGL/GlExtensionLoader.h> 00037 #include <boost/shared_ptr.hpp> 00038 00039 #include <windows.h> 00040 #include <GL/gl.h> 00041 00042 namespace vrj 00043 { 00044 00047 class GlExtensionLoaderWin32 : public GlExtensionLoader 00048 { 00049 public: 00050 GlExtensionLoaderWin32(); 00051 00053 virtual void registerExtensions(); 00054 00055 public: 00058 00060 bool hasSwapGroupNV(); 00061 00062 BOOL wglJoinSwapGroupNV(HDC hdc, GLuint group); 00063 00064 BOOL wglBindSwapBarrierNV(GLuint group, GLuint barrier); 00065 00066 BOOL wglQuerySwapGroupNV(HDC hdc, GLuint *group, GLuint *barrier); 00067 00068 BOOL wglQueryMaxSwapGroupsNV(HDC hdc, GLuint *maxGroups, GLuint *maxBarriers); 00069 00070 BOOL wglQueryFrameCountNV(HDC hdc, /*int screen,*/ GLuint *count); 00071 00072 BOOL wglResetFrameCountNV(HDC hdc/*, int screen*/); 00074 00075 protected: 00076 struct WglFuncs; 00077 00078 boost::shared_ptr<WglFuncs> mWglFuncs; 00079 }; 00080 00081 } // namespace vrj 00082 00083 #endif 00084
1.5.1