Setting up and using OpenGL 3.0+ with Mac OSX Lion(10.7)
问题 I am trying to set up an OpenGL 3.0+ context within XCode 4. As you can see talking about shaders here at the developer website the example it uses is OpenGL 2.0. In Appendix B it does talk about updating for 3.2 but just shows you function name changes and what only applies to the core, yet there is no example of actually setting up an OpenGL context. This has changed greatly since the fixed function pipeline being that you can no longer do things like glMatrixMode(...).. etc etc...i.e.