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

FreeBSD Manual Pages

  
 
  

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

NAME
     cursor_setstorage	-  Use the storage defined by one video object as an ac-
     celerated mouse cursor.

SYNOPSIS
     nil
     cursor_setstorage( vid, txcos )

DESCRIPTION
     This function works like image_sharestorage  but with the	target	destina-
     tion  being the accelerated overlay cursor render path. The optional txcos
     argument should (if present) be an integer indexed table with exactly 8 el-
     ements where each element (n) is 0 <= n <= 1 specifying [ul_x, ul_y,  ur_x,
     ur_y, lr_x, lr_y, ll_x, ll_y]. This can be used as a cheaper way of animat-
     ing cursors or packing many cursors in the same vid.

NOTES
     1	    using cursor_setstorage( WORLDID ) will disable the accelerated cur-
	    sor path.

EXAMPLE
     function cursor_setstorage0()
	   curs = fill_surface(8, 8, 255, 0, 0);
	   cursor_setstorage(curs);
	   resize_cursor(16, 16);
	   move_cursor(VRESW * 0.5, VRESH * 0.5);
     end

SEE ALSO:
     cursor_position(3) nudge_cursor(3) resize_cursor(3) move_cursor(3)

image				   August 2026		    cursor_setstorage(3)

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

home | help