/***************************************************************************
                            QGLFormat.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

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

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class QGLFormat extends QGL  {
	protected QGLFormat(Class dummy){super((Class) null);}

	private native void newQGLFormat();
	public QGLFormat() {
		super((Class) null);
		newQGLFormat();
	}
	private native void newQGLFormat( int options, int plane);
	public QGLFormat( int options, int plane) {
		super((Class) null);
		newQGLFormat( options, plane);
	}
	private native void newQGLFormat( int options);
	public QGLFormat( int options) {
		super((Class) null);
		newQGLFormat( options);
	}
	public native boolean doubleBuffer();
	public native void setDoubleBuffer( boolean enable);
	public native boolean depth();
	public native void setDepth( boolean enable);
	public native boolean rgba();
	public native void setRgba( boolean enable);
	public native boolean alpha();
	public native void setAlpha( boolean enable);
	public native boolean accum();
	public native void setAccum( boolean enable);
	public native boolean stencil();
	public native void setStencil( boolean enable);
	public native boolean stereo();
	public native void setStereo( boolean enable);
	public native boolean directRendering();
	public native void setDirectRendering( boolean enable);
	public native boolean hasOverlay();
	public native void setOverlay( boolean enable);
	public native int plane();
	public native void setPlane( int plane);
	public native void setOption( int opt);
	public native boolean testOption( int opt);
	public static native QGLFormat defaultFormat();
	public static native void setDefaultFormat( QGLFormat f);
	public static native QGLFormat defaultOverlayFormat();
	public static native void setDefaultOverlayFormat( QGLFormat f);
	public static native boolean hasOpenGL();
	public static native boolean hasOpenGLOverlays();
}
