Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dynamo_wku

glutCreateSubWindow()

This topic is 5618 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im having alot of problems using the glutCreateSubWindow() to create a second window....here is the error i get when trying to call it GLUT: Warning in C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\CS\OPENGL\glut test\Debug\glut test.exe: The following is a new check for GLUT 3.0; update your code. GLUT: Fatal Error in C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\DESKTOP\CS\OPENGL\g lut test\Debug\glut test.exe: redisplay needed for window 2, but no display call back. here is my code
    
void main(int argc, char **argv) {
	glutInit(&argc, argv);
	glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA);
	glutInitWindowPosition(100,100);
	glutInitWindowSize(320,320);
	int wMain = glutCreateWindow("Window title");
	glutDisplayFunc(renderScene);

	int wSub = glutCreateSubWindow(wMain,200,200,200,200);
	glutMainLoop();
}
    
[edited by - dynamo_wku on March 4, 2003 1:22:17 AM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!