공부일지/OpenGL
openGL
EUJU
2020. 2. 19. 15:31
teaching platform for the graphics API = OpenGL
An object in OpenGL is a collection of options that represents a subset of OpenGL's state.
id로 저장 -> id를 이용, obj를 target location of the context에 bind -> window option 설정, un bind the object by setting the current object id of the window target to 0
The options we set are stored in the object referenced by objectId and restored as soon as we bind the object back to GL_WINDOW_TARGET
1개의 object보다 많이 정의할 수 있음
https://learnopengl.com/Getting-started/Creating-a-window
GLFW 소스코드 다운 -> cmake configure/generate -> build glfw.sln