stw_wgl_swapbuffers.c File Reference

Include dependency graph for stw_wgl_swapbuffers.c:

Go to the source code of this file.

Functions

WINGDIAPI BOOL APIENTRY wglSwapBuffers (HDC hdc)
WINGDIAPI BOOL APIENTRY wglSwapLayerBuffers (HDC hdc, UINT fuPlanes)


Function Documentation

WINGDIAPI BOOL APIENTRY wglSwapBuffers ( HDC  hdc  ) 

Definition at line 41 of file stw_wgl_swapbuffers.c.

References FALSE, stw_winsys::flush_frontbuffer, framebuffer_from_hdc(), stw_device::screen, st_get_framebuffer_surface(), st_notify_swapbuffers(), ST_SURFACE_BACK_LEFT, stw_framebuffer::stfb, stw_dev, stw_device::stw_winsys, TRUE, and pipe_screen::winsys.

00043 {
00044    struct stw_framebuffer *fb;
00045    struct pipe_surface *surf;
00046 
00047    fb = framebuffer_from_hdc( hdc );
00048    if (fb == NULL)
00049       return FALSE;
00050 
00051    /* If we're swapping the buffer associated with the current context
00052     * we have to flush any pending rendering commands first.
00053     */
00054    st_notify_swapbuffers( fb->stfb );
00055 
00056    surf = st_get_framebuffer_surface( fb->stfb, ST_SURFACE_BACK_LEFT );
00057 
00058    stw_dev->stw_winsys->flush_frontbuffer(stw_dev->screen->winsys,
00059                                           surf,
00060                                           hdc );
00061 
00062    return TRUE;
00063 }

WINGDIAPI BOOL APIENTRY wglSwapLayerBuffers ( HDC  hdc,
UINT  fuPlanes 
)

Definition at line 66 of file stw_wgl_swapbuffers.c.

References FALSE.

00069 {
00070    (void) hdc;
00071    (void) fuPlanes;
00072 
00073    return FALSE;
00074 }


Generated on Tue Sep 29 06:25:56 2009 for Gallium3D by  doxygen 1.5.4