Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Documentation: Explained the original use of BlackOutlines()
  • Loading branch information
skyjake committed Feb 6, 2012
1 parent 0476e40 commit a03be63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doomsday/engine/portable/include/gl_tex.h
Expand Up @@ -63,6 +63,15 @@ uint8_t* ApplyColorKeying(uint8_t* pixels, int width, int height,
int pixelSize);

/**
* Sets the RGB color of transparent pixels along the image's non-transparent
* areas to black. When the image is then drawn with magnification,
* RGB interpolation along the edges will go to (0, 0, 0) while the alpha
* value is interpolated to zero. The end result is that the edges are
* highlighted against the background -- i.e., this is a cheap way to make
* the edges of small sprites stand out more clearly. The effect was originally
* used by jDoom on font characters and other such graphics to make them appear
* less blurry.
*
* @param pixels RGBA data. Input read here, and output written here.
* @param width Width of the image in pixels.
* @param height Height of the image in pixels.
Expand Down

0 comments on commit a03be63

Please sign in to comment.