Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > af7a4b7f1ee5a4a084c41b9005da5527 > files > 683

libfox1.1_46-devel-1.1.46-1mdk.i586.rpm

<html>
<head>
<link rel="stylesheet" href="page.css" type="text/css">
<title>fox-toolkit.org - Documentation</title>
</head>
<body bgcolor=#ffffff link=#990033 vlink=#990033 alink=#990033 text=#000000>
<font face='verdana,sans-serif' size=2 >

<!---- TOPIC TITLE WITH LOGO--->
<table border=0 cellpadding= cellspacing=2 width=100% ><tr><td><a href='http://www.fox-toolkit.org/doc.html'><img src='../art/foxlogo_small.jpg' border=0></a></td><td width=100% valign=bottom><font face='verdana,sans-serif' size=2 ><b>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a>
<br><img src='../art/line.gif' width=100% height=1></b></font></td></tr></table>
<p>
<!--- TOPIC TITLE WITH LOGO --->
<!-- Generated by Doxygen 1.3.3 -->
<h1>FX::FXGLContext Class Reference</h1>A GL context is an object representing the OpenGL state information.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="FXGLContext_8h-source.html">FXGLContext.h</a>&gt;</code>
<p>
<p>Inheritance diagram for FX::FXGLContext:
<p><center><img src="classFX_1_1FXGLContext.png" usemap="#FX::FXGLContext_map" border="0" alt=""></center>
<map name="FX::FXGLContext_map">
<area href="classFX_1_1FXId.html" alt="FX::FXId" shape="rect" coords="0,56,110,80">
<area href="classFX_1_1FXObject.html" alt="FX::FXObject" shape="rect" coords="0,0,110,24">
</map>
<a href="classFX_1_1FXGLContext-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a0">FXGLContext</a> (<a class="el" href="classFX_1_1FXApp.html">FXApp</a> *a, <a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> *vis)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a1">FXGLContext</a> (<a class="el" href="classFX_1_1FXApp.html">FXApp</a> *a, <a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> *vis, <a class="el" href="classFX_1_1FXGLContext.html">FXGLContext</a> *shared)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>FXbool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a2">isShared</a> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a3">getVisual</a> () const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a4">create</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a5">detach</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a6">destroy</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>FXbool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a7">begin</a> (<a class="el" href="classFX_1_1FXDrawable.html">FXDrawable</a> *drawable)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>FXbool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a8">end</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a9">swapBuffers</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a10">swapSubBuffers</a> (FXint x, FXint y, FXint w, FXint h)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a11">save</a> (<a class="el" href="classFX_1_1FXStream.html">FXStream</a> &amp;store) const</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a12">load</a> (<a class="el" href="classFX_1_1FXStream.html">FXStream</a> &amp;store)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLContext.html#a13">~FXGLContext</a> ()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GL context is an object representing the OpenGL state information. 
<p>
Multiple GL context may share display lists to conserve memory. When drawing multiple windows, it may be advantageous to share not only display lists, but also GL contexts. Since the GL context is created for a certain frame-buffer configuration, sharing of GL contexts is only possible if the windows sharing the GL context all have the same GL visual. However, display lists may be shared between different GL contexts. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="FX::FXGLContext::FXGLContext"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> FX::FXGLContext::FXGLContext </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXApp.html">FXApp</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>a</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>vis</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct an OpenGL context with its own private display list. 
<p>
    </td>
  </tr>
</table>
<a name="a1" doxytag="FX::FXGLContext::FXGLContext"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> FX::FXGLContext::FXGLContext </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXApp.html">FXApp</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>a</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>vis</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classFX_1_1FXGLContext.html">FXGLContext</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>shared</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Construct an OpenGL context sharing display lists with an existing GL context. 
<p>
    </td>
  </tr>
</table>
<a name="a13" doxytag="FX::FXGLContext::~FXGLContext"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual FX::FXGLContext::~<a class="el" href="classFX_1_1FXGLContext.html">FXGLContext</a> </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destructor. 
<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a2" doxytag="FX::FXGLContext::isShared"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> FXbool FX::FXGLContext::isShared </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return TRUE if it is sharing display lists. 
<p>
    </td>
  </tr>
</table>
<a name="a3" doxytag="FX::FXGLContext::getVisual"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a>* FX::FXGLContext::getVisual </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Get the visual. 
<p>
    </td>
  </tr>
</table>
<a name="a4" doxytag="FX::FXGLContext::create"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual void FX::FXGLContext::create </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Create context. 
<p>

<p>
Reimplemented from <a class="el" href="classFX_1_1FXId.html#a2">FX::FXId</a>.    </td>
  </tr>
</table>
<a name="a5" doxytag="FX::FXGLContext::detach"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual void FX::FXGLContext::detach </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Detach the server-side resources for this window. 
<p>

<p>
Reimplemented from <a class="el" href="classFX_1_1FXId.html#a3">FX::FXId</a>.    </td>
  </tr>
</table>
<a name="a6" doxytag="FX::FXGLContext::destroy"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual void FX::FXGLContext::destroy </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destroy the server-side resources for this window. 
<p>

<p>
Reimplemented from <a class="el" href="classFX_1_1FXId.html#a4">FX::FXId</a>.    </td>
  </tr>
</table>
<a name="a7" doxytag="FX::FXGLContext::begin"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> FXbool FX::FXGLContext::begin </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXDrawable.html">FXDrawable</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>drawable</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Make OpenGL context current prior to performing OpenGL commands. 
<p>
    </td>
  </tr>
</table>
<a name="a8" doxytag="FX::FXGLContext::end"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> FXbool FX::FXGLContext::end </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Make OpenGL context non current. 
<p>
    </td>
  </tr>
</table>
<a name="a9" doxytag="FX::FXGLContext::swapBuffers"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void FX::FXGLContext::swapBuffers </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Swap front and back buffer. 
<p>
    </td>
  </tr>
</table>
<a name="a10" doxytag="FX::FXGLContext::swapSubBuffers"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void FX::FXGLContext::swapSubBuffers </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">FXint&nbsp;</td>
          <td class="mdname" nowrap> <em>x</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>FXint&nbsp;</td>
          <td class="mdname" nowrap> <em>y</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>FXint&nbsp;</td>
          <td class="mdname" nowrap> <em>w</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>FXint&nbsp;</td>
          <td class="mdname" nowrap> <em>h</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Copy part of backbuffer to front buffer [Mesa]. 
<p>
    </td>
  </tr>
</table>
<a name="a11" doxytag="FX::FXGLContext::save"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual void FX::FXGLContext::save </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXStream.html">FXStream</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>store</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Save object to stream. 
<p>

<p>
Reimplemented from <a class="el" href="classFX_1_1FXId.html#a7">FX::FXId</a>.    </td>
  </tr>
</table>
<a name="a12" doxytag="FX::FXGLContext::load"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual void FX::FXGLContext::load </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXStream.html">FXStream</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>store</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Load object from stream. 
<p>

<p>
Reimplemented from <a class="el" href="classFX_1_1FXId.html#a8">FX::FXId</a>.    </td>
  </tr>
</table>
</font>

<!--- COPYRIGHT -->
<p>
<table width=100% cellpadding=0 cellspacing=0><tr><td width=100% valign=top id=HEADLINE align=right>
<img src='../art/line.gif' width=100% height=1><font size=-1>
Copyright &copy; 1997-2004 Jeroen van der Zijp</font>
</td></tr></table>
</p>
<!--- COPYRIGHT -->
</body>
</html>