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
'공부일지 > OpenGL' 카테고리의 다른 글
OpenGL - 3 (Shaders) (0) | 2020.03.07 |
---|---|
OpenGL - 2 (triangle) (0) | 2020.03.06 |
OpenGL -1 (window생성) (0) | 2020.03.05 |