Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
push_video_context(3)		 Arcan Lua API		 push_video_context(3)

NAME
       push_video_context  -  Store  the current video context and make	it un-
       reachable.

SYNOPSIS
       nil
       push_video_context()

DESCRIPTION
       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.

EXAMPLE
       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

SEE ALSO:
       pop_video_context(3)   storepop_video_context(3)	  storepush_video_con-
       text(3)

vidsys				  April	2025		 push_video_context(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=push_video_context&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help