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

FreeBSD Manual Pages

  
 
  

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

NAME
     image_loaded - Query the status of an asynchronous video object source.

SYNOPSIS
     0 or 1
     image_loaded( vid )

DESCRIPTION
     For asynchronous image operations, the completion of a load can potentially
     stall  for  an infinite time. This function queries the status of the asyn-
     chronous load, and returns true (1) if the image  has  loaded  and  decoded
     successfully or 0 if it is still in the process of being loaded.

EXAMPLE
     function image_loaded0()
	   a = load_image_asynch("test.png", function(source, status)
		 print(status.kind, image_loaded(source)); end);
	   print(a, image_loaded(source));
     end

SEE ALSO:
     load_image_asynch(3) image_pushasynch(3)

image				   August 2026			 image_loaded(3)

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

home | help