Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutswapbuffers(3glut) [redhat man page]

glutSwapBuffers(3GLUT)						       GLUT						    glutSwapBuffers(3GLUT)

NAME
glutSwapBuffers - swaps the buffers of the current window if double buffered. SYNTAX
void glutSwapBuffers(void); DESCRIPTION
Performs a buffer swap on the layer in use for the current window. Specifically, glutSwapBuffers promotes the contents of the back buffer of the layer in use of the current window to become the contents of the front buffer. The contents of the back buffer then become unde- fined. The update typically takes place during the vertical retrace of the monitor, rather than immediately after glutSwapBuffers is called. An implicit glFlush is done by glutSwapBuffers before it returns. Subsequent OpenGL commands can be issued immediately after calling glutSwapBuffers, but are not executed until the buffer exchange is completed. If the layer in use is not double buffered, glutSwapBuffers has no effect. SEE ALSO
glutPostRedisplay, glutDisplayFunc AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutSwapBuffers(3GLUT)

Check Out this Related Man Page

GLXSWAPBUFFERS()														  GLXSWAPBUFFERS()

NAME
glXSwapBuffers - exchange front and back buffers C SPECIFICATION
void glXSwapBuffers( Display *dpy, GLXDrawable drawable ) delim $$ PARAMETERS
dpy Specifies the connection to the X server. drawable Specifies the drawable whose buffers are to be swapped. DESCRIPTION
glXSwapBuffers promotes the contents of the back buffer of drawable to become the contents of the front buffer of drawable. The contents of the back buffer then become undefined. The update typically takes place during the vertical retrace of the monitor, rather than immedi- ately after glXSwapBuffers is called. glXSwapBuffers performs an implicit glFlush before it returns. Subsequent OpenGL commands may be issued immediately after calling glXSwap- Buffers, but are not executed until the buffer exchange is completed. If drawable was not created with respect to a double-buffered visual, glXSwapBuffers has no effect, and no error is generated. NOTES
The contents of the back buffer become undefined after a swap. Note that this applies to pbuffers as well as windows. All GLX rendering contexts share the same notion of which are front buffers and which are back buffers. One consequence is that when mul- tiple clients are rendering to the same double-buffered window, all of them should finish rendering before one of them issues the command to swap buffers. The clients are responsible for implementing this synchronization. Typically this is accomplished by executing glFinish and then using a semaphore in shared memory to rendezvous before swapping. ERRORS
GLXBadDrawable is generated if drawable is not a valid GLX drawable. GLXBadCurrentWindow is generated if dpy and drawable are respectively the display and drawable associated with the current context of the calling thread, and drawable identifies a window that is no longer valid. SEE ALSO
glFlush, glXBindSwapBarrierSGIX, glXJoinSwapGroupSGIX, glXSwapIntervalSGI GLXSWAPBUFFERS()
Man Page

4 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