2008/11/13 vijay anand <[EMAIL PROTECTED]>:
> I could able to create surface with DFBSurfaceCapabilities set as 
> DSCAPS_SUBSURFACE. Is this the right method to create user surface (other 
> than primary)?

No, subsurface is only a part of other surface.
What is your problem?

This is a sample code to create surface in video memory. After
creating the surface you can do drawing there and blit the image onto
your primary surface.

    DFBSurfaceDescription desc;
    desc.flags         =
DSDESC_CAPS|DSDESC_WIDTH|DSDESC_HEIGHT|DSDESC_PIXELFORMAT;
    desc.caps         = DSCAPS_VIDEOONLY;
    desc.pixelformat = DSPF_RGB16;
    desc.h              = 240;
    desc.w              = 320;
    IDirectFBSurface* ret_surface;
    err = dfb->CreateSurface(dfb, &desc, &ret_surface);

-- 
Best Regards
Nikita Egorov
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to