MapFb | 79
MapFb
Purpose Use
MapFb
to map the framebuffer. This function allows the
program to access the framebuffer directly.
Syntax
DVoid *(*MapFb) (dev)
Return value A pointer to the beginning of the framebuffer if successful;
otherwise,
NULL
.
Description
MapFb()
maps the framebuffer to the virtual address space of
the caller and returns a pointer to the beginning of that space.
The caller can access the framebuffer directly through the
pointer.
Attempts to access locations before the beginning of the
framebuffer or beyond the size of the framebuffer will
result in an error.
To unmap the framebuffer, use the
UnmapFb()
member
function of the device handle (page 81).
Errors If
MapFb()
returns
NULL
, an error message prints to
stderr
.
Parameter Type
Name
Description
DMdDev
dev
Device handle of the DOME device
To get the framebuffer size, use the
FbSize()
member
function of the device handle (page 82).
Содержание Dome DX/PCI
Страница 6: ......