Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
image_set_txcos(3)		  Arcan Lua API 	      image_set_txcos(3)

NAME
     image_set_txcos - Override the default texture coordinates for an object.

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				   August 2026		      image_set_txcos(3)

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+15.1.quarterly>

home | help