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

FreeBSD Manual Pages

  
 
  

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

NAME
     valid_vid	-  Check  if  vid  matches  a  valid object or not, also accepts
     NULL/BADID arguments.

SYNOPSIS
     true or false
     valid_vid( vid, type )

DESCRIPTION
     Due to the design decision to use a numerical type to reference the  inter-
     nal  engine  type most visible entities, a number of situations arise where
     one might need to test if a specific numeric value maps to a  corresponding
     engine  object  before  calling some functions that require a valid VID  or
     even a valid VID  that is also connected to a  frameserver  or  other  sec-
     ondary processing types.

NOTES
     1	    Possible  values for type  are TYPE_FRAMESERVER  and TYPE_ 3 DOBJECT
	    .  requirement

EXAMPLE
     function valid_vid0()
	   a = fill_surface(32, 32, 255, 0, 0, 0);
	   print(valid_vid(a));
	   print(valid_vid(NULL));
	   print(valid_vid(BADID));
     end

vidsys				   August 2026			    valid_vid(3)

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

home | help