Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1855

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:07:17 CEST 2007 -->
<TITLE>
QGLContext
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.opengl.QGLContext class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QGLContext";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/opengl/QGLColormap.html" title="class in com.trolltech.qt.opengl"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/opengl/QGLContext.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QGLContext.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.opengl</FONT>
<BR>
Class QGLContext</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.opengl.QGLContext</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QGLContext</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></DL>
</PRE>

<P>
<p>The <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a> class encapsulates an OpenGL rendering context.</p>
<p>An OpenGL rendering context is a complete set of OpenGL state variables. The rendering context's format</tt> is set in the constructor, but it can also be set later with <a href="QGLContext.html#setFormat(com.trolltech.qt.opengl.QGLFormat)"><tt>setFormat</tt></a>. The format options that are actually set are returned by <a href="QGLContext.html#format()"><tt>format</tt></a>; the options you asked for are returned by <a href="QGLContext.html#requestedFormat()"><tt>requestedFormat</tt></a>. Note that after a <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a> object has been constructed, the actual OpenGL context must be created by explicitly calling the <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)">create()</a> function. The <a href="QGLContext.html#makeCurrent()"><tt>makeCurrent</tt></a> function makes this context the current rendering context. You can make <i>no</i> context current using <a href="QGLContext.html#doneCurrent()"><tt>doneCurrent</tt></a>. The <a href="QGLContext.html#reset()"><tt>reset</tt></a> function will reset the context and make it invalid.</p>
<p>You can examine properties of the context with, e.g&#x2e; <a href="QGLContext.html#isValid()"><tt>isValid</tt></a>, <a href="QGLContext.html#isSharing()"><tt>isSharing</tt></a>, <a href="QGLContext.html#initialized()"><tt>initialized</tt></a>, <a href="QGLContext.html#windowCreated()"><tt>windowCreated</tt></a> and <a href="QGLContext.html#overlayTransparentColor()"><tt>overlayTransparentColor</tt></a>.</p>
<p>If you're using double buffering you can swap the screen contents with the off-screen buffer using <a href="QGLContext.html#swapBuffers()"><tt>swapBuffers</tt></a>.</p>
<p>Please note that <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a> is not thread safe.</p>
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)">QGLContext</A></B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an OpenGL context with the given <tt>format</tt> which specifies several display options for the context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat, com.trolltech.qt.gui.QPaintDeviceInterface)">QGLContext</A></B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A>&nbsp;format,
           <A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A>&nbsp;device)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is obsolete.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#bindTexture(com.trolltech.qt.gui.QImage)">bindTexture</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;image)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a>(<tt>image</tt>, GL_TEXTURE_2D, GL_RGBA).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#bindTexture(com.trolltech.qt.gui.QImage, int)">bindTexture</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;image,
            int&nbsp;target)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a>(<tt>image</tt>, <tt>target</tt>, GL_RGBA).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#bindTexture(com.trolltech.qt.gui.QImage, int, int)">bindTexture</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;image,
            int&nbsp;target,
            int&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates and binds a 2D GL texture to the current context, based on <tt>image</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap)">bindTexture</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a>(<tt>pixmap</tt>, GL_TEXTURE_2D, GL_RGBA).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int)">bindTexture</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap,
            int&nbsp;target)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a>(<tt>pixmap</tt>, <tt>target</tt>, GL_RGBA).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)">bindTexture</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap,
            int&nbsp;target,
            int&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates and binds a 2D GL texture based on <tt>pixmap</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#bindTexture(java.lang.String)">bindTexture</A></B>(java.lang.String&nbsp;fileName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the DirectDrawSurface (DDS) compressed file <tt>fileName</tt> and generates a 2D GL texture from it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#chooseContext()">chooseContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QGLContext.html#chooseContext(com.trolltech.qt.opengl.QGLContext)"><tt>chooseContext</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#chooseContext(com.trolltech.qt.opengl.QGLContext)">chooseContext</A></B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html" title="class in com.trolltech.qt.opengl">QGLContext</A>&nbsp;shareContext)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This semi-internal function is called by <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)"><tt>create</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#colorIndex(com.trolltech.qt.gui.QColor)">colorIndex</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used internally by Qt Jambi.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#create()">create</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)">create</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)">create</A></B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html" title="class in com.trolltech.qt.opengl">QGLContext</A>&nbsp;shareContext)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates the GL context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html" title="class in com.trolltech.qt.opengl">QGLContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#currentContext()">currentContext</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current context, i.e&#x2e; the context to which any OpenGL commands will currently be directed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#deleteTexture(int)">deleteTexture</A></B>(int&nbsp;tx_id)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the texture identified by <tt>tx_id</tt> from the texture cache.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#device()">device</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the paint device set for this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#deviceIsPixmap()">deviceIsPixmap</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the paint device of this context is a pixmap; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#doneCurrent()">doneCurrent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Makes no GL context the current context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#format()">format</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the frame buffer format that was obtained (this may be a subset of what was requested).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html" title="class in com.trolltech.qt.opengl">QGLContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QGLContext instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#initialized()">initialized</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this context has been initialized, i.e&#x2e; if QGLWidget::initializeGL() has been performed on it; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#isSharing()">isSharing</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this context is sharing its GL context with another <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a>, otherwise false is returned.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#isValid()">isValid</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a GL rendering context has been successfully created; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#makeCurrent()">makeCurrent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Makes this context the current OpenGL rendering context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#overlayTransparentColor()">overlayTransparentColor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this context is a valid context in an overlay plane, returns the plane's transparent color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#requestedFormat()">requestedFormat</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the frame buffer format that was originally requested in the constructor or <a href="QGLContext.html#setFormat(com.trolltech.qt.opengl.QGLFormat)"><tt>setFormat</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#reset()">reset</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the context and makes it invalid.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#setFormat(com.trolltech.qt.opengl.QGLFormat)">setFormat</A></B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A>&nbsp;format)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a <tt>format</tt> for this context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#setInitialized(boolean)">setInitialized</A></B>(boolean&nbsp;on)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If <tt>on</tt> is true the context has been initialized, i.e&#x2e; QGLContext::setInitialized() has been called on it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#setTextureCacheLimit(int)">setTextureCacheLimit</A></B>(int&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function sets the limit for the texture cache to <tt>size</tt>, expressed in kilobytes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#setValid(boolean)">setValid</A></B>(boolean&nbsp;valid)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used internally by Qt Jambi.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#setWindowCreated(boolean)">setWindowCreated</A></B>(boolean&nbsp;on)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If <tt>on</tt> is true the context has had a window created for it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#swapBuffers()">swapBuffers</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Swaps the screen contents with an off-screen buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#textureCacheLimit()">textureCacheLimit</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current texture cache limit in kilobytes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html#windowCreated()">windowCreated</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a window has been created for this context; otherwise returns false.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#thread()">thread</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QGLContext(com.trolltech.qt.opengl.QGLFormat, com.trolltech.qt.gui.QPaintDeviceInterface)"><!-- --></A><H3>
