static void MediaView_MenuDraw( void ) { Menu_Draw( &s_mediaview_menu.menu ); switch(s_mediaview_menu.mediatype) { case MT_PICTURE: break; case MT_VIDEO: { e_status cinStatus; cinStatus = trap_CIN_RunCinematic(s_mediaview_menu.CINhandle); DrawLine(0,0,20,20,1,colorBlack); //note: DrawCinematic is no render-cmd, because of that it will probably be drawn before the previously done 2D-drawings are really drawn (using my Advanced2D, leads to a scene-randering, which seems to make sure that all 2D things are drawn) trap_CIN_DrawCinematic(s_mediaview_menu.CINhandle); if(cinStatus!=FMV_PLAY) { //TODO? auto pop menu? // UI_DrawStringNS(320,240,"THE END",UI_CENTER,20,colorWhite); MediaView_OnClose(); UI_PopMenu(); } } break; default: UI_DrawStringNS(320,240,"error while loading media menu (check console output)",UI_CENTER,20,colorWhite); break; } }
static void CG_DrawCinematic (int handle, float x, float y, float w, float h) { trap_CIN_SetExtents(handle, x, y, w, h); trap_CIN_DrawCinematic(handle); }