<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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <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::FXGLCanvas Class Reference</h1>GLCanvas, an area drawn by another object. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="FXGLCanvas_8h-source.html">FXGLCanvas.h</a>></code> <p> <p>Inheritance diagram for FX::FXGLCanvas: <p><center><img src="classFX_1_1FXGLCanvas.png" usemap="#FX::FXGLCanvas_map" border="0" alt=""></center> <map name="FX::FXGLCanvas_map"> <area href="classFX_1_1FXCanvas.html" alt="FX::FXCanvas" shape="rect" coords="0,224,111,248"> <area href="classFX_1_1FXWindow.html" alt="FX::FXWindow" shape="rect" coords="0,168,111,192"> <area href="classFX_1_1FXDrawable.html" alt="FX::FXDrawable" shape="rect" coords="0,112,111,136"> <area href="classFX_1_1FXId.html" alt="FX::FXId" shape="rect" coords="0,56,111,80"> <area href="classFX_1_1FXObject.html" alt="FX::FXObject" shape="rect" coords="0,0,111,24"> <area href="classFX_1_1FXGLViewer.html" alt="FX::FXGLViewer" shape="rect" coords="0,336,111,360"> </map> <a href="classFX_1_1FXGLCanvas-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> </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a0">FXGLCanvas</a> (<a class="el" href="classFX_1_1FXComposite.html">FXComposite</a> *p, <a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> *vis, <a class="el" href="classFX_1_1FXObject.html">FXObject</a> *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a1">FXGLCanvas</a> (<a class="el" href="classFX_1_1FXComposite.html">FXComposite</a> *p, <a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> *vis, <a class="el" href="classFX_1_1FXGLCanvas.html">FXGLCanvas</a> *sharegroup, <a class="el" href="classFX_1_1FXObject.html">FXObject</a> *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>FXbool </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a2">isShared</a> () const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a3">create</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a4">detach</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a5">destroy</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual FXbool </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a6">makeCurrent</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual FXbool </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a7">makeNonCurrent</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual FXbool </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a8">isCurrent</a> () const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>void * </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a9">getContext</a> () const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a10">swapBuffers</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a11">save</a> (<a class="el" href="classFX_1_1FXStream.html">FXStream</a> &store) const</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a12">load</a> (<a class="el" href="classFX_1_1FXStream.html">FXStream</a> &store)</td></tr> <tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classFX_1_1FXGLCanvas.html#a13">~FXGLCanvas</a> ()</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> GLCanvas, an area drawn by another object. <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="FX::FXGLCanvas::FXGLCanvas"></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::FXGLCanvas::FXGLCanvas </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXComposite.html">FXComposite</a> * </td> <td class="mdname" nowrap> <em>p</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> * </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_1FXObject.html">FXObject</a> * </td> <td class="mdname" nowrap> <em>tgt</em> = NULL, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXSelector </td> <td class="mdname" nowrap> <em>sel</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXuint </td> <td class="mdname" nowrap> <em>opts</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>x</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>y</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>w</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>h</em> = 0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Construct an OpenGL-capable canvas, with its own private display list. <p> </td> </tr> </table> <a name="a1" doxytag="FX::FXGLCanvas::FXGLCanvas"></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::FXGLCanvas::FXGLCanvas </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXComposite.html">FXComposite</a> * </td> <td class="mdname" nowrap> <em>p</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classFX_1_1FXGLVisual.html">FXGLVisual</a> * </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_1FXGLCanvas.html">FXGLCanvas</a> * </td> <td class="mdname" nowrap> <em>sharegroup</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classFX_1_1FXObject.html">FXObject</a> * </td> <td class="mdname" nowrap> <em>tgt</em> = NULL, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXSelector </td> <td class="mdname" nowrap> <em>sel</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXuint </td> <td class="mdname" nowrap> <em>opts</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>x</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>y</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>w</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>FXint </td> <td class="mdname" nowrap> <em>h</em> = 0</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Construct an OpenGL-capable canvas, sharing display list with another GL canvas. <p> This canvas becomes a member of a display list share group. All members of the display list share group have to have the same visual. </td> </tr> </table> <a name="a13" doxytag="FX::FXGLCanvas::~FXGLCanvas"></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::FXGLCanvas::~<a class="el" href="classFX_1_1FXGLCanvas.html">FXGLCanvas</a> </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Destructor. <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a2" doxytag="FX::FXGLCanvas::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::FXGLCanvas::isShared </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Return TRUE if it is sharing display lists. <p> </td> </tr> </table> <a name="a3" doxytag="FX::FXGLCanvas::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::FXGLCanvas::create </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Create all of the server-side resources for this window. <p> <p> Reimplemented from <a class="el" href="classFX_1_1FXWindow.html#a60">FX::FXWindow</a>. <p> Reimplemented in <a class="el" href="classFX_1_1FXGLViewer.html#a3">FX::FXGLViewer</a>. </td> </tr> </table> <a name="a4" doxytag="FX::FXGLCanvas::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::FXGLCanvas::detach </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Detach the server-side resources for this window. <p> <p> Reimplemented from <a class="el" href="classFX_1_1FXWindow.html#a62">FX::FXWindow</a>. <p> Reimplemented in <a class="el" href="classFX_1_1FXGLViewer.html#a4">FX::FXGLViewer</a>. </td> </tr> </table> <a name="a5" doxytag="FX::FXGLCanvas::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::FXGLCanvas::destroy </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Destroy the server-side resources for this window. <p> <p> Reimplemented from <a class="el" href="classFX_1_1FXWindow.html#a63">FX::FXWindow</a>. </td> </tr> </table> <a name="a6" doxytag="FX::FXGLCanvas::makeCurrent"></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 FXbool FX::FXGLCanvas::makeCurrent </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Make OpenGL context current prior to performing OpenGL commands. <p> </td> </tr> </table> <a name="a7" doxytag="FX::FXGLCanvas::makeNonCurrent"></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 FXbool FX::FXGLCanvas::makeNonCurrent </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Make OpenGL context non current. <p> </td> </tr> </table> <a name="a8" doxytag="FX::FXGLCanvas::isCurrent"></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 FXbool FX::FXGLCanvas::isCurrent </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Return TRUE if context is current. <p> </td> </tr> </table> <a name="a9" doxytag="FX::FXGLCanvas::getContext"></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::FXGLCanvas::getContext </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Get GL context handle. <p> </td> </tr> </table> <a name="a10" doxytag="FX::FXGLCanvas::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"> virtual void FX::FXGLCanvas::swapBuffers </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Swap front and back buffer. <p> </td> </tr> </table> <a name="a11" doxytag="FX::FXGLCanvas::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::FXGLCanvas::save </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXStream.html">FXStream</a> & </td> <td class="mdname1" valign="top" nowrap> <em>store</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Save object to stream. <p> <p> Reimplemented from <a class="el" href="classFX_1_1FXWindow.html#a120">FX::FXWindow</a>. <p> Reimplemented in <a class="el" href="classFX_1_1FXGLViewer.html#a66">FX::FXGLViewer</a>. </td> </tr> </table> <a name="a12" doxytag="FX::FXGLCanvas::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::FXGLCanvas::load </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFX_1_1FXStream.html">FXStream</a> & </td> <td class="mdname1" valign="top" nowrap> <em>store</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Load object from stream. <p> <p> Reimplemented from <a class="el" href="classFX_1_1FXWindow.html#a121">FX::FXWindow</a>. <p> Reimplemented in <a class="el" href="classFX_1_1FXGLViewer.html#a67">FX::FXGLViewer</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 © 1997-2004 Jeroen van der Zijp</font> </td></tr></table> </p> <!--- COPYRIGHT --> </body> </html>