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

image_set_txcos_default - Revert to the default set of texture mapping coordinates.

nil
image_set_txcos_default( vid, mirror )

The engine, by default, manages texture coordinates for video objects. In some rare instances however, the developer may want to hand-tune these in the pre-rendering stages rather than modifying the coordinates in a shader. To revert back to the default behavior, this function can be used. If mirror is set to a non-zero integer, the mapping generate will be flipped along the Y axis to compensate for the arcan coordinate system having origo in the upper left corner whileas Open GL uses the lower left.

function image_set_txcos_default0()
      a = random_surface(64, 64);
      b = null_suface(32, 32);
      image_set_txcos(a, {0.1, 0.5, 0.2, 0.4, 0.8, 0.2, 0.6, 0.7});
      show_image({a, b});
      image_sharestorage(a, b);
      image_set_txcos_default(b);
end

image_set_txcos(3) image_get_txcos(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.