<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: NeHe Tutorial 02: Drawing Triangles and Quadrilaterals</title>
	<atom:link href="http://nklein.com/2010/06/nehe-tutorial-02-drawing-triangles-and-quadrilaterals/feed/" rel="self" type="application/rss+xml" />
	<link>http://nklein.com/2010/06/nehe-tutorial-02-drawing-triangles-and-quadrilaterals/</link>
	<description>software development and consulting</description>
	<lastBuildDate>Sun, 20 May 2012 18:07:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: pat</title>
		<link>http://nklein.com/2010/06/nehe-tutorial-02-drawing-triangles-and-quadrilaterals/comment-page-1/#comment-2940</link>
		<dc:creator>pat</dc:creator>
		<pubDate>Sun, 20 May 2012 18:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://nklein.com/?p=1419#comment-2940</guid>
		<description>The method declaration in my file is:
[cc lang=&quot;lisp&quot;]
(defmethod glut:keyboard ((win my-window) key xx yy) ...)
[/cc]

The [cci lang=&quot;lisp&quot;](win my-window)[/cci] means that this method parameter is going to be called [cci lang=&quot;lisp&quot;]win[/cci] and this is the version of the method for when this parameter is of type [cci lang=&quot;lisp&quot;]my-window[/cci].  In the bit you pasted, you renamed [cci lang=&quot;lisp&quot;]win[/cci] to [cci lang=&quot;lisp&quot;]window[/cci] in the declaration.</description>
		<content:encoded><![CDATA[<p>The method declaration in my file is:</p>
<div class="codecolorer-container lisp blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="lisp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&#40;</span>defmethod glut<span style="color: #66cc66;">:</span><span style="color: #555;">keyboard</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>win my-window<span style="color: #66cc66;">&#41;</span> key xx yy<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">...</span><span style="color: #66cc66;">&#41;</span></pre></div>
<p>The <code class="codecolorer lisp default"><span class="lisp"><span style="color: #66cc66;">&#40;</span>win my-window<span style="color: #66cc66;">&#41;</span></span></code> means that this method parameter is going to be called <code class="codecolorer lisp default"><span class="lisp">win</span></code> and this is the version of the method for when this parameter is of type <code class="codecolorer lisp default"><span class="lisp">my-window</span></code>.  In the bit you pasted, you renamed <code class="codecolorer lisp default"><span class="lisp">win</span></code> to <code class="codecolorer lisp default"><span class="lisp">window</span></code> in the declaration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor Blinov</title>
		<link>http://nklein.com/2010/06/nehe-tutorial-02-drawing-triangles-and-quadrilaterals/comment-page-1/#comment-2938</link>
		<dc:creator>Igor Blinov</dc:creator>
		<pubDate>Sun, 20 May 2012 15:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://nklein.com/?p=1419#comment-2938</guid>
		<description>I have a question about this tutorial. In your source you have a function &quot;keyboard&quot;. Here is it:
&lt;code&gt;
(defmethod glut:keyboard ((window my-window) key xx yy)
  (declare (ignore xx yy))
  (case key
    ((#\q #\Q #\Escape) (glut:destroy-current-window))
    ((#\f #\F)                      ; when we get an &#039;f&#039;
                                    ; save whether we&#039;re in fullscreen
         (let ((full (fullscreen-p win)))
           (glut:close win)         ; close the current window
           (glut:display-window     ; open a new window with fullscreen toggled
               (make-instance &#039;my-window
                              :fullscreen (not full)))))
  ))
&lt;/code&gt; 
But when I launch it, I had an error, that &quot;win&quot; is unbound. How can I fix it?
(Yeah, I can change (glut:close win) to (glut:destroy-current-window))</description>
		<content:encoded><![CDATA[<p>I have a question about this tutorial. In your source you have a function &#8220;keyboard&#8221;. Here is it:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">(defmethod glut:keyboard ((window my-window) key xx yy)
  (declare (ignore xx yy))
  (case key
    ((#\q #\Q #\Escape) (glut:destroy-current-window))
    ((#\f #\F)                      ; when we get an 'f'
                                    ; save whether we're in fullscreen
         (let ((full (fullscreen-p win)))
           (glut:close win)         ; close the current window
           (glut:display-window     ; open a new window with fullscreen toggled
               (make-instance 'my-window
                              :fullscreen (not full)))))
  ))</pre></div>
<p>But when I launch it, I had an error, that &#8220;win&#8221; is unbound. How can I fix it?<br />
(Yeah, I can change (glut:close win) to (glut:destroy-current-window))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NeHe Tutorial 03: Color :: nklein software</title>
		<link>http://nklein.com/2010/06/nehe-tutorial-02-drawing-triangles-and-quadrilaterals/comment-page-1/#comment-1182</link>
		<dc:creator>NeHe Tutorial 03: Color :: nklein software</dc:creator>
		<pubDate>Thu, 03 Jun 2010 03:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://nklein.com/?p=1419#comment-1182</guid>
		<description>[...] the previous tutorial, we drew a plain triangle and quadrilateral on the screen. The next NeHe tutorial colors this [...]</description>
		<content:encoded><![CDATA[<p>[...] the previous tutorial, we drew a plain triangle and quadrilateral on the screen. The next NeHe tutorial colors this [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

