Discussion:
[directfb-users] paint multiple surfaces
Alejandro Vázquez
2015-05-24 00:08:28 UTC
Permalink
Hi!
I want to draw a pair of surface but can not get me the paint well.
First I create 2 surface.
Surface 1: Draw a Rectangle color red.
Surface 2: Draw a Rectangle color blue.
Now i draw the surface 1 wait 5 second draw surface 2 and wait 5 second and
draw surface 1 again.
the first time paint the red rectangle but de second time paint both
rectangle and the last time don't draw nothing.

Am I doing it correctly?
I add the code and the makefile.

Thanks!
Regards.
Bobby Philip
2015-05-26 02:51:56 UTC
Permalink
I think you will have a to create the primary surface by modifying the
capabilities you provided to include

DSCAPS_PRIMARY | DSCAPS_FLIPPING

And you can only create one surface with primary capabilities.


Take a look at this example

http://directfb.org/docs/DirectFB_Tutorials/simple.html

Bobby
Post by Alejandro Vázquez
Hi!
I want to draw a pair of surface but can not get me the paint well.
First I create 2 surface.
Surface 1: Draw a Rectangle color red.
Surface 2: Draw a Rectangle color blue.
Now i draw the surface 1 wait 5 second draw surface 2 and wait 5 second
and draw surface 1 again.
the first time paint the red rectangle but de second time paint both
rectangle and the last time don't draw nothing.
Am I doing it correctly?
I add the code and the makefile.
Thanks!
Regards.
_______________________________________________
directfb-users mailing list
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
Loading...