Reputation: 4789
I am just getting started with learning OpenGL. I am struggling to setup my environment. This is what I did do far:
I am using following command to compile a simple opengl code:
g++ test.cpp glad/glad.c -I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks -framework SDL2
Can someone please help me out ? Not sure what I'm missing.
Upvotes: 13
Views: 36489
Reputation: 495
brew install SDL2
brew install SDL2_image
brew install SDL2_ttf
Upvotes: 26