Posts

Showing posts from August, 2021

The idiots guide to getting your Hello World OpenGL program working on MacOS in the year 2021

So I have some time off work and thought it would be fun to learn OpenGL and modern C++. I haven't touched C++ in a long time, and OpenGL has some complexity to get even a basic window up. As always figuring out how to install your dependencies and get the compiler to link to the right things is half the battle. Many of the tutorials I found on the web had more stuff then you needed to just get started, and assumed you wanted to use a specific IDE. On the other hand other tutorials just gave you some code snippets and told you to figure out how to make the compiler work on your environment.  So I present to you my setp-by-step guide on how to get a minimal OpenGL program compiled and running on MacOS in the year 2021. You're welcome. Before we begin: Dependencies OpenGL is complex, and there are a few dependencies we will need to get our program up and running. Brew. We will use Brew to install the libraries we need. I will assume you already have Brew installed on your machine...