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

copy_image_transform - Duplicate the transform chain of one VID and transfer it to another.

nil
copy_image_transform( srcvid, dstvid )

This function traverses the entire transform chain of the srcvid, copying each transform step and attaches it to a new chain in dstvid.

1
This will also initiate a recursive rendering re-order.
2
This will irrevocably alter the origw,origh properties in the destination order (in order for the scale transform to be usable).
3
The original transform chain in the destination VID will be removed.
4
src and dst cannot be the same VID .
5
Transformations are stored relative of the source objects coordinate space and, with the exception of scale, won't be translated.

function copy_image_transform0()
      a = fill_surface(32, 32, 255, 0, 0);
      blend_image(a, 0.5);
      move_image(a, 200, 200, 100);
      rotate_image(a, 350, 100);
      blend_image(a, 1.0, 100);
      b = fill_surface(32, 32, 0, 255, 0);
      copy_image_transform(a, b);
      instant_image_transform(a);
end

function copy_image_transform0()
      a = fill_surface(32, 32, 0, 255, 0);
      copy_image_transform(a, a);
end

function copy_image_transform1()
      copy_image_transform(-10, nil);
end

copy_surface_properties(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.