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

image_mask_set - Set a status flag on the specified object

nil
image_mask_set( vid, maskval )

Images that are linked to eachother via link_image gets a number of its attributes redefined to be relative the the parent it is linked again. At times, not all attributes are relevant to inherit, and these can be controlled through the image_mask_ set of functions.

The currently valid maskvals are:

MASK_UNPICKABLE : if set, the image will be ignored for picking operations

MASK_LIVING : (default) if set, the image will be deleted when the parent expires.

MASK_POSITION : (default) image coordinate system origo

MASK_OPACITY : (default) image opacity

MASK_ROTATION : (default) image rotation angle

MASK_SCALE : (default) reserved, no-op

MASK_MAPPING : if set, the image will use the texture coordinate set of its (non-world) parent

1
an invalid maskval is considered a terminal state transition.

function image_mask_set0()
      a = fill_surface(32, 32, 255, 0, 0);
      b = instance_image(a);
      show_image({a, b});
      move_image(a, 32, 32);
      rotate_image(a, 120);
      image_mask_clearall(b);
      image_mask_set(b, MASK_ORIENTATION);
end

function image_mask_set0()
      image_mask_set(WORLDID, math.random(1000));
end

image_mask_toggle(3) image_mask_clear(3) image_mask_clearall(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.