React Router and…. OpenGL

I added React Router to the Ledger, which I think is quite nice. That is something I was going to have to learn at some point to become a respectable React programmer, and it is pretty straightforward.

Unfortunately I have to put the Ledger on the back burner for a couple of weeks, because I have a job interview that involves C++ and I need to brush up on my C++! It has been a while since I’ve used it professionally.

I figure what better way to make this fun than to do some OpenGL, which I have some familiarity with. I may or may not be able to display this on the web page at some point… I have done some reading about how to run C++ in a browser and it seems like more than I want to take on just for this interview. OpenGL is enough to take on! Really my objective is to use OpenGL as a way to discuss some esoteric C++ concepts that I should be able to answer questions about. I have a list of them from my friend Dave, who is a C++ guru. He has suggested the following basic topics:

  • Casting operators (static_cast, const_cast, etc)
  • Conventions for using auto keyword
  • Elementary operations on vector and other containers
  • Lambdas
  • Standard library pointer classes (auto_ptr, unique_ptr, etc)
  • Move semantics

So, I will discuss these topics as it relates to doing fun things in OpenGL, and see how far I get. As a starting point I am using Glitter, which got me up and running pretty quickly, and I am moving through the beginner tutorials at http://www.opengl-tutorial.org/. These tutorials are good because they don’t lay out the source code in its entirety… they give it to you little snippets at a time. That way you have to figure out where the snippets go, and it ensures you are paying attention instead of just cutting and pasting.

I am skipping all of the texturing and lighting stuff because that is not really important right now – all I am looking for is to draw some cubes, and move around and look around with the keyboard & mouse. Once I have that up and running we can do some fun stuff shooting cubes around and whatnot.

Leave a Reply

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