FreeBSD Manual Pages
image_set_txcos_default(3) Arcan Lua API image_set_txcos_default(3) NAME image_set_txcos_default - Revert to the default set of texture mapping coordinates. SYNOPSIS nil image_set_txcos_default( vid, mirror ) DESCRIPTION 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. EXAMPLE 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 SEE ALSO: image_set_txcos(3) image_get_txcos(3) image April 2025 image_set_txcos_default(3)
NAME | SYNOPSIS | DESCRIPTION | EXAMPLE | SEE ALSO:
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=image_set_txcos_default&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>