Friedrich-Alexander-Universität Erlangen-Nürnberg  /   Technische Fakultät  /   Department Informatik
GuardedGraphics Class Reference

Guarded interface to Graphics used by user applications. More...

#include <syscall/guarded_graphics.h>

+ Inheritance diagram for GuardedGraphics:
+ Collaboration diagram for GuardedGraphics:

Public Member Functions

 GuardedGraphics (unsigned size, void *frontbuffer, void *backbuffer)
 The constructor passes the pointers to the base-class constructor.
 
bool switchBuffers ()
 Switch front and back buffer (only if front buffer was already copied to video memory) More...
 
void scanoutFrontbuffer ()
 Copy current front buffer to the video memory. More...
 
- Public Member Functions inherited from Graphics

Detailed Description

Guarded interface to Graphics used by user applications.

Member Function Documentation

◆ switchBuffers()

bool GuardedGraphics::switchBuffers ( )
inline

Switch front and back buffer (only if front buffer was already copied to video memory)

Returns
true if buffers have been switched, false if previous front buffer wasn't yet fully copied to video memory.
Note
This method is equal to the correspondent method in base class Graphics, with the only difference that the call will be protected by a Guarded object.
Optional:
Extend method by a Guarded object.

◆ scanoutFrontbuffer()

void GuardedGraphics::scanoutFrontbuffer ( )
inline

Copy current front buffer to the video memory.

Note
This method is equal to the correspondent method in base class Graphics, with the only difference that the call will be protected by a Guarded object.
Optional:
Extend method by a Guarded object.

The documentation for this class was generated from the following file: