00001 /****************************************************************************** 00002 * This file is part of the Gluon Development Platform 00003 * Copyright (C) 2008 Rivo Laks <rivolaks@hot.ee> 00004 * Copyright (C) 2008 Sacha Schutz <istdasklar@free.fr> 00005 * Copyright (C) 2008 Olivier Gueudelot <gueudelotolive@gmail.com> 00006 * Copyright (C) 2008 Charles Huet <packadal@gmail.com> 00007 * Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl> 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * This library is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00024 #ifndef GLUONGRAPHICS_RENDERWIDGET_H 00025 #define GLUONGRAPHICS_RENDERWIDGET_H 00026 00027 #include "gluon_graphics_export.h" 00028 00029 #include <QtOpenGL/QGLWidget> 00030 00031 namespace GluonGraphics 00032 { 00033 class GLUON_GRAPHICS_EXPORT RenderWidget : public QGLWidget 00034 { 00035 Q_OBJECT 00036 public: 00037 explicit RenderWidget( QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0 ); 00038 virtual ~RenderWidget(); 00039 00040 virtual void initializeGL(); 00041 virtual void paintGL(); 00042 virtual void resizeGL( int w, int h ); 00043 00044 private: 00045 class RenderWidgetPrivate; 00046 RenderWidgetPrivate* const d; 00047 }; 00048 } 00049 00050 00051 #endif // GLUON_GRAPHICS_RENDERWIDGET_H