/***************************************************************************
                            qt_QGLContext.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_QGLCONTEXT
#define QT_QGLCONTEXT

#include <qtc/qtc_types.h>

qt_QGLContext * qt_new_QGLContext(qt_QGLFormat* format, qt_QPaintDevice * device);
void qt_del_QGLContext( qt_QGLContext* p );
int qt_QGLContext_create(qt_QGLContext* instPointer,qt_QGLContext* shareContext);
int qt_QGLContext_isValid(qt_QGLContext* instPointer);
int qt_QGLContext_isSharing(qt_QGLContext* instPointer);
void qt_QGLContext_reset(qt_QGLContext* instPointer);
qt_QGLFormat* qt_QGLContext_format(qt_QGLContext* instPointer);
qt_QGLFormat* qt_QGLContext_requestedFormat(qt_QGLContext* instPointer);
void qt_QGLContext_setFormat(qt_QGLContext* instPointer,qt_QGLFormat* format);
void qt_QGLContext_makeCurrent(qt_QGLContext* instPointer);
void qt_QGLContext_swapBuffers(qt_QGLContext* instPointer);
qt_QPaintDevice * qt_QGLContext_device(qt_QGLContext* instPointer);
qt_QColor * qt_QGLContext_overlayTransparentColor(qt_QGLContext* instPointer);
qt_QGLContext* qt_QGLContext_currentContext( );
int qt_QGLContext_chooseContext(qt_QGLContext* instPointer,qt_QGLContext* shareContext);
void qt_QGLContext_doneCurrent(qt_QGLContext* instPointer);
int qt_QGLContext_choosePixelFormat(qt_QGLContext* instPointer,void* pfd, void * pdc);
void* qt_QGLContext_tryVisual(qt_QGLContext* instPointer,qt_QGLFormat* f, int bufDepth);
void* qt_QGLContext_chooseVisual(qt_QGLContext* instPointer);
//void* qt_QGLContext_chooseMacVisual(qt_QGLContext* instPointer,GDHandle arg1);
int qt_QGLContext_deviceIsPixmap(qt_QGLContext* instPointer);
int qt_QGLContext_windowCreated(qt_QGLContext* instPointer);
void qt_QGLContext_setWindowCreated(qt_QGLContext* instPointer,int on);
int qt_QGLContext_initialized(qt_QGLContext* instPointer);
void qt_QGLContext_setInitialized(qt_QGLContext* instPointer,int on);
unsigned int qt_QGLContext_colorIndex(qt_QGLContext* instPointer,qt_QColor * c);

#endif
