.Dt GLUTINIT 3 LOCAL
NAME glutInit — Initialize OpenGLUT data structures.
LIBRARYOpenGLUT - mainloop
SYNOPSIS #include <openglut.h>
void glutInit(int *pargc , char **argv);
PARAMETERS. Bf
pargc . Ef
Pointer to something like main()'s . Bf
argc. . Ef. Bf
argv . Ef
Something like main()'s . Bf
argv. . Ef
DESCRIPTIONThis function should be called once, near the start of any GLUT, freeglut, or OpenGLUT program. It serves two vital roles:
- It allows OpenGLUT to initialize internal structures.
- It allows OpenGLUT to process command-line arguments to control the initial window position, etc. You should take note of the interaction between glutInit() and the related functions such as glutInitWindowPosition(). OpenGLUT always uses the most recent configuration information, so if you call glutInit(), then glutInitWindowPosition(), you prevent the user from controlling the initial window position via a command-line parameter. glutInit() will remove from . Bf
pargc, . Ef. Bf
argv . Efany parameters that it recognizes in the command line. The following command-line parameters are suported:
- . Bf
-display . Ef. Bf
display-id . EfThis allows connection to an alternate X server.
- . Bf
-geometry . Ef. Bf
geometry-spec . EfThis takes width, height, and window position. The position is given as a signed value (negative values being distance from the far boundary of the screen). For example, a window geometry of 5x7+11-17 is 5 pixels wide, 7 pixels tall, 11 pixels from the left, and 17 pixels from the bottom edge of the screen.
- . Bf
-direct . Ef
Insist on only OpenGL direct rendering. Direct rendering is normally requested but indirect is normally accepted. . Bf
-direct . Ef
is not always available. See . Bf
-indirect. . Ef
- . Bf
-indirect . Ef
Attempt only indirect OpenGL rendering. . Bf
-indirect . Ef
is always available. See . Bf
-direct. . Ef
- . Bf
-iconic . Ef
Open the window in iconized form.
- . Bf
-gldebug . Ef
Print any detected OpenGL errors via glutReportErrors(). Presently done at the bottom of glutMainLoopEvent().
- . Bf
-sync . Ef
Synchronize the window system communications heavily. Additionally, this function checks whether the environment variable . Bf
GLUT_FPS . Ef
is defined (only on UNIX_X11); if so, OpenGLUT will periodically print the average number of times per second that your program calls glutSwapBuffers().
CAVEATSYou really should always call this, even if you are a WIN32 user. It provides a way for the user to directly inform OpenGLUT about preferences without the application needing to explicitly deal with those issues. This is also where OpenGLUT retrieves your program's name to help disambiguate error and warning messages it may be forced to emit. Option . Bf
-sync . Ef
sets a flag, but is not actually used at this time. Lots of code does XFlush() on the X server, regardless of whether . Bf
-sync . Ef
is specified. Much of that appears to be required in order to support direct client invocation of glutMainLoopEvent(), regrettably. However, if one calls glutMainLoop(), instead, we might avoid gratuitous XFlush() calls. (That last sentence isn't particularly germain to this function, but there's no better place to make this remark at this time.) Even for glutMainLoopEvent(), we may be able to coalesce many XFlush() calls.
SEE ALSOglutInitWindowPosition(3) glutInitWindowSize(3) glutInitDisplayMode(3) glutInitDisplayString(3) glutCreateWindow(3) glutDisplayFunc(3) glutMainLoop(3) glutMainLoopEvent(3) glutReportErrors(3) glutSwapBuffers(3) fl.sp 3 0
Johanes Gumabo
Data Size : 10,980 byte
man-glutInit.3Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 260,625
Visitor ID : :
Visitor IP : 3.137.187.104 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|252|glutInit.3|2|Dt|.Dt GLUTINIT 3 LOCAL
) (parse_manual_page_|252|glutInit.3|15|Bf|.Bf Em
) (parse_manual_page_|252|glutInit.3|17|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|19|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|21|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|24|Bf|.Bf Em
) (parse_manual_page_|252|glutInit.3|26|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|28|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|30|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|50|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|52|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|54|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|56|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|63|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|65|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|67|Bf|.Bf Li
) (parse_manual_page_|252|glutInit.3|69|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|73|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|75|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|77|Bf|.Bf Li
) (parse_manual_page_|252|glutInit.3|79|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|89|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|91|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|95|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|97|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|100|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|102|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|105|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|107|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|109|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|111|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|114|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|116|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|119|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|121|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|124|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|126|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|131|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|133|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|139|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|141|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|151|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|153|Ef|.Ef
) (parse_manual_page_|252|glutInit.3|157|Bf|.Bf Sy
) (parse_manual_page_|252|glutInit.3|159|Ef|.Ef
)