#include <DAVEScreen.h>
Public Member Functions | |
| CDAVEScreen (d1_device *pkD1Handle, d2_device *pkD2Handle, const eC_Int &iD1Mode, const eC_Int &iD2Mode, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBytesPerPixel, const eC_UInt &uiBufferCount, void **ppBuffers) | |
| virtual | ~CDAVEScreen () |
| Destructor. | |
| void | Clear () |
| void | Flip () |
| eC_UInt | GetBitsPerPixel () const |
| eC_UInt | GetBufferCount () const |
| eC_Int | GetD1Mode () const |
| eC_Int | GetD2Mode () const |
| void * | GetDisplayBuffer () |
| eC_UInt | GetHeight () const |
| eC_UInt | GetPitch () const |
| void * | GetRenderBuffer () |
| eC_UInt | GetWidth () const |
| void | Merge (const CGUIRect &kInvalidatedRect, const eC_Bool &bCopyContents=true) |
Class to manage screens in D/AVE
| CDAVEScreen::CDAVEScreen | ( | d1_device * | pkD1Handle, |
| d2_device * | pkD2Handle, | ||
| const eC_Int & | iD1Mode, | ||
| const eC_Int & | iD2Mode, | ||
| const eC_UInt & | uiWidth, | ||
| const eC_UInt & | uiHeight, | ||
| const eC_UInt & | uiBytesPerPixel, | ||
| const eC_UInt & | uiBufferCount, | ||
| void ** | ppBuffers | ||
| ) |
Constructor
| pkD1Handle | |
| pkD2Handle | |
| iD1Mode | |
| iD2Mode | |
| uiWidth | |
| uiHeight | |
| uiBytesPerPixel | |
| uiBufferCount | |
| ppBuffers |
| void CDAVEScreen::Clear | ( | ) |
Clear the screens
| void CDAVEScreen::Flip | ( | ) |
Flip the screen
| eC_UInt CDAVEScreen::GetBitsPerPixel | ( | ) | const |
Return bits per pixel for screen
| eC_UInt CDAVEScreen::GetBufferCount | ( | ) | const |
Return number of buffers
| eC_Int CDAVEScreen::GetD1Mode | ( | ) | const |
Return D1-mode of screen
| eC_Int CDAVEScreen::GetD2Mode | ( | ) | const |
Return D2-mode of screen
| void * CDAVEScreen::GetDisplayBuffer | ( | ) |
Return currently active display-buffer
| eC_UInt CDAVEScreen::GetHeight | ( | ) | const |
Return heihgt of screen
| eC_UInt CDAVEScreen::GetPitch | ( | ) | const |
Return pitch of screen
| void * CDAVEScreen::GetRenderBuffer | ( | ) |
Return currently active render-buffer
| eC_UInt CDAVEScreen::GetWidth | ( | ) | const |
Return width of screen
| void CDAVEScreen::Merge | ( | const CGUIRect & | kInvalidatedRect, |
| const eC_Bool & | bCopyContents = true |
||
| ) |
Merge invalidated regions from display-buffer to render-buffer needs to be done AFTER flipping of the buffers.
| kInvalidatedRect | area of invalidation |
| bCopyContents | true if screen should be copied |