{"id":15413,"date":"2015-06-15T05:01:33","date_gmt":"2015-06-14T19:01:33","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=15413"},"modified":"2015-06-14T10:43:52","modified_gmt":"2015-06-14T00:43:52","slug":"c-opengl-in-xcode-follow-up-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/c-opengl-in-xcode-follow-up-tutorial\/","title":{"rendered":"C++ OpenGL in Xcode Follow Up Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank  href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/OpenGL-70of.jpg\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"C++ OpenGL in Xcode Follow Up Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/OpenGL-70of.jpg\" title=\"C++ OpenGL in Xcode Follow Up Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">C++ OpenGL in Xcode Follow Up Tutorial<\/p><\/div>\n<p><a target=_blank title='OpenGL information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/OpenGL'>OpenGL<\/a> has a <a target=_blank title='OpenGL landing page' href='http:\/\/OpenGL.org'>OpenGL.org<\/a> landing page which will talk about all the platforms supported, and let&#8217;s just remind you about the purpose, with a quote from the webpage &#8230;<\/p>\n<blockquote><p>\nThe Industry&#8217;s Foundation for High Performance Graphics<br \/>\nfrom games to virtual reality, mobile phones to supercomputers\n<\/p><\/blockquote>\n<p> &#8230; in other words, it is a <font size=7 color='red'>big<\/font> topic area, and we are chipping away at it.<\/p>\n<p>Yesterday, we concentrated on the install, and if you are new to something, this is often exhausting enough in itself.  Today we creep up on some of the concepts to representing a 3D object in a graphical way.  Some of the concepts we see are &#8230;<\/p>\n<ul>\n<li>object vertices definition<\/li>\n<li>object colour<\/li>\n<li>lighting &#8230; direction, type, angle, numbers of sources etcetera<\/li>\n<li>perspective &#8230; field of view, aspect ratio, Z position<\/li>\n<\/ul>\n<p> &#8230; with the help of the OpenSource brilliance of the following links &#8230;<\/p>\n<ul>\n<li><a target=_blank title='OpenGL real example coding ideas' href='https:\/\/www.opengl.org\/archives\/resources\/code\/samples\/glut_examples\/examples\/examples.html'>The link<\/a> has great software ideas for the code today &#8230; thanks &#8230; and thanks for the links below &#8230;<\/li>\n<li>Another <a target=_blank title='Another useful OpenGL link' href='https:\/\/www.cse.msu.edu\/~cse872\/tutorial3.html'>useful link<\/a><\/li>\n<\/ul>\n<p>Think, if you are following along with us here, the next best advice we have is to examine the code of the experts amalgamated into our C++ programming source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/main.cpp-GETME\" title=\"main.cpp\">main.cpp<\/a> of today.<\/p>\n<p>The C++ code above changed from yesterday as per <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/main.cpp-GETME\" title=\"main.cpp\">main.cpp<\/a> of today.<\/p>\n<p>Please take a careful look and <a target=_blank  href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/OpenGL-70of.jpg\" title='Click picture'>learn<\/a>.  It&#8217;s all pretty amazing to me, as it has been for a very very very long time now.<\/p>\n<hr>\n<p id='coixpt'>Previous relevant <a target=_blank title='' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/c-opengl-in-xcode-primer-tutorial\/'>C++ OpenGL in Xcode Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank    href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"C++ OpenGL in Xcode Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/OpenGL-63of.jpg\" title=\"C++ OpenGL in Xcode Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">C++ OpenGL in Xcode Primer Tutorial<\/p><\/div>\n<p><a target=_blank title='OpenGL information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/OpenGL'>OpenGL<\/a> is, to quote from the <a target=_blank title='OpenGL landing page' href='http:\/\/OpenGL.org'>OpenGL.org<\/a> landing page &#8230;<\/p>\n<blockquote><p>\nThe Industry&#8217;s Foundation for High Performance Graphics<br \/>\nfrom games to virtual reality, mobile phones to supercomputers\n<\/p><\/blockquote>\n<p> &#8230; a big player for game developers for desktop, web, and mobile platforms.  Today (and please note we have this blog posting in a WordPress 4.1.1 website at <a target=_blank title='C++ OpenGL in Xcode Primer Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/c-opengl-in-xcode-primer-tutorial\/'>C++ OpenGL in Xcode Primer Tutorial<\/a>) we are trying an install in a Mac OS X (Yosemite 10.10) environment using &#8230;<\/p>\n<ul>\n<li><a target=_blank title='MacPorts' href='https:\/\/www.macports.org\/install.php'>MacPorts<\/a> &#8230; to install &#8230;<\/li>\n<li>glew<\/li>\n<li>glut and freeglut<\/li>\n<\/ul>\n<p> &#8230; and the OpenSource brilliance of the following links &#8230;<\/p>\n<ul>\n<li><a target=_blank title='OpenGL coding ideas' href='http:\/\/duriansoftware.com\/joe\/An-intro-to-modern-OpenGL.-Chapter-2:-Hello-World:-The-Slideshow.html'>The link<\/a> has great software ideas for the code today &#8230; thanks &#8230; and thanks for the links below &#8230;<\/li>\n<li><a target=_blank title='glew' href='http:\/\/glew.sourceforge.net\/'>This link<\/a> has good information regarding The OpenGL Extension Wrangler Library<\/li>\n<li><a target=_blank title='Useful link regarding compilation of OpenGL application' href='http:\/\/lazyfoo.net\/tutorials\/OpenGL\/01_hello_opengl\/mac\/xcode\/index.php'>Useful link<\/a> talks about measures in Xcode to take to facilitate the compilation of the OpenGL application<\/li>\n<\/ul>\n<p> &#8230; to create a Mac OS X Xcode C++ project to create our Hello World scenarios for today&#8217;s tutorial.<\/p>\n<p>As you can see, there is so much more to learn with this subject area, and eventually feel that it will lead to some <a target=_blank title='WerbGL' href='https:\/\/www.safaribooksonline.com\/library\/view\/webgl-up-and\/9781449326487\/ch01.html'>WebGL<\/a> work down the track for some 3D rendering on the HTML canvas element.<\/p>\n<p>If you enjoy such environments you may be very interested in researching <a target=_blank title='Tcl information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Tcl'>Tcl\/Tk<\/a> in this subject area as well.<\/p>\n<p>Here is the C++ programming source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/main.cpp_GETME\" title=\"main.cpp\">main.cpp<\/a><\/p>\n<p>Onwards and upwards!  Hope you enjoy today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/OpenGL\/\" title='Click picture'>tutorial<\/a>, which included a Mac Update of the Xcode Command Line tools, along the way.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d15398' onclick='var dv=document.getElementById(\"d15398\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/?tag=graphics\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d15398' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d15413' onclick='var dv=document.getElementById(\"d15413\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/?tag=xcode\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d15413' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenGL has a OpenGL.org landing page which will talk about all the platforms supported, and let&#8217;s just remind you about the purpose, with a quote from the webpage &#8230; The Industry&#8217;s Foundation for High Performance Graphics from games to virtual &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/c-opengl-in-xcode-follow-up-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,15,17,29,37,40],"tags":[176,477,1587,502,541,1588,707,723,725,880,1589,997,1246,1319,1590,1473],"class_list":["post-15413","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-gui","category-operating-system","category-tutorials","category-xcode","tag-c","tag-games-2","tag-glew","tag-glut","tag-graphics","tag-lighting","tag-linux","tag-mac","tag-mac-os-x","tag-opengl","tag-perspective","tag-programming","tag-tcltk","tag-tutorial","tag-vertices","tag-xcode"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15413"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=15413"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15413\/revisions"}],"predecessor-version":[{"id":15416,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/15413\/revisions\/15416"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=15413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=15413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=15413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}