How to Install the free compiler Dev C++ and the free graphics library OpenGL on Windows 10.
Download Dev C++: http://www.mediafire.com/download/jvc...
Right click this link to download zip of glutming: http://chortle.ccsu.edu/Bloodshed/glu...
Raycaster Part 1 tutorial: • Make Your Own Raycaster Part 1
-lglu32 -lglut32 -lopengl32
Replace less than sign with actual less than sign. YouTube prevents me from adding it here.
--C Code--
#include "LESS THAN SIGN" stdio.h "GREATER THAN SIGN"
int main()
{
printf("Hello World!!!\n\n");
system("pause");
}
--OpenGL Code--
#include "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;
}