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

image_matchstorage - test if two vids share the same underlying storage

true or false
image_matchstorage( v1, v2 )

This function can be used to determine if two vids share the same underlying backing store. This can be helpful in cases where one might need transition based on visual properties that are inherent to the backing store, as there are no strong equality tests for regular vids as they are all treated as unique.

function image_matchstorage0()
      a = fill_surface(32, 32, 0, 255, 0);
      c = fill_surface(32, 32, 255, 0, 0);
      b = null_surface(32, 32);
      image_sharestorage(a, b);
      assert(image_matchstorage(a, b) == true);
      assert(image_matchstorage(a, c) == false);
      image_sharestorage(a, c);
      assert(image_matchstorage(a, c) == true);
end

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.