1. download
2. brew install glew glfw3 glm
3. Tutorial-01
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
$ clang++ tutorial01.cpp -I /usr/local/include/GLFW -lglfw3 -framework opengl -lglew
4.
$ clang++ -I /usr/local/include/GLFW -I .. -lglfw3 -framework opengl -lglew ../common/shader.cpp tutorial02.cpp
댓글 없음:
댓글 쓰기