Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/graphics/devg_get_corefuncs.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/graphics/devg_get_corefuncs.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/graphics/devg_get_corefuncs.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/graphics/devg_get_corefuncs.html on line 8
Get a table of your driver's core 2D drawing functions
int devg_get_corefuncs (disp_adapter_t *ctx,
unsigned pixel_format,
disp_draw_corefuncs_t *fns,
int tabsize);
A driver must provide an entry point called devg_get_corefuncs().
The graphics framework calls it to get a table of your driver's
core 2D drawing functions for a particular pixel format.
The arguments are:
- ctx
- A pointer to the
disp_adapter_t
structure that describes the graphics adapter.
- pixel_format
- The required pixel format.
For more information, see
“Pixel formats”
in the Writing a Graphics Driver chapter.
- fns
- A pointer to a
disp_draw_corefuncs_t
structure that your driver must fill with pointers to its
core 2D drawing functions.
- tabsize
- The size of the table, in bytes.
Use the
DISP_ADD_FUNC()
macro to add function pointers to the table.
It checks the tabsize argument and adds a function pointer only
if there's space for it in the table.
- 0
- Success.
- -1
- The driver doesn't support the given pixel format, or an error occurred.
Neutrino
Safety: | |
Interrupt handler |
Not applicable |
Signal handler |
Not applicable |
Thread |
Not applicable |
devg_get_contextfuncs(),
devg_get_miscfuncs(),
disp_adapter_t,
DISP_ADD_FUNC(),
disp_draw_corefuncs_t,
ffb_get_corefuncs()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/graphics/devg_get_corefuncs.html on line 139
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/graphics/devg_get_corefuncs.html on line 139