Hi,

I am a newbie and I would like to know the difference between
the following ways to create a primary surface

1)
DFBSurfaceDescription dsc;
IDirectFBSurface *primary;
IDirectFB *dfb;

dsc.flags = DSDESC_CAPS;
dsc.caps  = DSCAPS_PRIMARY | DSCAPS_FLIPPING;
dfb->CreateSurface( dfb, &dsc, &primary )

2)
IDirectFB *dfb;
IDirectFBDisplayLayer *layer;
IDirectFBSurface *primary;
IDirectFBWindow *window;

DFBWindowDescription wind_desc;

dfb->GetDisplayLayer (dfb, DLID_PRIMARY, &layer);
layer->CreateWindow(layer, &wind_desc, &window);
window->GetSurface(window, &primary);


What are the advantages of both implementations?

Thanks in advance,

Sergio


How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to