GLUTINITWINDOWSIZE(3)

๐Ÿ’– glutInitWindowSize(3) ๐Ÿ’–

okay bestie, come sit with me, we're gonna talk about glutInitWindowSize(3) and it's genuinely gonna change your window-opening life โœจ


๐ŸŒธ NAME ๐ŸŒธ

glutInitWindowSize โ€” Requests future windows to open at a given width/height. periodt. ๐Ÿ’…


๐ŸŽ€ LIBRARY ๐ŸŽ€

OpenGLUT โ€” window ๐ŸชŸ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

#include <openglut.h>

void
glutInitWindowSize(int width, int height);

like. that's it. that's the whole thing. so simple. so iconic. ๐Ÿ‘‘


๐Ÿ’œ PARAMETERS ๐Ÿ’œ

  • width โ€” Width of future windows. yes bestie, future windows, we're manifesting here ๐Ÿ”ฎ
  • height โ€” Height of future windows. the vertical situation. the up-and-down of it all ๐Ÿ“

โœจ DESCRIPTION โœจ

This function allows you to request initial dimensions for future windows. no cap, you're literally just telling GLUT "hey, when you open my next window, make it this big" and it goes "say less" ๐Ÿซถ

There is a callback function to inform you of the new window shape (whether initially opened, changed by your glutReshapeWindow() request, or changed directly by the user). so like, three ways your window can end up a different size than you asked:

  1. it just opened that way, whatever ๐ŸŒฑ
  2. you asked for a resize with glutReshapeWindow() ๐Ÿงš
  3. the actual user dragged it around with their little mouse, main character energy fr ๐Ÿ’€

and the callback is how you find out. iykyk ๐Ÿ”ฅ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

go read them, they're all slaying in their own way, lowkey obsessed with this little family ๐Ÿซถ


tiny lil sign-off moment: this page is from the UNTITLED() manual situation and it's dated UNDATED โ€” so like, timeless. vintage. an enigma. we don't know when, we don't know who, but the knowledge ate and left no crumbs ๐Ÿ’…โœจ๐Ÿ’–