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

FreeBSD Manual Pages

  
 
  

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

NAME
       storepush_video_context	-  Render  the current video context to	an ob-
       ject, then push the context.

SYNOPSIS
       contextind, newvid
       storepush_video_context()

DESCRIPTION
       The storepush/storepop category of functions are	similar	to the regular
       push/pop	context	functions with the addition that the new context  will
       contain	an  object  with  a  screenshot	of the previous	context	in its
       storage.

EXAMPLE
       function	storepush_video_context0()
	     a = fill_surface(100, 100,	0, 255,	0);
	     b = fill_surface(100, 100,	255, 0,	0);
	     show_image({a, b});
	     move_image(b, VRESW - 100,	VRESH -	100);
	     c = storepop_video_context();
	     show_image(c);
	     move_image(c, 50, 50, 50);
	     move_image(c, 0, 0, 50);
       end

SEE ALSO:
       storepop_video_context(3) push_video_context(3) pop_video_context(3)

vidsys				  April	2025	    storepush_video_context(3)

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

home | help