class MASKING_DLL_DECLSPEC TripleBuffer

The Triple Buffering screen update driver.

Inheritance:

TripleBuffer - PageFlipping - ScreenUpdate


Public Methods

[more]Error Create()
If triple buffering is available, this function tries to turn it on and creates three video pages
[more]void Destroy()
Destroys the video pages
[more]void Redraw()
Requests the active page to be shown on screen, advances to the next page and returns without waiting for a vertical retrace

Protected Fields

[more]BITMAP* page3
The third video page
[more]int page
An index storing the number of the currently active page


Documentation

The Triple Buffering screen update driver. Triple buffering is very similar to page flipping. In fact triple buffering is just an extension of page flipping where a third video page is used to eliminate the need to wait for vertical synchronisation. In a triple buffering scheme one page is available for drawing (the active page), one contains the last completely drawn frame and is waiting for the next vertical retrace so it can be shown on screen and the third contains the previous frame and is at the time being drawn by the hardware onto the physical screen. Triple buffering is in most cases where the entire screen needs to be fully redrawn the fastest screen update method but is not available on all systems.
oBITMAP* page3
The third video page

oint page
An index storing the number of the currently active page

oError Create()
If triple buffering is available, this function tries to turn it on and creates three video pages

ovoid Destroy()
Destroys the video pages

ovoid Redraw()
Requests the active page to be shown on screen, advances to the next page and returns without waiting for a vertical retrace


This class has no child classes.

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++