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

image_hit - Test if the visible region of a specific object covers a specific point in screen space.

true or false
image_hit( vid, x, y )

1
This function works by applying the active transform of the bounding volume and then projects using the currently active output projection and finally performs a point-in-polygon test for the two triangles. This is performed even for simpler cases (e.g. non-hierarchical translations etc.).

function image_hit0()
      a = fill_surface(32, 32, 0, 255, 0);
      rotate_image(a, 45);
      show_image(a);
      if (image_hit(a, 0, 0) == false and
            image_hit(a, 16, 16) == true) then
            print("OK");
      else
            print("Fail");
      end
end

pick_items(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.