A couple things are confusing me, looking at the code.

1) If I do not implement a gfxdriver, how does the "system module" provide the 
framebuffer onto which the software fallbacks can draw pixels? I'm looking 
primarily at the sdl system module example. I can't see the connection between 
where the pixel pipeline puts the color values and the surface provided by the 
system. 

2) If I would like to accelerate some functions in a gfxdriver as well, do I 
simply need to implement the gfxdriver interfaces as well as the system 
interfaces? 

Thanks,
Brett

-----Original Message-----
From: Ville Syrjälä [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 13, 2007 2:08 PM
To: Brett Keating
Cc: [email protected]
Subject: Re: [directfb-dev] new system module/primary layer implementation

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