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
delete_image(3) Arcan Lua API delete_image(3)

delete_image - Delete a video object and associated resources.

nil
delete_image( vid )

This function deletes vid, any attached frameservers and linked images without the MASK_LIVING flag cleared.

1
Trying to delete a non-existing image is considered a terminal state transition. The valid_vid function can be used as a last resort to to determine if a number maps to a valid vid or not, but is in many cases a sign of bad design.
2
In a LWA build, deleting WORLDID is a terminal state object. On other platforms it results in the default rendertarget being dropped. This can be used to save memory in some cases where rendering goes strictly through manually defined rendertargets.
3
If the underlying object is in an asynchronous load state, the load operation will be completed first.

function delete_image0()
      valid = fill_surface(32, 32, 255, 0, 0, 0);
      delete_image(valid);
end

function delete_image0()
      delete_image(WORLDID);
end

function delete_image1()
      delete_image();
end

function delete_image2()
      delete_image(BADID);
end

function delete_image3()
      delete_image(-1);
end

expire_image(3)

June 2022 image

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.