티스토리 뷰


#include<glut.h>
#include<gl.h>
#include<glu.h>

void MyDisplay(){
 glClear(GL_COLOR_BUFFER_BIT);
 glViewport(0,0,300,300);
 glColor3f(1.0,1.0,1.0);
 glutSolidTeapot(0.5);
// glutWireTeapot(0.5);
 // glEnd();
 glFlush();
}

int main(int argc, char** argv)
{
 glutInit(&argc,argv);
 glutInitDisplayMode(GLUT_RGB);
 glutInitWindowSize(300,300);
 glutInitWindowPosition(0,0);
 glutCreateWindow("차 주전자");
 glClearColor(0.0,0.0,0.0,1.0);
 glMatrixMode(GL_PROJECTION);
 glLoadIdentity();
 glOrtho(-1.0,1.0,-1.0,1.0,-1.0,1.0);
 glutDisplayFunc(MyDisplay);
 glutMainLoop();
 return 0;

}

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함