#include <YFrameBuffer.h>
Public Types | |
| typedef unsigned short | UINT16 |
| typedef unsigned long | UINT32 |
| typedef UINT32 | FBPixel |
Public Member Functions | |
| YFrameBuffer (int screenWidth, int screenHeight, int bitDepth) | |
| virtual | ~YFrameBuffer () |
| void | setPixel (int x, int y, FBPixel pixel) |
| FBPixel | pixel (int x, int y) |
| bool | valid () const |
| int | width () const |
| int | height () const |
| int | depth () const |
| int | bytesPerPixel () const |
Protected Member Functions | |
| void | mmapFB () |
| void | munmapFB () |
Protected Attributes | |
| int | _width |
| int | _height |
| int | _depth |
| void * | _fb |
| int | _fb_fd |
| UINT32 * | _fb32 |
| UINT16 * | _fb16 |
| size_t | _fb_len |
| int | _bytesPerPixel |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Constructor |
|
|
Destructor |
|
|
|
|
|
|
|
|
|
|
|
mmap() the framebuffer device |
|
|
release the mmaped framebuffer |
|
||||||||||||
|
Get the framebuffer pixel value at (x, y) |
|
||||||||||||||||
|
Set the framebuffer pixel at (x, y) |
|
|
Returns 'true' if the framebuffer is valid, i.e. can be used. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4