Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
image_surface_resolve(3)	 Arcan Lua API	      image_surface_resolve(3)

NAME
       image_surface_resolve  -	 Retrieve  current  image properties in	world-
       space.

SYNOPSIS
       proptbl
       image_surface_resolve( vid )

DESCRIPTION
       Most of the surface_ class of functions return results in object	space.
       This function will traverse the related set of object  hierarchies  and
       resolve	the  world-space  ones	that will be used when compositing the
       output.

NOTES
       1      The fields used in proptbl are: (x, y, z,	width, height,	depth,
	      angle, roll, pitch, yaw, opacity and order).

       2      this  function  has  a  highly variable cost since the rendering
	      pipeline normallys caches	both resolved properties and resulting
	      transformation matrices, if possible.

EXAMPLE
       function	image_surface_resolve0()
	     a = fill_surface(32, 32, 255, 0, 0);
	     b = fill_surface(64, 64, 0, 255, 0);
	     link_image(b, a);
	     move_image(a, 100,	100);
	     move_image(b, 50, 50);
	     props = image_surface_resolve(b);
	     print(string.format("%d %d", props.x, props.y));
       end

SEE ALSO:
       image_surface_initial_properties(3) image_surface_properties(3)

image				  April	2025	      image_surface_resolve(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=image_surface_resolve&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help