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

image_surface_properties - Retrieve the current properties of the specified object.

proptbl
image_surface_properties( vid, dt )

There are a number of attributes tracked for each object. Those that directly influence rendering and are modifiable through transformations (move, rotate, scale, ...) may vary with time. This function can be used to retrieve either the current state of such attributes, or resolve what the state would be at a future point in time (by providing the dt argument).

1
The fields used in proptbl are: (x, y, z, width, height, angle, roll, pitch, yaw, opacity and order).
2
The values retrieved are expressed in local (object) coordinate space.

function image_surface_properties0()
      a = fill_surface(32, 32, 255, 0, 0);
      show_image(a);
      move_image(a, 100, 100, 100);
      cprops = image_surface_properties(a);
      fprops = image_surface_properties(a, 50);
      print(string.format("now(x,y): %d, %d -- later(x,y): %d, %d",
            cprops.x, cprops.y, fprops.x, fprops.y));
end

image_surface_initial_properties(3) image_surface_resolve_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.