Texture_set_border - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Notation

Description

Sets the border color of the texture used when blending to non existant pixels. For instance if you have are rendering a billboard with a transparent cutout, this will change the color the pixels at the edges blend with.

Parameters

  • texid, index of the texture
  • r, red color component
  • g, blue color component
  • b, green color component
  • a, alpha color component

Return Values

This function has no return values.

Example Call

texture_set_border(tex, 255, 0, 0, 0.5);

Demonstrates setting the border color of a texture to half opaque pure red. NOTOC