freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c在嵌入式系統(tǒng)中的運(yùn)用-資料下載頁

2025-05-12 05:29本頁面
  

【正文】 cceleration by a GFX driver is available ? If yes, it handovers to the GFX driver ? If not it uses software rendering engine Hardware User Level Device Drivers DirectFB Application DirectFB DirectFB Core API Module GFX drivers Frame Buffer Driver Display Unit 2D Graphics Hardware Generic GFX Driver IDirectFB *dfb = NULL。 IDirectFBSurface *primary = NULL。 int screen_width = 0, screen_height = 0。 int main (int argc, char **argv) { // A surface description is needed to create a surface. DFBSurfaceDescription dsc。 // Initialize DirectFB passing argc and argv DirectFBInit (amp。argc, amp。argv)。 // Create the super interface. DirectFBCreate (amp。dfb)。 // go fullscreen dfbSetCooperativeLevel (dfb, DFSCL_FULLSCREEN)。 // create primary surface = DSDESC_CAPS。 = DSCAPS_PRIMARY | DSCAPS_FLIPPING。 dfbCreateSurface( dfb, amp。dsc, amp。primary )。 primaryGetSize (primary, amp。screen_width, amp。screen_height)。 // Clear the screen by filling a rectangle primaryFillRectangle (primary, 0, 0, screen_width, screen_height)。 // Draw a horizontal line in the middle of the screen. primaryDrawLine (primary, screen_height / 2, screen_width 1, screen_height / 2)。 // Now flip the whole surface to make things visible. primaryFlip (primary, NULL, 0)。 primaryRelease( primary ) dfbRelease( dfb )。 } DirectFB Interface define DECLARE_INTERFACE( IFACE ) typedef struct _IFACE IFACE。 define DEFINE_INTERFACE( IFACE, IDATA... ) \ struct _IFACE { \ void *priv。 \ // 接口數(shù)據(jù) int magic。 \ // Magic Number DFBResult (*AddRef)( IFACE *thiz )。 \ DFBResult (*Release)( IFACE *thiz )。 \ IDATA }。 DEFINE_INTERFACE( IDirectFB, DFBResult (*SetCooperativeLevel) ( IDirectFB *thiz, DFBCooperativeLevel level )。 DFBResult (*CreateSurface) ( IDirectFB *thiz, const DFBSurfaceDescription *desc, IDirectFBSurface **ret_interface )?!? Compare: COM Object Model QueryInterface AddRef Release Read …… QueryInterface AddRef Release Read …… Implementation Implementation Implementation Implementation CStream BYTE * data INT count …… IStreamVtbl IStream IStreamVtbl Compare: DirectFB Object Model IDirectFB void *priv Int magic AddRef Release SetVideoMode …… Implementation Implementation Implementation Implementation CreateSurface IDirectFB_data int ref。 CoreDFB *core。 …… ? 面向接口編程,而不是針對(duì)實(shí)現(xiàn)編程。 ? 舍其“形”而取其“神” 案例總結(jié) ? Symbian案例 –體驗(yàn) C++獨(dú)特的語言魅力 –可控性、自由度、系統(tǒng)編程、 ? Win CE GWES amp。 DirectFB – C++語言對(duì)嵌入式軟件的改進(jìn) –面向?qū)ο蟮乃枷? 總結(jié) ? 嵌入式軟件開發(fā)者 –是否可以用 C++重構(gòu)您的系統(tǒng)? ? 桌面 / 企業(yè)應(yīng)用開發(fā)者 –是否對(duì)嵌入式軟件開發(fā)有所了解? 謝謝! 希望能與各位交流 EMail:
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1