GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
push_video_context(3) Arcan Lua API push_video_context(3)

push_video_context - Store the current video context and make it unreachable.

nil
push_video_context()

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)

June 2022 vidsys

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.