C++ OpenGL in Xcode Hexagonal Prism Tutorial

C++ OpenGL in Xcode Hexagonal Prism Tutorial

C++ OpenGL in Xcode Hexagonal Prism Tutorial

People think differently.

People have reverence for different things.

Some people do not like generalizations (“bye for now”).

We like …

  • associations
  • linkages
  • patterns
  • creeping up on knowledge, especially if the subject matter is difficult

… and so we proceed, on our quest, learning OpenGL … yesterday we drew a cube … yay!! … today a hexagonal prism … yayyyyyy!! … except those of you disappointed … why no genericity yet?! … and we say …

We’re “creeping up on knowledge” … sssshhhhhh

… and we’re aiming for some generic principles we can use with WebGL by looking at associations, linkages and patterns that we see (or get help from the web, seeing).

So the great place that helped today was from Indiana State University Maths and Computing Department … thanks for being so public with your brilliance.

This all being said, a large part of what this blog’s philosophy, concerning “learning”, involves revolves around (we hope) …

  • self reliance (in an OpenSource world)
  • being curious (about all publicly available software solutions)
  • knowing how to look for information
  • knowing where to look for information (we try to help, but this touches on “artistry”)

… and knowing when something requires deep understanding, you know when to say … “I need to enroll in a course to get full understanding here” … else … we say there are a lot of things you can teach yourself.

So the crux of the matter is, if you are on the same OpenGL quest as we are at the moment, go zooming ahead with your understanding should going from a “cube” to a “hexagonal prism” (with your OpenGL ideas today) give you enough clues, or take a look at the information we intend to peruse next, or enroll in a course, or look up more yourself with all those great “search” resources (eg. search engines) that exist on the World Wide Web.

Have a look at the C++ programming source code you could call main.cpp of today.

The C++ code above changed from yesterday as per main.cpp of today.

Another “take home” from today’s tutorial may be that an IDE-style run of the C++ today in Xcode can still make use of command line arguments as per the image below, snapshotted after Product->Scheme->Edit Scheme…

Word of the day

Apothem


C++ OpenGL in Xcode Follow Up Tutorial

C++ OpenGL in Xcode Follow Up Tutorial

OpenGL has a OpenGL.org landing page which will talk about all the platforms supported, and let’s just remind you about the purpose, with a quote from the webpage …

The Industry’s Foundation for High Performance Graphics
from games to virtual reality, mobile phones to supercomputers

… in other words, it is a big topic area, and we are chipping away at it.

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 …

  • object vertices definition
  • object colour
  • lighting … direction, type, angle, numbers of sources etcetera
  • perspective … field of view, aspect ratio, Z position

… with the help of the OpenSource brilliance of the following links …

  • The link has great software ideas for the code today … thanks … and thanks for the links below …
  • Another useful link

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 main.cpp of today.

The C++ code above changed from yesterday as per main.cpp of today.

Please take a careful look and learn. It’s all pretty amazing to me, as it has been for a very very very long time now.


Previous relevant C++ OpenGL in Xcode Primer Tutorial is shown below.

C++ OpenGL in Xcode Primer Tutorial

C++ OpenGL in Xcode Primer Tutorial

OpenGL is, to quote from the OpenGL.org landing page …

The Industry’s Foundation for High Performance Graphics
from games to virtual reality, mobile phones to supercomputers

… 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 C++ OpenGL in Xcode Primer Tutorial) we are trying an install in a Mac OS X (Yosemite 10.10) environment using …

  • MacPorts … to install …
  • glew
  • glut and freeglut

… and the OpenSource brilliance of the following links …

  • The link has great software ideas for the code today … thanks … and thanks for the links below …
  • This link has good information regarding The OpenGL Extension Wrangler Library
  • Useful link talks about measures in Xcode to take to facilitate the compilation of the OpenGL application

… to create a Mac OS X Xcode C++ project to create our Hello World scenarios for today’s tutorial.

As you can see, there is so much more to learn with this subject area, and eventually feel that it will lead to some WebGL work down the track for some 3D rendering on the HTML canvas element.

If you enjoy such environments you may be very interested in researching Tcl/Tk in this subject area as well.

Here is the C++ programming source code you could call main.cpp

Onwards and upwards! Hope you enjoy today’s tutorial, which included a Mac Update of the Xcode Command Line tools, along the way.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, GUI, Operating System, Tutorials, Xcode and tagged , , , , , , , , , , , , , . Bookmark the permalink.

12 Responses to C++ OpenGL in Xcode Hexagonal Prism Tutorial

  1. Hi there to every body, it’s my first go to see of this blog; this website contains awesome and genuinely good stuff for visitors.|

  2. Nicholas says:

    Hello, interesujΔ…cy rozdziaΕ‚. Dawno nie sΕ‚uchaΕ‚em tak interesujΔ…cego tekstu

  3. Shy says:

    yes, analysis is paying off. Definitely useful mindset, thank you for giving.. Isn’t it amazing if you get a fantastic post? I appreciate you showing your point of view..

  4. Useful information. Lucky me I found your site by accident, and I’m shocked why this accident didn’t happened in advance! I bookmarked it.

  5. I think this is among the most vital info for me. And i am glad reading your article. But should remark on some general things, The site style is ideal, the articles is really excellent : D. Good job, cheers

  6. magnificent issues altogether, you just won a logo new reader. What may you recommend about your post that you simply made a few days ago? Any sure?

  7. bache says:

    Bonjour ! Des sujets Γ  redΓ©finir je pense !

  8. Joy says:

    Supporting the blog post.. glad I found it Isn’t it terrific if you acquire a great article? Value the admission you presented.. Is not it wonderful if you find a very good post?

  9. I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the internet will be a lot more useful than ever before.

  10. skin care says:

    I’m absolutely agree with your claim or the important things that you’ve discussed right here in this website.

  11. Undeniably says:

    Howdy very nice blog!! Man .. Excellent .. Superb .. I’ll bookmark your blog and take the feeds additionally…I am satisfied to search out a lot of useful info right here in the put up, we want work out more techniques in this regard, thank you for sharing.

  12. sense says:

    Recognize the value of the admission you made available.. So content to get discovered this submit.. So pleased to get located this article.. So pleased to have located this publish..

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>