{"id":269,"date":"2022-08-30T14:58:32","date_gmt":"2022-08-30T14:58:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/08\/31\/problem-about-glu-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:58:32","modified_gmt":"2022-08-30T14:58:32","slug":"problem-about-glu-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-glu-record-and-share-programming-errors\/","title":{"rendered":"problem about glu-Record and share programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a6f1c039f1e0f924abdab5040e15c3cc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMrDoctorProfessorTyler<br \/>\nc++ opengl perspective freeglut glu<br \/>\nI am using FreeGLUT to try and create my first cube in C++ with OpenGL. I have an issue that whenever I call &#8220;gluPerspective&#8221;, the compiler throws this error:build\/Debug\/MinGW-Windows\/main.o: In<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6fc3fb834d56005710728842cabef5b3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nG-71<br \/>\nc++ opengl glut glu<br \/>\nI try to compile some &#8220;hello world&#8221; glut application:#include #include #include #include GLint Width = 512, Height = 512;const int CubeSize = 200;void Display(void) {int left, right, top, bottom;left = (Width &#8211; CubeSize) \/ 2;right = left + CubeSize;bottom = (Height &#8211; CubeSize) \/ 2;top = bottom + CubeSize;glClearColor(0, 0, 0, 1);glClear(GL_COLOR_BUFFER_BIT);glColor3ub(255,0,0);glBegin(GL_QUADS);glVertex2f(left,bottom);glVertex2f(left,top);glVertex2f(right,top);glVertex2f(right,bottom);glEnd();glFinish(); }void Reshape(GLint w, GLint h) {Width = w;Height = h;glViewport(0, 0, w, h);glMatrixMode(GL_PROJECTION);glLoadIdentity();glOrtho(0, w, 0, h, -1.0, 1.0);glMatrixMode(GL_MODELVIEW);glLoadIdentity(); }void Keyboard(unsigned char key, int x, int y) { #define ESCAPE &#8216;\\033&#8217;i<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-08-31 07:48:57. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>MrDoctorProfessorTyler c++ opengl perspective freeglut glu I am using FreeGLUT to try and create my first cube in C++ with OpenGL. I have an issue that whenever I call &#8220;gluPerspective&#8221;, the compiler throws this error:build\/Debug\/MinGW-Windows\/main.o: In G-71 c++ opengl glut glu I try to compile some &#8220;hello world&#8221; glut application:#include #include #include #include GLint Width [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}