반응형
glBegin
-
[OpenGL] 예제1_화면에 도형 띄우기Programming Language/OpenGL 2017. 4. 10. 13:47
glClearColor,glClear,glBegin,glEnd,glFinish,glutDisplayFunc,glutMainLoop 12345678910111213141516171819202122232425262728293031323334353637383940#include #include void display(){ glClearColor(1.f, 1.f, 1.f, 1.f);//specify R,G,B,A values used when the color buffers are cleared. The initial values are all 0. glClear(GL_COLOR_BUFFER_BIT);//clear buffers to preset values. glColor3f(0.f, 0.f, 1.f); gl..