1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
<html>
<!-- vi:set sw=2: -->
<!--
Copyright (C) 1996-2002 Brian Paul and Ben Bederson
Copyright (C) 2005-2008 Greg Couch
See the LICENSE file for copyright details.
-->
<head>
<title>Togl Frequently Asked Questions</title>
</head>
<body>
<script language="javascript" src="header.js"></script>
<script language="javascript">
NavigationBar();
</script>
<h1 align="center">Togl Frequently Asked Questions</h1>
<h2>Contents</h2>
<ul>
<li><a href="#badmatch">Bad Match X errors on Sun systems</a>
<li><a href="#stereo">Is stereo rendering supported?</a>
<li><a href="#fullscreen stereo">Is fullscreen stereo rendering supported?</a>
<li><a href="#dc">How do I get the Microsoft Windows device context?</a>
<li><a href="#python">How do I use Togl from Python?</a>
<li><a href="#tile">Is Togl compatible with Tile and Tk 8.5?</a>
</ul>
<h2>Frequently Asked Questions (and Problems)</h2>
<hr>
<p>
If you have something to add to this section please let us know.
<dl>
<dt>
<a name="badmatch"><b>Bad Match X errors on Sun systems</b></a>
<dd>
There is(was?) a bug in Sun's XmuLookupStandardColormap
X library function.
If you compile togl.c with the SOLARIS_BUG symbol defined (-DSOLARIS_BUG)
this function call will be omitted.
<p>
<dt>
<a name="stereo"><b>Is stereo rendering supported?</b></a>
<dd>
Several different <a href="stereo.html">stereo modes</a> are supported.
<p>
<dt>
<a name="fullscreen stereo"><b>Is fullscreen stereo rendering supported?</b></a>
<dd>
Before Tk 8.5,
Tk does not support true fullscreen windows.
Consequenly the full-screen stereo,
that gaming graphics cards support (ATI Radeon, NVidia GeForce),
won't be added until sometime after Tk 8.5 is available.
Fullscreen stereo on workstation graphics cards
(ATI FireGL, NVidia Quadro, Matrix Parhelia, 3Dlabs Wildcat)
does work.
<p>
<dt>
<a name="dc"><b>How do I get the Microsoft Windows device context?</b></a>
<dd>
First call <code>Togl_MakeCurrent</code> to make sure you have the
right OpenGL context and device context set,
then call <code>wglGetCurrentDC</code>.
<p>
<dt>
<a name="python"><b>How do I use Togl from Python?</b></a>
<dd>
The Togl source distribution comes with a <code>Togl.py</code> file
that provides a Tkinter-style Togl widget.
And for Togl callbacks that are C functions,
there is a <code>toglpy.h</code> file that provides a function
that converts a Python object into its corresponding Togl widget:
<blockquote>
<code>Togl *getToglFromWidget(PyObject *widget)</code>
</blockquote>
<p>
<dt>
<a name="tile"><b>Is Togl compatible with Tile and Tk 8.5?</b></a>
<dd>
Yes, Togl works as is (except for the bitmap font support for X11 and Aqua).
From <a href="http://wiki.tcl.tk/1218">Joe English</a>:
<blockquote>
Complex "owner-draw" widgets like tkZinc,
or the text and canvas widgets,
really don't benefit much from themability,
so there's no reason to rewrite them.
(<a href="http://wiki.tcl.tk/13373">http://wiki.tcl.tk/13373</a>)
</blockquote>
</dl>
<hr>
Hosted by <a href="http://sourceforge.net/">
<img src="http://sflogo.sourceforge.net/sflogo.php?group_id=519&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" align="middle"/>
</a>
</body>
</html>
|