/***************************************************************************
                            qt_QGLWidget.h -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QT_QGLWIDGET
#define QT_QGLWIDGET

#include <qtc/qtc_types.h>

qt_QGLWidget * qt_new_QGLWidget(qt_QWidget * parent, char* name, qt_QGLWidget* shareWidget, int f);
qt_QGLWidget * qt_new_QGLWidget1(qt_QGLFormat* format, qt_QWidget * parent, char* name, qt_QGLWidget* shareWidget, int f);
void qt_del_QGLWidget( qt_QGLWidget* p );
void qt_QGLWidget_qglColor(qt_QGLWidget* instPointer,qt_QColor * c);
void qt_QGLWidget_qglClearColor(qt_QGLWidget* instPointer,qt_QColor * c);
int qt_QGLWidget_isValid(qt_QGLWidget* instPointer);
int qt_QGLWidget_isSharing(qt_QGLWidget* instPointer);
void qt_QGLWidget_makeCurrent(qt_QGLWidget* instPointer);
int qt_QGLWidget_doubleBuffer(qt_QGLWidget* instPointer);
void qt_QGLWidget_swapBuffers(qt_QGLWidget* instPointer);
qt_QGLFormat* qt_QGLWidget_format(qt_QGLWidget* instPointer);
void qt_QGLWidget_setFormat(qt_QGLWidget* instPointer,qt_QGLFormat* format);
qt_QGLContext* qt_QGLWidget_context(qt_QGLWidget* instPointer);
void qt_QGLWidget_setContext(qt_QGLWidget* instPointer,qt_QGLContext* context, qt_QGLContext* shareContext, int deleteOldContext);
qt_QPixmap * qt_QGLWidget_renderPixmap(qt_QGLWidget* instPointer,int w, int h, int useContext);
qt_QImage * qt_QGLWidget_grabFrameBuffer(qt_QGLWidget* instPointer,int withAlpha);
void qt_QGLWidget_makeOverlayCurrent(qt_QGLWidget* instPointer);
qt_QGLContext* qt_QGLWidget_overlayContext(qt_QGLWidget* instPointer);
void qt_QGLWidget_setMouseTracking(qt_QGLWidget* instPointer,int enable);
void qt_QGLWidget_reparent(qt_QGLWidget* instPointer,qt_QWidget * parent, int f, qt_QPoint* p, int showIt);
qt_QGLColormap* qt_QGLWidget_colormap(qt_QGLWidget* instPointer);
void qt_QGLWidget_setColormap(qt_QGLWidget* instPointer,qt_QGLColormap* map);
void qt_QGLWidget_updateGL(qt_QGLWidget* instPointer);
void qt_QGLWidget_updateOverlayGL(qt_QGLWidget* instPointer);
qt_QImage * qt_QGLWidget_convertToGLFormat( qt_QImage * img);
void qt_QGLWidget_initializeGL(qt_QGLWidget* instPointer);
void qt_QGLWidget_resizeGL(qt_QGLWidget* instPointer,int w, int h);
void qt_QGLWidget_paintGL(qt_QGLWidget* instPointer);
void qt_QGLWidget_initializeOverlayGL(qt_QGLWidget* instPointer);
void qt_QGLWidget_resizeOverlayGL(qt_QGLWidget* instPointer,int w, int h);
void qt_QGLWidget_paintOverlayGL(qt_QGLWidget* instPointer);
void qt_QGLWidget_setAutoBufferSwap(qt_QGLWidget* instPointer,int on);
int qt_QGLWidget_autoBufferSwap(qt_QGLWidget* instPointer);
void qt_QGLWidget_glInit(qt_QGLWidget* instPointer);
void qt_QGLWidget_glDraw(qt_QGLWidget* instPointer);

/** Casts a 'qt_QGLWidget *' to a 'qt_QGL*' */
qt_QGL* qt_QGLWidget_QGL(qt_QGLWidget* instPointer);

/** Casts a 'qt_QGLWidget *' to a 'qt_QWidget *' */
qt_QWidget * qt_QGLWidget_QWidget(qt_QGLWidget* instPointer);

#endif
