1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* vim: set ts=4 et sw=4 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef MOZQGLWIDGETWRAPPER_H
8 #define MOZQGLWIDGETWRAPPER_H
11 * qgl.h and GLDefs.h has conflicts in type defines
12 * QGLWidget wrapper class helps to avoid including qgl.h with mozilla gl includes
17 class MozQGLWidgetWrapper
20 MozQGLWidgetWrapper();
21 ~MozQGLWidgetWrapper();
23 void setViewport(QGraphicsView
*);
24 static bool hasGLContext(QGraphicsView
*);
25 static bool isRGBAContext();