QGLContext</H3>
<PRE>
public <B>QGLContext</B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A>&nbsp;format,
                  <A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A>&nbsp;device)</PRE>
<DL>
<DD><p>This method is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p>
<p>Constructs an OpenGL context for the given paint <tt>device</tt>, which can be a widget or a pixmap. The <tt>format</tt> specifies several display options for the context.</p>
<p>If the underlying OpenGL/Window system cannot satisfy all the features requested in <tt>format</tt>, the nearest subset of features will be used. After creation, the <a href="QGLContext.html#format()"><tt>format</tt></a> method will return the actual format obtained.</p>
<p>Note that after a <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a> object has been constructed, <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)"><tt>create</tt></a> must be called explicitly to create the actual OpenGL context. The context will be <a href="QGLContext.html#isValid()">invalid</tt></a> if it was not possible to obtain a GL context at all.</p>
<P>
</DL>
<HR>

<A NAME="QGLContext(com.trolltech.qt.opengl.QGLFormat)"><!-- --></A><H3>
QGLContext</H3>
<PRE>
public <B>QGLContext</B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Constructs an OpenGL context with the given <tt>format</tt> which specifies several display options for the context.</p>
<p>If the underlying OpenGL/Window system cannot satisfy all the features requested in <tt>format</tt>, the nearest subset of features will be used. After creation, the <a href="QGLContext.html#format()"><tt>format</tt></a> method will return the actual format obtained.</p>
<p>Note that after a <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a> object has been constructed, <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)"><tt>create</tt></a> must be called explicitly to create the actual OpenGL context. The context will be <a href="QGLContext.html#isValid()">invalid</tt></a> if it was not possible to obtain a GL context at all.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#format()"><tt>format</tt></a>, 
<a href="QGLContext.html#isValid()"><tt>isValid</tt></a></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="bindTexture(com.trolltech.qt.gui.QImage, int)"><!-- --></A><H3>
bindTexture</H3>
<PRE>
public final int <B>bindTexture</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;image,
                             int&nbsp;target)</PRE>
