Main Page   Namespace List   Alphabetical List   Data Structures   File List   Data Fields   Globals  

customcontext.h

Go to the documentation of this file.
00001 
00002 //                          customcontext.h                             //
00003 //                         ------------------                           //
00004 //    begin                : Tue Nov 25 2003                            //
00005 //    copyright            : (C) 2003 by cbaudry (CEA/DSM/SPP)          //
00006 //    email                : cedric.baudry@tremplin-utc.fr              //
00008 
00010 //                                                                        //
00011 //   This program is free software; you can redistribute it and/or modify //
00012 //   it under the terms of the GNU General Public License as published by //
00013 //   the Free Software Foundation, version 2 of the License               //
00014 //                                                                        //
00016 
00017 #pragma once
00018 
00019 #include <qgl.h>
00020 #if defined(Q_WS_X11)
00021 #include <GL/glx.h>
00022 #endif
00023 #if defined(Q_WS_MAC)
00024 #include <agl.h>
00025 #endif
00026 
00031 class CustomContext:public QGLContext
00032 {
00033   public:
00034     CustomContext (const QGLFormat & fmt, QPaintDevice * dev):QGLContext (fmt, dev)
00035     {
00036     }
00037 
00038   protected:
00039 #if defined(Q_WS_WIN)
00040     int choosePixelFormat (void *p, HDC hdc);
00041 #elif defined(Q_WS_X11)
00042     void *chooseVisual ();
00043 #elif defined(Q_WS_MAC)
00044     void *chooseMacVisual (GDHandle gdev);
00045 #endif
00046 };

Generated on Wed Feb 18 16:32:50 2004 for POVAMA by doxygen1.2.18