checkstate:
========
The acceleration functions, drawing and blitting flags in the state
structure are passed in CheckState routine to indicate the type of graphics
operation requested, for instance stretchblit with destination color keying.
The CheckState routine of a particular gfx accel driver is expected to
confirm if the operation can be supported in hardware and if yes, it is
expected to set the appropriate drawing or blitting functions supported in
state->accel field. DirectFB compares this with original acceleration flags
requested to check if hardware acceleratrion is supported or not and follows
it with setstate call.

setstate:
the function gets called to propagate the state changes to the driver. The
gfx accel driver is expected to look at state->modified flags to check what
has been modified and act accordingly and prepare for the actual operation.
you can always look at some sample gfx acceleration driver to understand how
these two routines are expected to be implemented.

Thanks
Amarinder

On Thu, Jun 25, 2009 at 8:33 AM, Denis Oliver Kropp <d...@directfb.org>wrote:

> Tanjore Suresh wrote:
>
>> Hi,
>>  I am a new to DirectFB and graphics in specific.
>>  But i am looking into the directFB driver interface and trying to
>> understand what need to be done in
>> SetState routine. Based on different flags specified in the CardState
>> Structure.
>>  I would like to know the semantics for the following
>>   State Modification Flags  Blitting Flags
>>
>
> Check the virtual acceleration code in gfxdrivers/vmware which has
> detailed explanations.
>
> --
> Best regards,
>  Denis Oliver Kropp
>
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/                 |
> "------------------------------------------"
> _______________________________________________
> directfb-dev mailing list
> directfb-dev@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>



-- 
---------------
Thanks
Amarinder
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to