Hi all,
I only have two API for draw something in the screen!,there
have no framebuffer,Then I will ask you ,do DirectFB have an API for
others?For example:
the create screen api is
ErrorCode=mOSD_CreateGC(type, param, &gchisi);
dfb_fbdev->fd=gchisi->gcId;
_fbmem=(unsigned char *)gchisi->buffer;
the gcid is
typedef struct
{
ML_U32 gcId; /*!< the handle of gc */
ML_U8 bitsPerPel; /*!< the bits of a pix */
ML_U16 colorNum; /*!< the number of color */
ML_U8 mixWeight; /*!< Mix Weight */
ML_S32 x; /*!< the x of gc */
ML_S32 y; /*!< the y of gc */
ML_U32 width; /*!< the width of gc */
ML_U32 height; /*!< the height of gc */
mOSD_ColorMode_t colorFormat; /*!< color Format */
ML_VOID *buffer; /*!< datas */
} mOSD_GC_t;
the param is
typedef struct
{
ML_U16 x; /*!< the x-coordinate of the upper-left
corner of the gc */
ML_U16 y; /*!< the y-coordinate of the upper-left
corner of the gc */
ML_U16 bpp; /*!< the count of the bits per pixel */
ML_U16 width; /*!< the width of the gc,return fail if
width is too larger */
ML_U16 height; /*!< the height of the gc,return fail if
height is too larger */
} mOSD_Param_t;
there have the second api name
mOSD_UpdateWindow(gchisi,&pRect);
the pRect is
typedef struct
{
ML_S32 left; /*!< left */
ML_S32 top; /*!< top */
ML_S32 right; /*!< right */
ML_S32 bottom; /*!< bottom */
} mOSD_Rect_t;
then,What can I modify the DirectFB?
Can you give me an example?
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users