FreeBSD Manual Pages
image_set_txcos(3) Arcan Lua API image_set_txcos(3) NAME image_set_txcos - Override the default texture coordinates for an ob- ject. SYNOPSIS nil image_set_txcos( vid, txco_t ) DESCRIPTION Some specific effects and tricks (or manually maintaining spritesheets or similar image packing options) require that texture coordinates are skewed. This can be achieved either in the vertex shader stage or by statically overriding the default. EXAMPLE function image_set_txcos0() a = load_image("test.png"); show_image(a); image_set_txcos(a, {0.5, 0.5, 1.0, 0.5, 1.0, 1.0, 1.0, 0.5}); end SEE ALSO: image_get_txcos(3) image_set_txcos_default(3) image_scale_txcos(3) image April 2025 image_set_txcos(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&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>