Sign in to follow this  
metalcrusader

problems using identity matrix

Recommended Posts

metalcrusader    122
Hello! I have only the following in my main: glMatrixMode (GL_MODELVIEW); glLoadIdentity(); int matrix[16]; glGetIntegerv( GL_MODELVIEW_MATRIX, matrix); cout << "Matrix " << matrix[0] <<"/"<<matrix[1]<<"/"<<matrix[2]<<"/"<<matrix[3]< endl; I estimeted something like 1/0/0/0 but i got 8932 / 666 / -1073745864 / 134516137 ! Does anybody know whats wrong?

Share this post


Link to post
Share on other sites
metalcrusader    122
thank you for your reply!!! I added
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);

but it doesnt change anything... What else do i need for having a valid OpenGL rendering context?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this