예제 #1
0
void action_show_video(string fname, bool windowed, bool loop) {    // Initialize the COM library.
    HRESULT hr = CoInitialize(NULL);
    if (FAILED(hr))
    {
	   MessageBox(NULL, "Failed to initialize COM library.", "ERROR", MB_ICONERROR | MB_OK);
        return;
    }
	
	int vid = video_add(fname);
	video_set_scale(vid, true);
	video_set_fullscreen(vid, windowed);
	video_start(vid, loop);

    CoUninitialize();
}
예제 #2
0
static int moonbase_video_set_fullscreen( lua_State *s )
{
	video_set_fullscreen( luaL_checkint(s, 1) );
	return 0;
}