declaration:
switch_default_texmode(texmode) => nil
OpenGL exposes a number of different texturing mode flags for the st-uv coordinates which affects, among other things, sampling. This function changes how these are defined for newly created resources. This is a global state.
Allowed values are:
TEX_REPEAT TEX_CLAMP
and TEX_CLAMP is the default value. This means that any sampling outside 0.0-1.0 range, will be clamped to those values.
TEX_REPEAT is typically used in conjunction with scale- factored texture coordinates.
related functions:
[image_scale_txcos] [switch_default_scalemode] [switch_default_texmode]
Wiki: Video Functions
Wiki: image_scale_txcos
Wiki: switch_default_scalemode
Wiki: switch_default_texmode