<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
		<id>https://wiki.delphigl.com/index.php?action=history&amp;feed=atom&amp;title=Zylinder</id>
		<title>Zylinder - Versionsgeschichte</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.delphigl.com/index.php?action=history&amp;feed=atom&amp;title=Zylinder"/>
		<link rel="alternate" type="text/html" href="https://wiki.delphigl.com/index.php?title=Zylinder&amp;action=history"/>
		<updated>2026-04-20T19:35:30Z</updated>
		<subtitle>Versionsgeschichte dieser Seite in DGL Wiki</subtitle>
		<generator>MediaWiki 1.27.4</generator>

	<entry>
		<id>https://wiki.delphigl.com/index.php?title=Zylinder&amp;diff=25615&amp;oldid=prev</id>
		<title>Openglerf: Vorraus -&gt; Voraus</title>
		<link rel="alternate" type="text/html" href="https://wiki.delphigl.com/index.php?title=Zylinder&amp;diff=25615&amp;oldid=prev"/>
				<updated>2012-03-21T14:29:23Z</updated>
		
		<summary type="html">&lt;p&gt;Vorraus -&amp;gt; Voraus&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='de'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version vom 21. März 2012, 14:29 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot; &gt;Zeile 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; glEnable(GL_NORMALIZE);&amp;#160; //Aktiviere GL_NORMALIZE damit die Normalen nach dem glScale auch die richtige Länge haben&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; glEnable(GL_NORMALIZE);&amp;#160; //Aktiviere GL_NORMALIZE damit die Normalen nach dem glScale auch die richtige Länge haben&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; //Berechne die Sinus- und Cosinus-werte einmalig im &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Vorraus&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; //Berechne die Sinus- und Cosinus-werte einmalig im &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Voraus&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; SetLength(SinCosData, (n+1)*2);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; SetLength(SinCosData, (n+1)*2);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; for i := 0 to n do&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; for i := 0 to n do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Openglerf</name></author>	</entry>

	<entry>
		<id>https://wiki.delphigl.com/index.php?title=Zylinder&amp;diff=24903&amp;oldid=prev</id>
		<title>Flash: /* Parameter */</title>
		<link rel="alternate" type="text/html" href="https://wiki.delphigl.com/index.php?title=Zylinder&amp;diff=24903&amp;oldid=prev"/>
				<updated>2010-07-31T19:36:27Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Parameter&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='de'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version vom 31. Juli 2010, 19:36 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot; &gt;Zeile 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Parameter==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Parameter==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Der einzige Parameter '''n''' der Prozedur &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;besimmt &lt;/del&gt;die Anzahl der Unterteilungen des Zylinders.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Der einzige Parameter '''n''' der Prozedur &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bestimmt &lt;/ins&gt;die Anzahl der Unterteilungen des Zylinders.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die Größe des Objektes wird durch ein vorangehendes [[glScalef]] festgelegt, welches als Parameter jeweils die Radien des Objektes in den verschiedenen Koordinatenachsen enthält.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die Größe des Objektes wird durch ein vorangehendes [[glScalef]] festgelegt, welches als Parameter jeweils die Radien des Objektes in den verschiedenen Koordinatenachsen enthält.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Flash</name></author>	</entry>

	<entry>
		<id>https://wiki.delphigl.com/index.php?title=Zylinder&amp;diff=24902&amp;oldid=prev</id>
		<title>Flash: /* Allgemein */</title>
		<link rel="alternate" type="text/html" href="https://wiki.delphigl.com/index.php?title=Zylinder&amp;diff=24902&amp;oldid=prev"/>
				<updated>2010-07-31T19:35:41Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Allgemein&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='de'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version vom 31. Juli 2010, 19:35 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Allgemein==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Allgemein==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Der folgende Code zeichnet einen Zylinder in &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;einen &lt;/del&gt;Würfel der Kantenlänge 2.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Der folgende Code zeichnet einen Zylinder in &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;einem &lt;/ins&gt;Würfel der Kantenlänge 2.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dadurch lassen sich beim Zeichnen die Positionskoordinaten auch direkt für die Normalen des Zylinders nutzen.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dadurch lassen sich beim Zeichnen die Positionskoordinaten auch direkt für die Normalen des Zylinders nutzen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Der Körper des Zylinders sowie die Endkappen werden mit der aktuell gebundene Textur gezeichnet. Will man jede der Flächen mit einer anderen Textur versehen, so muss diese zwischen den einzelnen Abschnitten gewechselt werden.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Der Körper des Zylinders sowie die Endkappen werden mit der aktuell gebundene Textur gezeichnet. Will man jede der Flächen mit einer anderen Textur versehen, so muss diese zwischen den einzelnen Abschnitten gewechselt werden.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Flash</name></author>	</entry>

	<entry>
		<id>https://wiki.delphigl.com/index.php?title=Zylinder&amp;diff=24901&amp;oldid=prev</id>
		<title>Olee: Die Seite wurde neu angelegt: „==Allgemein== Der folgende Code zeichnet einen Zylinder in einen Würfel der Kantenlänge 2. Dadurch lassen sich beim Zeichnen die Positionskoordinaten auch direk…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.delphigl.com/index.php?title=Zylinder&amp;diff=24901&amp;oldid=prev"/>
				<updated>2010-07-31T17:20:07Z</updated>
		
		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „==Allgemein== Der folgende Code zeichnet einen Zylinder in einen Würfel der Kantenlänge 2. Dadurch lassen sich beim Zeichnen die Positionskoordinaten auch direk…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Allgemein==&lt;br /&gt;
