Ok, what in the hell. Everytime I try to do anything not involving the console, it's like everything just keeps me from doing it. I'm trying to just make a window, and GLUT isn't linked I guess. I'm using Code::Blocks, GCC compiler. I'v downloaded glut like 12 times, and freeglut as well. And I'm getting "glut.h : No such file exists."
Ok all those problems solved... And now this doesn't work. Compilers error free, but it just makes a window that isnt mine, and then thats it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <windows.h>
#include <gl/gl.h>
#include <glut.h>
int main(int argc, char **argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE); //Sets up single buffered display
glutInitWindowSize(500,500); //Sets size of window to 500 x 500
glutInitWindowPosition(100,100); //Sets position for window at (100,100)
glutCreateWindow("Whoo"); //Creates window
return 0;
}
Omg, I can't thank you enough! You have no idea how frustrated I was about this, and that did it. I had glutMainLoop() in a different built and it didnt do anything.