Nikita Egorov wrote: > Documentation for gfxdriver is source code of DirectFB.:) > It's not a very difficult goal. See sources of some simple gfxdriver > from the library. Too files src/core/gfxcard.h and gfxcard.c contain > important comments.
There's also a nice presentation: http://www.directfb.org/docs/ELC2008/elc2008_directfb_gfx.pdf > I spent couple of weeks to create my own driver. I did it so: > 1) I'd created new folder in DirectFB/gfxdrivers/ > 2) copied one of existing drivers sources to the folder (e.g. you can > use ati128) > 3) renamed all files, functions and structures (like as ati128Blit => > xxxBlit) and corrected makefiles. > 4) Next I'd changed followed functions : > driver_probe(),driver_get_info(),driver_init_driver(), > driver_init_device(), driver_close_device(), driver_close_driver() > 5) When DirectFB could register my driver I'd begun to change > check_state() and set_state() and create(change) gfx functions like as > Blit, FillRect, Line and so on. I'd use the vmware driver as a template. It contains very informative comments and is still very simple. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users