OpenGL 2.1 in XCode

#1

Hey Guys and Gals,

I’m running High Sierra version 10.13.6

I just downloaded XCode and got C++ running in it.

I am currently in a class on Image Processing that is requiring that we use OpenGL 2.1 (Nothing higher

Is there someone here that can very Specifically explain to me how to be able to run C++ code specific to OpenGL 2.1 (Linking libraries and whatever)
Is this possible?

I have attached an example of the code I am dealing with.

#2

Just websearch opengl xcode tutorial. For instance: