<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/togl/patches/" rel="alternate"/><link href="https://sourceforge.net/p/togl/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/togl/patches/</id><updated>2005-05-06T18:39:11Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Compile Togl with Visual C++ 6.0 (Part2)</title><link href="https://sourceforge.net/p/togl/patches/7/" rel="alternate"/><published>2005-05-06T18:39:11Z</published><updated>2005-05-06T18:39:11Z</updated><author><name>Paul Obermeier</name><uri>https://sourceforge.net/u/obermeier/</uri></author><id>https://sourceforge.netce6919d565a42c2225a722309124bd58c068f189</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The function Togl_StereoFrustum:&lt;/p&gt;
&lt;p&gt;void&lt;br /&gt;
Togl_StereoFrustum(GLfloat left, GLfloat right, GLfloat &lt;br /&gt;
bottom, GLfloat top, GLfloat near, GLfloat far, GLfloat &lt;br /&gt;
eyeDist, GLfloat eyeOffset)&lt;/p&gt;
&lt;p&gt;gives the following error mesages, when compiled with &lt;br /&gt;
Visual C++ 6.0:&lt;/p&gt;
&lt;p&gt;cl -DPACKAGE_NAME=\"Togl\" -&lt;br /&gt;
DPACKAGE_TARNAME=\"togl\" -&lt;br /&gt;
DPACKAGE_VERSION=\"1.7\" -&lt;br /&gt;
DPACKAGE_STRING=\"Togl\ 1.7\" -&lt;br /&gt;
DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -&lt;br /&gt;
DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -&lt;br /&gt;
DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -&lt;br /&gt;
DHAVE_MEMORY_H=1 -DTOGL_WGL=1 -DLIBGLU=-&lt;br /&gt;
lGLU -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1   -I"/&lt;br /&gt;
c/Programme/Tcl/include" -I"/w/poSoft/tclSrc/tk8.4.5/&lt;br /&gt;
generic" -I"/w/poSoft/tclSrc/tk8.4.5/win" -I"/w/poSoft/&lt;br /&gt;
tclSrc/tk8.4.5/xlib"     -nologo -O2 -W2 -MD   -c `echo &lt;br /&gt;
togl.c` -o togl.obj&lt;br /&gt;
togl.c&lt;br /&gt;
togl.c(4021) : error C4226: Nicht dem Standard &lt;br /&gt;
entsprechende Erweiterung : 'near' ist ein veraltetes &lt;br /&gt;
Schluesselwort&lt;br /&gt;
togl.c(4021) : error C4226: Nicht dem Standard &lt;br /&gt;
entsprechende Erweiterung : 'far' ist ein veraltetes &lt;br /&gt;
Schluesselwort&lt;/p&gt;
&lt;p&gt;(Translation of german error message:&lt;br /&gt;
Extension not corresponding to standard: 'near' is an out-&lt;br /&gt;
of-date keyword)&lt;/p&gt;
&lt;p&gt;A workaround like the following works:&lt;/p&gt;
&lt;p&gt;void&lt;br /&gt;
Togl_StereoFrustum(GLfloat left, GLfloat right, GLfloat &lt;br /&gt;
bottom, GLfloat top, GLfloat nearPlane, GLfloat farPlane, &lt;br /&gt;
GLfloat eyeDist, GLfloat eyeOffset)&lt;br /&gt;
{&lt;br /&gt;
GLfloat eyeShift = (eyeDist - nearPlane) * (eyeOffset / &lt;br /&gt;
eyeDist);&lt;/p&gt;
&lt;p&gt;glFrustum(left + eyeShift, right + eyeShift, bottom, &lt;br /&gt;
top, nearPlane, farPlane);&lt;br /&gt;
glTranslatef(-eyeShift, 0, 0);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Greetings Paul&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compile Togl with Visual C++ 6.0</title><link href="https://sourceforge.net/p/togl/patches/6/" rel="alternate"/><published>2005-05-06T18:23:44Z</published><updated>2005-05-06T18:23:44Z</updated><author><name>Paul Obermeier</name><uri>https://sourceforge.net/u/obermeier/</uri></author><id>https://sourceforge.net1f1660a37fc25453ba937a3eb7b904741ae2061a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;To be able to compile Togl on Windows with both gcc as &lt;br /&gt;
well as Visual C++ 6.0 the following line in configure.in:&lt;/p&gt;
&lt;p&gt;TEA_ADD_LIBS([-lopengl32 -lgdi32])&lt;/p&gt;
&lt;p&gt;has to be changed to:&lt;/p&gt;
&lt;p&gt;TEA_ADD_LIBS([opengl32.lib user32.lib gdi32.lib])&lt;/p&gt;
&lt;p&gt;Tested with the current cvs version.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Togl on Mac OS X</title><link href="https://sourceforge.net/p/togl/patches/5/" rel="alternate"/><published>2004-11-05T02:32:01Z</published><updated>2004-11-05T02:32:01Z</updated><author><name>Thomas J. Milford</name><uri>https://sourceforge.net/u/tmilford/</uri></author><id>https://sourceforge.net990702c0f559ca8856393942bf519307c2621b36</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Besides allowing Togl to build on Mac OS X, this build&lt;br /&gt;
also fixes some bugs in the Makefile.  I'm not an OS X&lt;br /&gt;
expert, but these patches work for me.&lt;/p&gt;
&lt;p&gt;Tested on OS X 10.3.5&lt;/p&gt;
&lt;p&gt;Patches were made against current CVS as of today.&lt;/p&gt;
&lt;p&gt;How the patch was made:&lt;br /&gt;
diff -Naur Togl-1.6 Togl-1.6.mac &amp;gt; mac_os_x.patch&lt;/p&gt;
&lt;p&gt;How to apply the patch:&lt;br /&gt;
Make sure you're one directory below Togl-1.6.&lt;br /&gt;
patch -p0 &amp;lt;mac_os_x.patch&lt;/p&gt;
&lt;p&gt;Happy hacking,&lt;br /&gt;
Tom&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>-setgrid support</title><link href="https://sourceforge.net/p/togl/patches/4/" rel="alternate"/><published>2002-02-01T02:20:41Z</published><updated>2002-02-01T02:20:41Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3bdae87f5f0230f0ede92ecc2c0f50b553db7fa0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The enclosed patch added -setgrid support.  The&lt;br /&gt;
difference from the text widget's setgrid is that the&lt;br /&gt;
argument is number of pixels per-grid unit.  So&lt;br /&gt;
&amp;amp;quot;-setgrid 1&amp;amp;quot; would cause the window manager to report&lt;br /&gt;
the window size in pixels, &amp;amp;quot;-setgrid 10&amp;amp;quot; would cause&lt;br /&gt;
the window manager to report the window size in tens of&lt;br /&gt;
pixels.  This patch could be extended to use different&lt;br /&gt;
grid units in the x and y directions (which is implicit&lt;br /&gt;
with the character size in the text widget), but that&lt;br /&gt;
will be for someone else to do.  Note that some window&lt;br /&gt;
managers (dtwm) might report the wrong window size with&lt;br /&gt;
a grid unit of one pixel.&lt;/p&gt;
&lt;p&gt;This patch includes code that limits calls to&lt;br /&gt;
Tk_ResizeWindow to when the width or height (or grid&lt;br /&gt;
size) actual changes, which removes extras redraws that&lt;br /&gt;
used to occur when only the cursor changes.&lt;/p&gt;
&lt;p&gt;Greg Couch&lt;br /&gt;
UCSF Computer Graphics Lab&lt;br /&gt;
gregc@cgl.ucsf.edu&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>pixel format patch</title><link href="https://sourceforge.net/p/togl/patches/3/" rel="alternate"/><published>2002-02-01T01:52:15Z</published><updated>2002-02-01T01:52:15Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netd807ac60532ca65ea7e9162ec44c38e8170d0863</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;See previous patch description.  For some reason&lt;br /&gt;
sourceforge did not upload the patch, so I'm trying&lt;br /&gt;
again.&lt;/p&gt;
&lt;p&gt;Greg&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>arbitrary pixel format support</title><link href="https://sourceforge.net/p/togl/patches/2/" rel="alternate"/><published>2002-02-01T00:55:34Z</published><updated>2002-02-01T00:55:34Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net9e2eddced99e98493df3c0563ba32beb896792c2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The enclosed patch provides the ability to ask togl for&lt;br /&gt;
a particular pixel format (or visual in X-speak).  This&lt;br /&gt;
is so one can use other criteria for choosing pixel&lt;br /&gt;
formats, such as wglChoosePixelFormat and&lt;br /&gt;
glXChooseFBConfig.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Greg Couch&lt;br /&gt;
UCSF Computer Graphics Lab&lt;br /&gt;
gregc@cgl.ucsf.edu&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>togl.c PostScript Fix</title><link href="https://sourceforge.net/p/togl/patches/1/" rel="alternate"/><published>2002-02-01T00:48:45Z</published><updated>2002-02-01T00:48:45Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netbf603c90d80c8e18e5f1ee13a952beb61cf9da39</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The generateEPS function has illegal C code, i.e.,&lt;br /&gt;
multiple autoincrements without an intervening sequence&lt;br /&gt;
point.  The enclosed patch fixes the bug (and removes&lt;br /&gt;
the associated compiler warnings from good compilers).&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>