//! lib: . //! link: pixel //! win: int main2(IVideo* winVideo) { int retval; if ((retval = iscreen_init(800, 600, 32,winVideo->hWnd,winVideo)) != 0) { printf("error init\n"); return -1; } //drawing canvas winVideo->paint = ipaint_create(winVideo->cscreen); drawing2(winVideo); /*while (iscreen_dispatch() == 0) { iscreen_tick(32); if (iscreen_keyon(IKEY_ESCAPE)) break; iscreen_convert(NULL, 1); iscreen_update(NULL, 1); }*/ return 0; }
int CallServices( IVideo* winVideo,int serviceNumber) { switch(serviceNumber) { case 1: { //intit //main2(); main4(winVideo); }break; case 2: { iscreen_convert(NULL, 1, winVideo); iscreen_update(NULL, 1, winVideo); }break; case 3: { ShutdownMainWindow(winVideo->hWnd,winVideo); }break; case 4: { drawing2(winVideo); }break; case 5: { drawing4(winVideo); }break; default: { } } return 0; }