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
glutSpecialFunc -- Sets the Special callback for the current window LIBRARY
OpenGLUT - input SYNOPSIS
#include <openglut.h> void glutSpecialFunc(void( *callback )( int key, int x, int y )); PARAMETERS
callback Client function for keyboard event. DESCRIPTION
Registers a callback for OpenGLUT to call when the user presses "special" keys on the keyboard. The special callback handles some additional keys that are not covered under plain "keyboard" events. The key that is passed to the call- back is one of an enumerated set. The association to keys on your keyboard should be obvious. Their GLUT symbol names are: - GLUT_KEY_F1 - GLUT_KEY_F2 - GLUT_KEY_F3 - GLUT_KEY_F4 - GLUT_KEY_F5 - GLUT_KEY_F6 - GLUT_KEY_F7 - GLUT_KEY_F8 - GLUT_KEY_F9 - GLUT_KEY_F10 - GLUT_KEY_F11 - GLUT_KEY_F12 - GLUT_KEY_LEFT - GLUT_KEY_UP - GLUT_KEY_RIGHT - GLUT_KEY_DOWN - GLUT_KEY_PAGE_UP - GLUT_KEY_PAGE_DOWN - GLUT_KEY_HOME - GLUT_KEY_END - GLUT_KEY_INSERT To receive other keys, see glutKeyboardFunc(). This callback is bound to the current window . CAVEATS
Many keys are not included; nor is it possible to apply qualifiers such as the Shift or Ctrl key to these keys. Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent. SEE ALSO
glutSpecialUpFunc(3) glutKeyboardFunc(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