GLUTSETOPTION(3)
π glutSetOption(3) π
okay bestie, sit down, we're doing glutSetOption(3) from the OpenGLUT library β the state section, no less. it's giving "let me tweak the global vibes" and honestly? it ate. π«Ά
β¨ SYNOPSIS β¨
#include <openglut.h>
void
glutSetOption(GLenum eWhat, int value);
like, two args, one call, zero drama. we love a low-effort icon. π
πΈ PARAMETERS πΈ
eWhatβ the enumerated parameter ID, aka which state variable you're coming for. it's the "who" of the operation, fr fr.valueβ the new value. the "what" you're stuffing into it. β¨
π¦ DESCRIPTION π¦
so basically: it stores the value into a state variable named by eWhat. that's the whole plot. no cap. π
here's the rundown of the allowable eWhat IDs, and bestie, there are quite a few, so let's go:
GLUT_ACTION_ON_WINDOW_CLOSEβ this one controls what happens when a window is closed by the user or by the system. the options are:GLUT_ACTION_EXITβ will immediately exit the application. and yeah, this is the default. so if you didn't pick anything, surprise, you picked this. πGLUT_ACTION_GLUTMAINLOOP_RETURNSβ will immediately return from the main loop.GLUT_ACTION_CONTINUE_EXECUTIONβ will contine execution of remaining windows. (yes, "contine" β that's the original spelling, i'm not touching it, it's part of the lore now π)
GLUT_INIT_DISPLAY_MODEβ an alternate way to set the display mode for a new window.GLUT_INIT_WINDOW_HEIGHTβ an alternate way to set the height of new windows.GLUT_INIT_WINDOW_WIDTHβ an alternate way to set the width of new windows.GLUT_INIT_WINDOW_Xβ an alternate way to set the initial horizontal position of new windows.GLUT_INIT_WINDOW_Yβ an alternate way to set the initial vertical position of new windows.GLUT_RENDERING_CONTEXTβ set this to eitherGLUT_CREATE_NEW_CONTEXTorGUT_USE_CURRENT_CONTEXTto indicate whether to share the current OpenGL rendering context with new windows. (and yes, it really does sayGUT_USE_CURRENT_CONTEXTβ that missingLis living its best life, i'm reporting it exactly as it is, do not come for me π )GLUT_WINDOW_CURSORβ attempts to set the current window's current cursor as if byglutSetCursor(). it's giving "same energy, different door" β¨
lowkey the whole page is just "here's a state variable, here's its enum, go off." but that's iconic of it honestly.
π SEE ALSO π
glutGet(3)glutDeviceGet(3)glutGetModifiers(3)glutLayerGet(3)glutDestroyWindow(3)glutMainLoop(3)glutInitDisplayMode(3)glutInit(3)glutInitWindowSize(3)glutInitWindowPosition(3)glutSetCursor(3)
and that's the whole thing, bestie. this page is UNDATED and its manual footer is literally UNTITLED() β which is so real of it, mysterious main character energy, no date, no title, just vibes. π§π periodt.
π¦ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- Copyright 2004, the OpenGLUT contributors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms