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

FreeBSD Manual Pages

  
 
  

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

NAME
     image_screen_coordinates  -  Lookup screen space coordinates for the speci-
     fied object.

SYNOPSIS
     x1,y1,x2,y2,x3,y3,x4,y4
     image_screen_coordinates( vid )

DESCRIPTION
     This function resolves the screen space coordinates of the four corners  of
     the  specified  vid, taking position, scale and rotation transform into ac-
     count.

NOTES
     1	    This does not include any vertex- stage transformations that may  be
	    applied by a non-standard shader.

EXAMPLE
     function image_screen_coordinates0()
	   a = fill_surface(64, 64, 255, 0, 0);
	   show_image(a);
	   move_image(a, 32, 32);
	   rotate_image(a, 145);
	   print( image_screen_coordinates(a) );
     end

image				   August 2026	     image_screen_coordinates(3)

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

home | help