<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Frage zu drei Punkten:]]></title><description><![CDATA[<p>Was bedeuten die 3 Punkte in der Methodendeklaration?</p>
<pre><code class="language-cpp">GLvoid glPrint(const char *fmt, ...)					// Was bedeuten die 3 Punkte hier?
	{

		float		length=0;								// Used To Find The Length Of The Text
		char		text[256];								// Holds Our String
		va_list		ap;										// Pointer To List Of Arguments

		if (fmt == NULL)									// If There's No Text
			return;											// Do Nothing

		va_start(ap, fmt);									// Parses The String For Variables
		vsprintf_s(text, fmt, ap);						// And Converts Symbols To Actual Numbers
		va_end(ap);											// Results Are Stored In Text

		for (unsigned int loop=0;loop&lt;(strlen(text));loop++)	// Loop To Find Text Length
		{
			length+=gmf[text[loop&rsqb;&rsqb;.gmfCellIncX;			// Increase Length By Each Characters Width
		}

		glTranslatef(-length/2,0.0f,0.0f);					// Center Our Text On The Screen

		glPushAttrib(GL_LIST_BIT);							// Pushes The Display List Bits
		glListBase(base);									// Sets The Base Character to 0
		glCallLists((GLsizei)strlen(text), GL_UNSIGNED_BYTE, text);	// Draws The Display List Text
		glPopAttrib();										// Pops The Display List Bits
	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/213119/frage-zu-drei-punkten</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 17:05:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/213119.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 May 2008 12:18:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu drei Punkten: on Wed, 14 May 2008 12:18:30 GMT]]></title><description><![CDATA[<p>Was bedeuten die 3 Punkte in der Methodendeklaration?</p>
<pre><code class="language-cpp">GLvoid glPrint(const char *fmt, ...)					// Was bedeuten die 3 Punkte hier?
	{

		float		length=0;								// Used To Find The Length Of The Text
		char		text[256];								// Holds Our String
		va_list		ap;										// Pointer To List Of Arguments

		if (fmt == NULL)									// If There's No Text
			return;											// Do Nothing

		va_start(ap, fmt);									// Parses The String For Variables
		vsprintf_s(text, fmt, ap);						// And Converts Symbols To Actual Numbers
		va_end(ap);											// Results Are Stored In Text

		for (unsigned int loop=0;loop&lt;(strlen(text));loop++)	// Loop To Find Text Length
		{
			length+=gmf[text[loop&rsqb;&rsqb;.gmfCellIncX;			// Increase Length By Each Characters Width
		}

		glTranslatef(-length/2,0.0f,0.0f);					// Center Our Text On The Screen

		glPushAttrib(GL_LIST_BIT);							// Pushes The Display List Bits
		glListBase(base);									// Sets The Base Character to 0
		glCallLists((GLsizei)strlen(text), GL_UNSIGNED_BYTE, text);	// Draws The Display List Text
		glPopAttrib();										// Pops The Display List Bits
	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1508812</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1508812</guid><dc:creator><![CDATA[MisterX]]></dc:creator><pubDate>Wed, 14 May 2008 12:18:30 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu drei Punkten: on Wed, 14 May 2008 12:23:34 GMT]]></title><description><![CDATA[<p>Bei diesen 3 Punkten handelt es sich um eine variable Argumentenliste, kennst du vielleicht aus Funktionen ala wsprintf wo man noch weitere Variablen übergeben kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1508815</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1508815</guid><dc:creator><![CDATA[0xDEADBEEF]]></dc:creator><pubDate>Wed, 14 May 2008 12:23:34 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu drei Punkten: on Wed, 14 May 2008 12:48:33 GMT]]></title><description><![CDATA[<p>Und wie wird dann auf die Liste zugegriffen und was passiert in dieser Methode konkret mit diesen Angaben der Argumentenliste?<br />
(so ganz verstehe ich die Methode nicht)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1508838</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1508838</guid><dc:creator><![CDATA[MisterX]]></dc:creator><pubDate>Wed, 14 May 2008 12:48:33 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu drei Punkten: on Wed, 14 May 2008 13:06:43 GMT]]></title><description><![CDATA[<p>MisterX schrieb:</p>
<blockquote>
<p>Und wie wird dann auf die Liste zugegriffen und was passiert in dieser Methode konkret mit diesen Angaben der Argumentenliste?<br />
(so ganz verstehe ich die Methode nicht)</p>
</blockquote>
<p>Du kannst Englisch nehm ich mal an, nicht wahr?</p>
<p>Falls nicht, hier ein kleiner Hinweis:</p>
<pre><code class="language-cpp">va_list        ap;                                        // Pointer To List Of Arguments
</code></pre>
<p>Edit:<em>Ahja und mal ganz ehrlich, die Kommentare sind doch schon mehr als genug Hilfe...</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1508852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1508852</guid><dc:creator><![CDATA[markusrw]]></dc:creator><pubDate>Wed, 14 May 2008 13:06:43 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu drei Punkten: on Wed, 14 May 2008 15:06:48 GMT]]></title><description><![CDATA[<p>BTW: dieses &quot;...&quot; wird in C++ als &quot;ellipsis&quot; bezeichnet. Habe allerdings noch nicht rausbekommen wieso <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1508956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1508956</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Wed, 14 May 2008 15:06:48 GMT</pubDate></item></channel></rss>