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)