<DL>
<DD><p>Equivalent to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a>(<tt>image</tt>, <tt>target</tt>, GL_RGBA).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="bindTexture(com.trolltech.qt.gui.QImage)"><!-- --></A><H3>
bindTexture</H3>
<PRE>
public final int <B>bindTexture</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;image)</PRE>
<DL>
<DD><p>Equivalent to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a>(<tt>image</tt>, GL_TEXTURE_2D, GL_RGBA).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="bindTexture(com.trolltech.qt.gui.QImage, int, int)"><!-- --></A><H3>
bindTexture</H3>
<PRE>
public final int <B>bindTexture</B>(<A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>&nbsp;image,
                             int&nbsp;target,
                             int&nbsp;format)</PRE>
<DL>
<DD><p>Generates and binds a 2D GL texture to the current context, based on <tt>image</tt>. The generated texture id is returned and can be used in later <tt>glBindTexture()</tt> calls.</p>
<p>The <tt>target</tt> parameter specifies the texture target. The default target is <tt>GL_TEXTURE_2D</tt>.</p>
<p>The <tt>format</tt> parameter sets the internal format for the texture. The default format is <tt>GL_RGBA8</tt>.</p>
<p>If the GL implementation supports the <tt>GL_SGIS_generate_mipmap</tt> extension, mipmaps will be automatically generated for the texture. Mipmap generation is only supported for the <tt>GL_TEXTURE_2D</tt> target.</p>
<p>The texture that is generated is cached, so multiple calls to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a> with the same <a href="%2E%2E/gui/QImage.html"><tt>QImage</tt></a> will return the same texture id.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#deleteTexture(int)"><tt>deleteTexture</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bindTexture(java.lang.String)"><!-- --></A><H3>
bindTexture</H3>
<PRE>
public final int <B>bindTexture</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD><p>Reads the DirectDrawSurface (DDS) compressed file <tt>fileName</tt> and generates a 2D GL texture from it.</p>
<p>Only the DXT1, DXT3 and DXT5 DDS formats are supported.</p>
<p>Note that this will only work if the implementation supports the <tt>GL_ARB_texture_compression</tt> and <tt>GL_EXT_texture_compression_s3tc</tt> extensions.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#deleteTexture(int)"><tt>deleteTexture</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bindTexture(com.trolltech.qt.gui.QPixmap, int)"><!-- --></A><H3>
bindTexture</H3>
<PRE>
public final int <B>bindTexture</B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap,
                             int&nbsp;target)</PRE>
<DL>
<DD><p>Equivalent to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a>(<tt>pixmap</tt>, <tt>target</tt>, GL_RGBA).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="bindTexture(com.trolltech.qt.gui.QPixmap)"><!-- --></A><H3>
bindTexture</H3>
<PRE>
public final int <B>bindTexture</B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap)</PRE>
<DL>
<DD><p>Equivalent to <a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a>(<tt>pixmap</tt>, GL_TEXTURE_2D, GL_RGBA).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><!-- --></A><H3>
bindTexture</H3>
<PRE>
public final int <B>bindTexture</B>(<A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>&nbsp;pixmap,
                             int&nbsp;target,
                             int&nbsp;format)</PRE>
