Install Dev C++ and OpenGL | It Works

Аватар автора
Groovy Glimpses
How to Install the free compiler Dev C++ and the free graphics library OpenGL on Windows 10. -lglu32 -lglut32 -lopengl32 Replace less than sign with actual less than sign. YouTube prevents me from adding it here. ---C Code--- "LESS THAN SIGN" stdio.h "GREATER THAN SIGN" int main() { printf("Hello World!!!nn"); system("pause"); } ---OpenGL Code--- "LESS THAN SIGN" GL/glut.h "GREATER THAN SIGN" void display() { glClear(GL_COLOR_BUFFER_BIT); glColor3f(1,0,0); glBegin(GL_POLYGON); glVertex2f(100,300); glVertex2f(100,100); glVertex2f(200,100); glVertex2f(200,300); glEnd(); glFlush(); glutSwapBuffers(); } int main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA); glutInitWindowSize(640,640); glutCreateWindow("OpenGL"); glutDisplayFunc(display); gluOrtho2D(0,640,0,640); glClearColor(0.5,0.7,0.5,0); glutMainLoop(); return 0; }

0/0


0/0

0/0

0/0