Texture_set_interpolation_ext - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Sets whether textures bound to the given sampler stage have linear interpolation enabled. Linear interpolation will blur pixels in between the pixels of your images, specifically if the image or polygon/primitive occupies a screen larger than it has pixels in its texture to accommodate this will resolve the blocky look of the primitive by interpolating the pixels in between making them blend smoothly together. This may also improve the quality of scaling and rotating sprites or other images.

Parameters

Parameter Data Type Description
stage unsigned index of the sampler stage to change
enable boolean whether or not to use linear interpolation

Return Values

void: This function does not return anything.

Example Call

// demonstrates enabling linear texture interpolation
texture_set_interpolation_ext(0, true);

NOTOC