<DL>
<DD><p>Generates and binds a 2D GL texture based on <tt>pixmap</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="colorIndex(com.trolltech.qt.gui.QColor)"><!-- --></A><H3>
colorIndex</H3>
<PRE>
protected final int <B>colorIndex</B>(<A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A>&nbsp;c)</PRE>
<DL>
<DD><p>This method is used internally by Qt Jambi.
Do not use it in your applications.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="deleteTexture(int)"><!-- --></A><H3>
deleteTexture</H3>
<PRE>
public final void <B>deleteTexture</B>(int&nbsp;tx_id)</PRE>
<DL>
<DD><p>Removes the texture identified by <tt>tx_id</tt> from the texture cache. If the context is not shared by any other <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a>, glDeleteTextures() will be called to delete the texture from the context.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#bindTexture(com.trolltech.qt.gui.QPixmap, int, int)"><tt>bindTexture</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="device()"><!-- --></A><H3>
device</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html" title="interface in com.trolltech.qt.gui">QPaintDeviceInterface</A> <B>device</B>()</PRE>
<DL>
<DD><p>Returns the paint device set for this context.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QGLContext::QGLContext</tt></DL>
</DD>
</DL>
<HR>

<A NAME="deviceIsPixmap()"><!-- --></A><H3>
deviceIsPixmap</H3>
<PRE>
protected final boolean <B>deviceIsPixmap</B>()</PRE>
<DL>
<DD><p>Returns true if the paint device of this context is a pixmap; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="format()"><!-- --></A><H3>
format</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A> <B>format</B>()</PRE>
<DL>
<DD><p>Returns the frame buffer format that was obtained (this may be a subset of what was requested).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#setFormat(com.trolltech.qt.opengl.QGLFormat)"><tt>setFormat</tt></a>, 
<a href="QGLContext.html#requestedFormat()"><tt>requestedFormat</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="initialized()"><!-- --></A><H3>
initialized</H3>
<PRE>
protected final boolean <B>initialized</B>()</PRE>
<DL>
<DD><p>Returns true if this context has been initialized, i.e&#x2e; if QGLWidget::initializeGL() has been performed on it; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#setInitialized(boolean)"><tt>setInitialized</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isSharing()"><!-- --></A><H3>
isSharing</H3>
<PRE>
public final boolean <B>isSharing</B>()</PRE>
<DL>
<DD><p>Returns true if this context is sharing its GL context with another <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a>, otherwise false is returned. Note that context sharing might not be supported between contexts with different formats.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="isValid()"><!-- --></A><H3>
isValid</H3>
<PRE>
public final boolean <B>isValid</B>()</PRE>
<DL>
<DD><p>Returns true if a GL rendering context has been successfully created; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="overlayTransparentColor()"><!-- --></A><H3>
overlayTransparentColor</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/gui/QColor.html" title="class in com.trolltech.qt.gui">QColor</A> <B>overlayTransparentColor</B>()</PRE>
<DL>
<DD><p>If this context is a valid context in an overlay plane, returns the plane's transparent color. Otherwise returns an invalid</tt> color.</p>
<p>The returned color's pixel</tt> value is the index of the transparent color in the colormap of the overlay plane. (Naturally, the color's RGB values are meaningless.)</p>
<p>The returned <a href="%2E%2E/gui/QColor.html"><tt>QColor</tt></a> object will generally work as expected only when passed as the argument to QGLWidget::qglColor() or QGLWidget::qglClearColor(). Under certain circumstances it can also be used to draw transparent graphics with a <a href="%2E%2E/gui/QPainter.html"><tt>QPainter</tt></a>. See the examples/opengl/overlay_x11 example for details.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="requestedFormat()"><!-- --></A><H3>
requestedFormat</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A> <B>requestedFormat</B>()</PRE>
<DL>
<DD><p>Returns the frame buffer format that was originally requested in the constructor or <a href="QGLContext.html#setFormat(com.trolltech.qt.opengl.QGLFormat)"><tt>setFormat</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#format()"><tt>format</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public final void <B>reset</B>()</PRE>
<DL>
<DD><p>Resets the context and makes it invalid.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)"><tt>create</tt></a>, 
<a href="QGLContext.html#isValid()"><tt>isValid</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setFormat(com.trolltech.qt.opengl.QGLFormat)"><!-- --></A><H3>
setFormat</H3>
<PRE>
public final void <B>setFormat</B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl">QGLFormat</A>&nbsp;format)</PRE>
<DL>
<DD><p>Sets a <tt>format</tt> for this context. The context is <a href="QGLContext.html#reset()">reset</tt></a>.</p>
<p>Call <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)"><tt>create</tt></a> to create a new GL context that tries to match the new format.</p>
<pre>    QGLContext *cx;
<span class="comment">    //  ...</span>
    QGLFormat f;
    f.setStereo(true);
    cx-&gt;setFormat(f);
    if (!cx-&gt;create())
        exit(); <span class="comment">// no OpenGL support, or cannot render on the specified paintdevice</span>
    if (!cx-&gt;format().stereo())
        exit(); <span class="comment">// could not create stereo context</span></pre>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#format()"><tt>format</tt></a>, 
