Each example will get more complex. I am using OpenGL to improve my linear algebra intuition while having some fun.
- Mac OSX
- OpenGL 2.1
- C++ 11
- cmake 3.7
- GLFW (for window and context creation)
- glew (GL extension wrangler)
- glm (GL Mathematics)
- OpenGL
If you're on a mac, do the following.
brew install glfw
brew install glew
brew install glm
- OpenGL comes installed already.
- You just have to link in your cmake like
link_libraries(GLFW glew "-framework OpenGL")
- You just have to link in your cmake like
- Clone this repo and
cd
in this repo. - Run
mkdir build && cd build
- Run
cmake .. && make
- Show what version of OpenGL you're running.
- Show how to create a GLFW window and context.
- Show how to use glew.
- Show how to use legacy fixed function pipeline to render aka immediate mode.