Der folgende Code zeichnet einen Zylinder in einen Würfel der Kantenlänge 2.&lt;br /&gt;
Dadurch lassen sich beim Zeichnen die Positionskoordinaten auch direkt für die Normalen des Zylinders nutzen.&lt;br /&gt;
Der Körper des Zylinders sowie die Endkappen werden mit der aktuell gebundene Textur gezeichnet. Will man jede der Flächen mit einer anderen Textur versehen, so muss diese zwischen den einzelnen Abschnitten gewechselt werden.&lt;br /&gt;
&lt;br /&gt;
==Verwendete Typen==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
Type&lt;br /&gt;
  TVector3f = Record&lt;br /&gt;
    x, y, z  : Single;&lt;br /&gt;
  End;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Parameter==&lt;br /&gt;
Der einzige Parameter '''n''' der Prozedur besimmt die Anzahl der Unterteilungen des Zylinders.&lt;br /&gt;
Die Größe des Objektes wird durch ein vorangehendes [[glScalef]] festgelegt, welches als Parameter jeweils die Radien des Objektes in den verschiedenen Koordinatenachsen enthält.&lt;br /&gt;
&lt;br /&gt;
==Procedure==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
Procedure DrawCylinder(n : Byte);&lt;br /&gt;
Const&lt;br /&gt;
  Two_PI  = PI * 2;&lt;br /&gt;
  Half_PI = PI / 2;&lt;br /&gt;
Var&lt;br /&gt;
  i          : Integer;&lt;br /&gt;
  vect       : TVector3f;&lt;br /&gt;
  SinCosData : Array of Extended;&lt;br /&gt;
Begin&lt;br /&gt;
  If n &amp;lt; 4 then exit;&lt;br /&gt;
  If n = 4 then DrawCube;  //Ein Zylinder mit 4 Seiten ist ein Würfel - falls es jemanden interessiert *gg*&lt;br /&gt;
&lt;br /&gt;
  glEnable(GL_NORMALIZE);  //Aktiviere GL_NORMALIZE damit die Normalen nach dem glScale auch die richtige Länge haben&lt;br /&gt;
&lt;br /&gt;
  //Berechne die Sinus- und Cosinus-werte einmalig im Vorraus&lt;br /&gt;
  SetLength(SinCosData, (n+1)*2);&lt;br /&gt;
  for i := 0 to n do&lt;br /&gt;
    SinCos(i/n * Two_PI, SinCosData[i*2], SinCosData[i*2+1]);&lt;br /&gt;