<a href="QGLContext.html#reset()"><tt>reset</tt></a>, 
<a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)"><tt>create</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setInitialized(boolean)"><!-- --></A><H3>
setInitialized</H3>
<PRE>
protected final void <B>setInitialized</B>(boolean&nbsp;on)</PRE>
<DL>
<DD><p>If <tt>on</tt> is true the context has been initialized, i.e&#x2e; QGLContext::setInitialized() has been called on it. If <tt>on</tt> is false the context has not been initialized.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#initialized()"><tt>initialized</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setValid(boolean)"><!-- --></A><H3>
setValid</H3>
<PRE>
protected final void <B>setValid</B>(boolean&nbsp;valid)</PRE>
<DL>
<DD><p>This method is used internally by Qt Jambi.
Do not use it in your applications.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#isValid()"><tt>isValid</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setWindowCreated(boolean)"><!-- --></A><H3>
setWindowCreated</H3>
<PRE>
protected final void <B>setWindowCreated</B>(boolean&nbsp;on)</PRE>
<DL>
<DD><p>If <tt>on</tt> is true the context has had a window created for it. If <tt>on</tt> is false no window has been created for the context.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#windowCreated()"><tt>windowCreated</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="windowCreated()"><!-- --></A><H3>
windowCreated</H3>
<PRE>
protected final boolean <B>windowCreated</B>()</PRE>
<DL>
<DD><p>Returns true if a window has been created for this context; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#setWindowCreated(boolean)"><tt>setWindowCreated</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="chooseContext()"><!-- --></A><H3>
chooseContext</H3>
<PRE>
protected final boolean <B>chooseContext</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QGLContext.html#chooseContext(com.trolltech.qt.opengl.QGLContext)"><tt>chooseContext</tt></a>(0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="chooseContext(com.trolltech.qt.opengl.QGLContext)"><!-- --></A><H3>
chooseContext</H3>
<PRE>
protected boolean <B>chooseContext</B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html" title="class in com.trolltech.qt.opengl">QGLContext</A>&nbsp;shareContext)</PRE>
<DL>
<DD><p>This semi-internal function is called by <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)"><tt>create</tt></a>. It creates a system-dependent OpenGL handle that matches the <a href="QGLContext.html#format()"><tt>format</tt></a> of <tt>shareContext</tt> as closely as possible, returning true if successful or false if a suitable handle could not be found.</p>
<p>On Windows, it calls the virtual function choosePixelFormat(), which finds a matching pixel format identifier. On X11, it calls the virtual function chooseVisual() which finds an appropriate X visual. On other platforms it may work differently.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="create()"><!-- --></A><H3>
create</H3>
<PRE>
public final boolean <B>create</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)">create</tt></a>(0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="create(com.trolltech.qt.opengl.QGLContext)"><!-- --></A><H3>
create</H3>
<PRE>
public boolean <B>create</B>(<A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html" title="class in com.trolltech.qt.opengl">QGLContext</A>&nbsp;shareContext)</PRE>
<DL>
<DD><p>Creates the GL context. Returns true if it was successful in creating a valid GL rendering context on the paint device specified in the constructor; otherwise returns false (i.e&#x2e; the context is invalid).</p>
<p>After successful creation, <a href="QGLContext.html#format()"><tt>format</tt></a> returns the set of features of the created GL rendering context.</p>
<p>If <tt>shareContext</tt> points to a valid <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a>, this method will try to establish OpenGL display list sharing between this context and the <tt>shareContext</tt>. Note that this may fail if the two contexts have different formats. Use <a href="QGLContext.html#isSharing()"><tt>isSharing</tt></a> to see if sharing succeeded.</p>
<p><b>Warning:</b> Implementation note: initialization of C++ class members usually takes place in the class constructor. <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a> is an exception because it must be simple to customize. The virtual functions <a href="QGLContext.html#chooseContext(com.trolltech.qt.opengl.QGLContext)"><tt>chooseContext</tt></a> (and chooseVisual() for X11) can be reimplemented in a subclass to select a particular context. The problem is that virtual functions are not properly called during construction (even though this is correct C++) because C++ constructs class hierarchies from the bottom up. For this reason we need a <a href="QGLContext.html#create(com.trolltech.qt.opengl.QGLContext)"><tt>create</tt></a> function.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#chooseContext(com.trolltech.qt.opengl.QGLContext)"><tt>chooseContext</tt></a>, 
<a href="QGLContext.html#format()"><tt>format</tt></a>, 
<a href="QGLContext.html#isValid()"><tt>isValid</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="doneCurrent()"><!-- --></A><H3>
doneCurrent</H3>
<PRE>
public void <B>doneCurrent</B>()</PRE>
<DL>
<DD><p>Makes no GL context the current context. Normally, you do not need to call this function; <a href="QGLContext.html#QGLContext(com.trolltech.qt.opengl.QGLFormat)"><tt>QGLContext</tt></a> calls it as necessary.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="makeCurrent()"><!-- --></A><H3>
makeCurrent</H3>
<PRE>
public void <B>makeCurrent</B>()</PRE>
<DL>
<DD><p>Makes this context the current OpenGL rendering context. All GL functions you call operate on this context until another context is made current.</p>
<p>In some very rare cases the underlying call may fail. If this occurs an error message is output to stderr.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="swapBuffers()"><!-- --></A><H3>
swapBuffers</H3>
<PRE>
public void <B>swapBuffers</B>()</PRE>
<DL>
<DD><p>Swaps the screen contents with an off-screen buffer. Only works if the context is in double buffer mode.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QGLFormat::setDoubleBuffer</tt></DL>
</DD>
</DL>
<HR>

<A NAME="currentContext()"><!-- --></A><H3>
currentContext</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html" title="class in com.trolltech.qt.opengl">QGLContext</A> <B>currentContext</B>()</PRE>
<DL>
<DD><p>Returns the current context, i.e&#x2e; the context to which any OpenGL commands will currently be directed. Returns 0 if no context is current.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#makeCurrent()"><tt>makeCurrent</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setTextureCacheLimit(int)"><!-- --></A><H3>
setTextureCacheLimit</H3>
<PRE>
public static void <B>setTextureCacheLimit</B>(int&nbsp;size)</PRE>
<DL>
<DD><p>This function sets the limit for the texture cache to <tt>size</tt>, expressed in kilobytes.</p>
<p>By default, the cache limit is approximately 64 MB.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#textureCacheLimit()"><tt>textureCacheLimit</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="textureCacheLimit()"><!-- --></A><H3>
textureCacheLimit</H3>
<PRE>
public static int <B>textureCacheLimit</B>()</PRE>
<DL>
<DD><p>Returns the current texture cache limit in kilobytes.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QGLContext.html#setTextureCacheLimit(int)"><tt>setTextureCacheLimit</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/opengl/QGLContext.html" title="class in com.trolltech.qt.opengl">QGLContext</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QGLContext instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/opengl/QGLColormap.html" title="class in com.trolltech.qt.opengl"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/opengl/QGLFormat.html" title="class in com.trolltech.qt.opengl"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/opengl/QGLContext.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QGLContext.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>