<?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[GLUT]]></title><description><![CDATA[<p>hallo , ich hoffe ich bin hier richtig. Ich habe begonnen mich in OpenGL einzuarbeiten, stosse allerdings direkt am Anfang auf heftigen wiederstand.</p>
<p>Ich hoffe hier ist jemand online der sich mit GLUT auskennt, und sich diesen Code mal anschauen kann:</p>
<p>#ifdef _WIN32<br />
#include &lt;windows.h&gt;<br />
//---------------------------------------------------------------------------<br />
#endif<br />
#include &lt;GL/gl.h&gt;<br />
#include &lt;GL/glut.h&gt;</p>
<p>#include &lt;vcl.h&gt;<br />
#include &lt;float.h&gt;</p>
<p>#pragma hdrstop<br />
USELIB(&quot;\Program2\Borland\Builder\CBuilder\LIB\Glut32.lib&quot;);</p>
<p>void init();<br />
void display();<br />
//---------------------------------------------------------------------------<br />
int main(int argc, char** argv)<br />
{<br />
_control87 (MCW_EM, MCW_EM);<br />
glutInit(&amp;argc, argv);<br />
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);<br />
glutCreateWindow (&quot;hello&quot;);<br />
glutInitWindowPosition (100, 100);<br />
glutInitWindowSize (250, 250);<br />
init ();<br />
glutDisplayFunc(display);<br />
glutMainLoop();<br />
return 0;<br />
}<br />
//----------------------------------------------------------------------<br />
void display ()<br />
{<br />
glClear (GL_COLOR_BUFFER_BIT);</p>
<p>glColor3f (1.0, 1.0, 1.0);<br />
glBegin(GL_POLYGON);<br />
glVertex3f (0.25, 0.25, 0.0);<br />
glVertex3f (0.75, 0.25, 0.0);<br />
glVertex3f (0.75, 0.75, 0.0);<br />
glVertex3f (0.25, 0.75, 0.0);<br />
glEnd();</p>
<p>glFlush();<br />
}<br />
//-------------------------------------------------------<br />
void init ()<br />
{<br />
glClearColor (0.0, 0.0, 0.0, 0.0);<br />
glMatrixMode (GL_PROJECTION);<br />
glLoadIdentity();<br />
glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);<br />
}</p>
<p>Dieser Code stammt aus einem Buch über OpenGL. Die Libs und Dll´s für Glut sind an den richtigen Plätzen.</p>
<p>Wenn ich das Programm ausführen möchte kommt die Fehler Meldung &quot;Im Projekt &quot;Projekct1.exe&quot; ist eine Exception der Klasse EAccesViolaton aufgetreten. Zugriffsverletzung bei Adresse ......&quot;</p>
<p>kann mir jemand sagen was da von mir gewollt wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/172788/glut</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 02:53:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/172788.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Feb 2007 13:30:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 13:30:33 GMT]]></title><description><![CDATA[<p>hallo , ich hoffe ich bin hier richtig. Ich habe begonnen mich in OpenGL einzuarbeiten, stosse allerdings direkt am Anfang auf heftigen wiederstand.</p>
<p>Ich hoffe hier ist jemand online der sich mit GLUT auskennt, und sich diesen Code mal anschauen kann:</p>
<p>#ifdef _WIN32<br />
#include &lt;windows.h&gt;<br />
//---------------------------------------------------------------------------<br />
#endif<br />
#include &lt;GL/gl.h&gt;<br />
#include &lt;GL/glut.h&gt;</p>
<p>#include &lt;vcl.h&gt;<br />
#include &lt;float.h&gt;</p>
<p>#pragma hdrstop<br />
USELIB(&quot;\Program2\Borland\Builder\CBuilder\LIB\Glut32.lib&quot;);</p>
<p>void init();<br />
void display();<br />
//---------------------------------------------------------------------------<br />
int main(int argc, char** argv)<br />
{<br />
_control87 (MCW_EM, MCW_EM);<br />
glutInit(&amp;argc, argv);<br />
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);<br />
glutCreateWindow (&quot;hello&quot;);<br />
glutInitWindowPosition (100, 100);<br />
glutInitWindowSize (250, 250);<br />
init ();<br />
glutDisplayFunc(display);<br />
glutMainLoop();<br />
return 0;<br />
}<br />
//----------------------------------------------------------------------<br />
void display ()<br />
{<br />
glClear (GL_COLOR_BUFFER_BIT);</p>
<p>glColor3f (1.0, 1.0, 1.0);<br />
glBegin(GL_POLYGON);<br />
glVertex3f (0.25, 0.25, 0.0);<br />
glVertex3f (0.75, 0.25, 0.0);<br />
glVertex3f (0.75, 0.75, 0.0);<br />
glVertex3f (0.25, 0.75, 0.0);<br />
glEnd();</p>
<p>glFlush();<br />
}<br />
//-------------------------------------------------------<br />
void init ()<br />
{<br />
glClearColor (0.0, 0.0, 0.0, 0.0);<br />
glMatrixMode (GL_PROJECTION);<br />
glLoadIdentity();<br />
glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);<br />
}</p>
<p>Dieser Code stammt aus einem Buch über OpenGL. Die Libs und Dll´s für Glut sind an den richtigen Plätzen.</p>
<p>Wenn ich das Programm ausführen möchte kommt die Fehler Meldung &quot;Im Projekt &quot;Projekct1.exe&quot; ist eine Exception der Klasse EAccesViolaton aufgetreten. Zugriffsverletzung bei Adresse ......&quot;</p>
<p>kann mir jemand sagen was da von mir gewollt wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225039</guid><dc:creator><![CDATA[myraezel]]></dc:creator><pubDate>Thu, 08 Feb 2007 13:30:33 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 13:40:28 GMT]]></title><description><![CDATA[<p>die klassische antwort wäre mit dem debugger ausführen, der zeigt dir dann wo</p>
<p>aber mehr kann ich dazu leider auch erstmal nicht sagen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225048</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225048</guid><dc:creator><![CDATA[Ceos]]></dc:creator><pubDate>Thu, 08 Feb 2007 13:40:28 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 13:47:26 GMT]]></title><description><![CDATA[<p>danke für die schnelle antwort.<br />
du sagst mit dem Debugger ausführen. An der Stelle sollte ich wohl gestehen das ich nur ganz grob weis was das sein soll, hast du grad die Zeit mir zu sagen was das im gröberen Detail heist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225053</guid><dc:creator><![CDATA[myraezel]]></dc:creator><pubDate>Thu, 08 Feb 2007 13:47:26 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 13:52:06 GMT]]></title><description><![CDATA[<p>Schau mal hier:<br />
<a href="http://www.junix.ch/bcb/help/debug.html" rel="nofollow">http://www.junix.ch/bcb/help/debug.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225059</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 08 Feb 2007 13:52:06 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 14:01:41 GMT]]></title><description><![CDATA[<p>hui das geht ja echt schnell hier, danke, werde mich mal hinein vertiefen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225065</guid><dc:creator><![CDATA[myraezel]]></dc:creator><pubDate>Thu, 08 Feb 2007 14:01:41 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 14:09:39 GMT]]></title><description><![CDATA[<p>damit du erstmal ganz schnell an deine problemzone heranfindest, geh in die projektoptionen und suche nach der einstellung für die &quot;Build-Konfiguration&quot; stell diese auf Debug-Build um und lass das ganze einmal mit F9 durchlaufen, in die feinheiten des Debugger kannste dich dann so einarbeiten mit dem Link da einarbeiten.</p>
<p>Borland sollte dich beim ausführen an irgendeiner stelle mit einer leicht veränderten variante der access voilation anhalten und dann nach einem kurzen druck auf &quot;anhalten&quot; stehtst du dann mit ner rot hinterlegten zeile genau da wo der fehler liegt (kann von borland zu borland unterchiedlich sein)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225069</guid><dc:creator><![CDATA[Ceos]]></dc:creator><pubDate>Thu, 08 Feb 2007 14:09:39 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 14:18:19 GMT]]></title><description><![CDATA[<p>hui das geht ja echt schnell hier, danke, werde mich mal hinein vertiefen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225074</guid><dc:creator><![CDATA[myraezel]]></dc:creator><pubDate>Thu, 08 Feb 2007 14:18:19 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 14:24:54 GMT]]></title><description><![CDATA[<p>also, neben der fehlermeldung die ich bereits erwähnte gibt es noch eine 2te, und zwa in der DOS-BOX die sich öffnet. Da steht: &quot;GLUT : Warning in &lt;unnamed&gt;: Invalid glutGet Parameter: 1245076.&quot;</p>
<p>Diese nachricht erscheint aber erst nach der Zeile:</p>
<p>glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);</p>
<p>in meinem Code.</p>
<p>das habe ich mit dem Debugger rausbekommen.</p>
<p>Ich kann damit leider nichts anfangen, aber vieleicht jemand von euch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225079</guid><dc:creator><![CDATA[myraezel]]></dc:creator><pubDate>Thu, 08 Feb 2007 14:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 15:07:49 GMT]]></title><description><![CDATA[<p>konntest du denn die quelle des ersten fehler ausfindig machen ?<br />
vielleicht ergibt sich dann das problem ?</p>
<p>EDIT achso korrigier mich wenn ich dich falsch verstanden habe, die exception kommt praktisch gleichzeitig mit der &quot;warning&quot;?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225109</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225109</guid><dc:creator><![CDATA[Ceos]]></dc:creator><pubDate>Thu, 08 Feb 2007 15:07:49 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 15:22:54 GMT]]></title><description><![CDATA[<p>erstmal zu GLUT, hab da nen hochinteressanten Link gefunden</p>
<p><a href="http://www.opengl.org/documentation/specs/glut/spec3/node9.html" rel="nofollow">http://www.opengl.org/documentation/specs/glut/spec3/node9.html</a></p>
<p><strong>EDIT<br />
<a href="http://www.opengl.org/documentation/specs/glut/spec3/node90.html#1724" rel="nofollow">http://www.opengl.org/documentation/specs/glut/spec3/node90.html#1724</a><br />
achte auf die letzten 3 punkte, vielleicht kann dir das weiterhelfen!!!</strong></p>
<p>(ich glaub das werd ich dierekt mal selber probiern, spiel schon lang mit dem gedanken)</p>
<p>ausserdem könntest du mal versuchen die windowsize VOR dem createwindow unterzubringen!!!</p>
<p>wie ich die seite so überflogen hab muss erst die size gesetzt werden dann ein wnidow createt, da sonst beim create ungültige werte übergeben werden könnten (values mustbe greater than zero).</p>
<pre><code class="language-cpp">glutCreateWindow (&quot;hello&quot;);
glutInitWindowPosition (100, 100);
glutInitWindowSize (250, 250);

// abändern zu

glutInitWindowPosition (100, 100);
glutInitWindowSize (250, 250);
glutCreateWindow (&quot;hello&quot;);
</code></pre>
<p>du solltest am besten mal alles was init-vorgänge angeht VOR das createwindo stellen, mir scheint fast das die werte erst alle initialisiert werden müssen bevor sie ein fenster erzeugen können</p>
<p>PS benutz am besten Google wenn du ein problem mit einem befehl findest und dir dein buch nicht weiterhilft, so bin ich zu dem link gekomm</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225113</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225113</guid><dc:creator><![CDATA[Ceos]]></dc:creator><pubDate>Thu, 08 Feb 2007 15:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 15:49:46 GMT]]></title><description><![CDATA[<p>danke cheos für die infos,</p>
<p>ich habe ausprobiert was du geraten hast, leider mit keiner Änderung im Resultat. Ich habe den Eindruck das der Fehler mit &quot;glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);&quot; zu tun hat. gibt es irgendwas was man über den befehl wissen sollte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225129</guid><dc:creator><![CDATA[myraezel]]></dc:creator><pubDate>Thu, 08 Feb 2007 15:49:46 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 16:37:04 GMT]]></title><description><![CDATA[<p>ich versuch mal hier auf mein lappi BCB zu packen, kannst du mir evtl. link zu den dateien geben von GLUT ?<br />
dann probier ich das dierekt auch mal ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225169</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225169</guid><dc:creator><![CDATA[Ceos]]></dc:creator><pubDate>Thu, 08 Feb 2007 16:37:04 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 08 Feb 2007 17:00:54 GMT]]></title><description><![CDATA[<p>die dateien und viele infos habe ich von hier:</p>
<p><a href="http://www.3dsource.de/deutsch/ogltipps.htm" rel="nofollow">http://www.3dsource.de/deutsch/ogltipps.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1225193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1225193</guid><dc:creator><![CDATA[myraezel]]></dc:creator><pubDate>Thu, 08 Feb 2007 17:00:54 GMT</pubDate></item><item><title><![CDATA[Reply to GLUT on Thu, 15 Mar 2007 13:52:08 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>gibt es für das beschriebene Problem (EAccesViolation) mittlerweile eine Lösung, ich habe nämlich das selbe Problem!!!</p>
<p>Vielen Dank<br />
Gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1246083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1246083</guid><dc:creator><![CDATA[anfänger2213]]></dc:creator><pubDate>Thu, 15 Mar 2007 13:52:08 GMT</pubDate></item></channel></rss>