On Thu, Sep 13, 2007 at 10:02:06AM -0700, Brett Keating wrote:
> I wanted to follow up on the below comment.
>  
> Is there some documentation or pointers you could give to explain how to 
> write a new system module and primary layer implementation? We would like to 
> "replace" the fbdev and not use a framebuffer device at all, if possible.

There are several system modules included in DirectFB (systems
directory). For a really simple one check out the devmem system.
Basically the system module needs to implement the functions in
CoreSystemFuncs (see src/core/core_system.h and src/core/system.h).

> Can you define "primary layer"?

Well you need at least one layer to do anything. That would be the
primary layer. It can be implemented in the system module (most existing
system modules do this) or it could be left for the gfxdriver to
implement (devmem system does not implement a primary layer). Additional
layers could be implement in the system module and/or gfxdrivers.

> Any pointers on where to look in the API documents, or tutorials, or anything 
> for how to go about this will help. I can't seem to find it after reading 
> through it myself.

AFAIK the only docs that exist is the the code and comments. It should be
fairly straightforward though. Start with the devmem module, then you 
could check out the sdl system which adds the primary layer. Ask if you
have further questions.

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to