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

FreeBSD Manual Pages

  
 
  

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

NAME
       current_context_usage  -	Return how many	cells the current context has,
       and how many of those cells that	are currently unused.

SYNOPSIS
       total, used
       current_context_usage()

DESCRIPTION
       This function sweeps the	VID  pool of the currently active context  and
       counts  O(n)  how many of these are in use and subsequently returns how
       many slots are available	in total, and how many are maked as used.  The
       number of free slots can	be found by subtracting	used from total.

EXAMPLE
       function	current_context_usage0()
	     a = fill_surface(32, 32, 0, 0, 0);
	     print(current_context_usage());
	     b = fill_surface(32, 32, 0, 0, 0);
	     print(current_context_usage());
       end

vidsys				  April	2025	      current_context_usage(3)

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

home | help