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

cursor_setstorage - Use the storage defined by one video object as an accelerated mouse cursor.

nil
cursor_setstorage( vid, txcos )

This function works like image_sharestorage but with the target destination being the accelerated overlay cursor render path. The optional txcos argument should (if present) be an integer indexed table with exactly 8 elements 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 animating cursors or packing many cursors in the same vid.

1
using cursor_setstorage( WORLDID ) will disable the accelerated cursor path.

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

cursor_position(3) nudge_cursor(3) resize_cursor(3) move_cursor(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.