#include <stdio.h>
#include <glut.h>
void myDisplay()
{
glClear(GL_COLOR_BUFFER_BIT);
glViewport(0, 0, 300, 300);
glColor3f(1.0, 0, 0);
glBegin(GL_POLYGON);
glutWireCube(0.7);
glEnd();
glFlush();
}
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB);
glutInitWindowSize(300, 300);
glutInitWindowPosition(0, 0);
glutCreateWindow("1");
glClearColor(1.0, 1.0, 1.0, 0.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0);
glutDisplayFunc(myDisplay);
glutMainLoop();
return 0;
}
나 존나못하는거 아니까 많은 지적 부탁해 형들
와이어는 왜안되는거지?? 모르겠다 미안
시점변환은
http://blog.minhazulhaque.com/opengl-write-bitmap-text-with-color/
참고