OpenGL help.

I was wondering how to make a window in OpenGL/GLUT, and making my objects render in it. My tutorials do not explain, or it is later on, but I am a type of guy that I need results now, so I really would like to test all of the information that I have learned.
how to make a window in OpenGL/GLUT

what do you mean by that? you want to create a window that use OpenGL to draw content? the window is in win32 platform?
Can you use win32 to draw OpenGL content? o.o
Are you looking for something like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int main( int argc, char* argv[] )
{
    glutInit(&argc, argv);
    glutInitWindowSize(640,480);
    glutInitWindowPosition(0,0);
    glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);

    glutCreateWindow("Name");

    glutDisplayFunc(display);
    glutKeyboardFunc(key);

    glutMainLoop();

    return 0;
}
I was infrmed that the tutorial was just on OpenGL, so I need to find a good glut tutorial to. xD silly me.
FWIW, look up "FreeGLUT" and not "GLUT" because GLUT is very old. FreeGLUT is kind of like the replacement.

Though personally I prefer SFML, since it's more OO and has other goodies like audio and networking. But to each his own.
This is just for some quick tests, eventually I plan to go back over to SFML.
Topic archived. No new replies allowed.