Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutmainloop(3) [centos man page]

UNTITLED
LOCAL UNTITLED NAME
glutMainLoop -- The standard GLUT event loop entry point. LIBRARY
OpenGLUT - mainloop SYNOPSIS
#include <openglut.h> void glutMainLoop(void); DESCRIPTION
This is the main driving force for an event-driven OpenGLUT program. It alternates between calling glutMainLoopEvent() to process pending events and then either sleeping or calling your idle function (see glutIdleFunc()). This function can return, but GLUT's version of this function never returned. And you must do special things to OpenGLUT to cause OpenG- LUT's version to return. The cross-reference section for this function's documentation should ideally contain every callback, but the list would be tediously long and prone to omissions. CAVEATS
For OpenGLUT developers' internal documentation: Runs until the ExecState changes to GLUT_EXEC_STATE_STOP. BUGS
Talking to other message systems (e.g., network layers) can be a bit bothersome under the GLUT event model. SEE ALSO
glutMainLoopEvent(3) glutLeaveMainLoop(3) glutIdleFunc(3) Epoch

Check Out this Related Man Page

UNTITLED
LOCAL UNTITLED NAME
glutSetWindow -- Select the <i>current window</i> LIBRARY
OpenGLUT - window SYNOPSIS
#include <openglut.h> void glutSetWindow(int ID); PARAMETERS
ID Window identifier DESCRIPTION
Sets the current window to ID. All OpenGL rendering goes to the current window . Many OpenGLUT functions also implicitly use the current window . Many OpenGLUT callback operations are tied to a window. When your callback is invoked, OpenGLUT will set that particular window to be the current window . However, some callbacks---such as that registered via glutIdleFunc()---do not have associated windows. If a callback is not associated to a particular window, then when OpenGLUT invokes that callback you should always use glutSetWindow() to select the appro- priate window before doing any OpenGL rendering or doing any OpenGLUT window-related operations. There may be cases when you can get away with assuming that the current window is unchanged since some prior time, but OpenGLUT has con- siderable liberaty with respect to when it invokes your functions. Also, your program may add more windows or more operations on other win- dows as you develop it. Lastly, this is a convenient way to select among multiple windows for drawing without actually waiting for that window's display callback. Simply set the current window and draw immediately. This is not always advisable, but may be practical. It is an error to set the current window to a non-existant window (e.g., one that you have closed). A warning will be printed on stderr if you try to do so, and the current window should be unchanged. SEE ALSO
glutGetWindow(3) Epoch
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error: GL/glut.h: No such file or directory

hi, I get this error when I compile my source on mac Leopard. is because I need to configure openGL path ? Monitor.h:15:60: error: GL/glut.h: No such file or directory Monitor.h:16:60: error: GL/gl.h: No such file or directory Monitor.C: In function 'void display2()': Monitor.C:77:... (0 Replies)
Discussion started by: aneuryzma
0 Replies

2. Programming

How to insert JPEG on each side of the cube using openGL in C

Hi, how to insert JPEG on each side of the cube using OpenGL in C language.. i have a program for cube.. guide me ,,, any answer will valuable.. (3 Replies)
Discussion started by: Ravikishore
3 Replies

3. Programming

How to Decode an image using openGL

Hi, How to decode an image using openGL library libjpeg .. which are the steps needed to do this using C language.. actually my work is to decode the image, store it on the buffer, and place it on cube surface.. please guide me,,any answer will appreciated .. (8 Replies)
Discussion started by: Ravikishore
8 Replies

4. Programming

Draw a 3D cylinder using openGL.

Hi, please give me, how to code to draw 3D cylinder in openGL, that should be rotated in x-direction. waiting for your reply .. (2 Replies)
Discussion started by: Ravikishore
2 Replies

5. Programming

how to bevel the edges of polyon

Hi i have written the code for star shape object in opengl but i am not able to bevel the edges of the star.COULD SOMEONE KINDLY TELL ME HOW CAN I BEVEL THE EDGES OF THE STAR SHAPE. #include <windows.h> #include <math.h> #include <GL/gl.h> #include <GL/glu.h> #include <freeglut.h> #include... (1 Reply)
Discussion started by: sumit_kang
1 Replies