Archived

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

DanG

GLUT: changing the the size of window in code

Recommended Posts

DanG    122
I''m writing a GLUT application. I would like to be able to change the size of the window in my code, but I don''t see how to do this. Any suggestions? Say America, aren''t we about due to start bombing some small country with an only marginally affective air force? We''re weeks over due to drop high explosives on helpless civilians.

Share this post


Link to post
Share on other sites
R3alTiMe    122
Im not sure what you mean,
but from what I understand u mean these? :

glutInitWindowSize(800, 600);
glutInitWindowPosition(100, 100);
glutCreateWindow("SIMPLE");

Hope I helped.



[edited by - R3alTiMe on October 22, 2002 3:18:00 AM]

Share this post


Link to post
Share on other sites
varokasp    122
Or probably ... this ?

void glutReshapeWindow(int width, int height);

width = New width of window in pixels.
height = New height of window in pixels.

Hint: The GLUT specification is really well documented. I recommend you have one in handy

[edited by - varokasp on October 22, 2002 6:35:23 AM]

Share this post


Link to post
Share on other sites