&lt;br /&gt;
  glBegin(GL_QUAD_STRIP);&lt;br /&gt;
  for i := 0 to n do&lt;br /&gt;
  begin&lt;br /&gt;
    vect.x := SinCosData[i*2];&lt;br /&gt;
    vect.z := SinCosData[i*2+1];&lt;br /&gt;
    vect.y := 1;&lt;br /&gt;
&lt;br /&gt;
    glTexCoord2f(i/n, 0);&lt;br /&gt;
    glNormal3f(vect.x, 0, vect.z);&lt;br /&gt;
    glVertex3fv(@vect);&lt;br /&gt;
&lt;br /&gt;
    vect.y := -1;&lt;br /&gt;
&lt;br /&gt;
    glTexCoord2f(i/n, 1);&lt;br /&gt;
    glNormal3f(vect.x, 0, vect.z);&lt;br /&gt;
    glVertex3fv(@vect);&lt;br /&gt;
  end;&lt;br /&gt;
  glEnd;&lt;br /&gt;
&lt;br /&gt;
  //Zeichnen der oberen Endkappe&lt;br /&gt;
  glBegin(GL_TRIANGLE_FAN);&lt;br /&gt;
  vect.y := 1;&lt;br /&gt;
  glNormal3f(0, 1, 0);&lt;br /&gt;
  glTexCoord2f(0.5, 0.5);&lt;br /&gt;
  glVertex3f(0, 1, 0);&lt;br /&gt;
  for i := 0 to n do&lt;br /&gt;
  begin&lt;br /&gt;
    vect.x := SinCosData[i*2];&lt;br /&gt;
    vect.z := SinCosData[i*2+1];&lt;br /&gt;
    glTexCoord2f(vect.x*0.5 + 0.5, vect.z*0.5 + 0.5);&lt;br /&gt;
    glVertex3fv(@vect);&lt;br /&gt;
  end;&lt;br /&gt;
  glEnd;&lt;br /&gt;
&lt;br /&gt;
  //Zeichnen der unteren Endkappe&lt;br /&gt;
  glBegin(GL_TRIANGLE_FAN);&lt;br /&gt;
  vect.y := -1;&lt;br /&gt;
  glNormal3f(0, -1, 0);&lt;br /&gt;
  glTexCoord2f(0.5, 0.5);&lt;br /&gt;
  glVertex3f(0, -1, 0);&lt;br /&gt;
  for i := n downto 0 do&lt;br /&gt;
  begin&lt;br /&gt;
    vect.x := SinCosData[i*2];&lt;br /&gt;
    vect.z := SinCosData[i*2+1];&lt;br /&gt;
    glTexCoord2f(0.5 - vect.x*0.5, vect.z*0.5 + 0.5);&lt;br /&gt;
    glVertex3fv(@vect);&lt;br /&gt;
  end;&lt;br /&gt;
  glEnd;&lt;br /&gt;
&lt;br /&gt;
  glDisable(GL_NORMALIZE);&lt;br /&gt;
End;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Beispiel Aufruf==&lt;br /&gt;
Einen Zylinder mit der Höhe 3 und dem Radius 4 zeichnet man mit der Prozedur wie folgt:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
glPushMatrix;             //Sichere die Matrix&lt;br /&gt;
glTranslatef(0, 1.5, 0);  //Verschiebe den Mittelpunkt des Zylinders an die Position (0 | 1.5 | 0)&lt;br /&gt;
glScalef(4, 3 / 2, 4);    //Die Höhe wird halbiert, da bei glScale die radien des Objektes stehen sollen&lt;br /&gt;
DrawCylinder(16);         //Zeichne den Zylinder mit 16 Unterteilungen&lt;br /&gt;
glPopMatrix;              //Setzte die Matrix auf den Ausgangszustand zurück&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Technik_oder_Algorithmus]] [[Kategorie:Anleitung]]&lt;/div&gt;</summary>
		<author><name>Olee</name></author>	</entry>

	</feed>