GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
valid_vid(3) Arcan Lua API valid_vid(3)

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

true or false
valid_vid(

vid, type )

Due to the design decision to use a numerical type to reference the internal 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 secondary processing types.

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

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
June 2022 vidsys

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.