OpenGL Setup in macOS

We have configured SFML in macOS, now we’re going to configure OpenGL with macOS and Xcode. First, you need to install GLFW brew install glfw Then, you need to download GLAD to get the OpenGL headers: Use gl version 4.1 if you want to be compatible with macOS and in Profile select Core. Click in Generate. Download the glad.zip and unzip in your Download folder. https://glad.dav1d.de Once you are downloaded and unzipped the folder, put the glad and KHR folders in the /usr/local/include directory of your mac. Creating the Xcode Project After installed GLFW and downloading the glad files, is …

Read more