push_video_context - Store the current video context and make it
unreachable.
All video objects are bound to (at least) one rendering context. The currently
active context is managed on a stack. Pushing involves saving the current
context on a stack, possibly deallocating data that can be reloaded or
regenerated.
function push_video_context0()
QSZ = math.floor(VRESW * 0.5);
a = fill_surface(QSZ, 255, 0, 0);
b = load_image("test.png");
c = load_movie("test.avi", FRAMESERVER_LOOP, function(s, state)
if (state.kind == "resized") then
play_movie(c);
end
end);
resize_image({b, c}, QSZ, QSZ);
show_image({a, b, c});
move_image(b, QSZ, 0);
move_image(c, 0, QSZ);
push_video_context();
pop_video_context();
end
pop_video_context(3) storepop_video_context(3)
storepush_video_context(3)