Browse Source

Add algorithm description comment for DrawLine.

pull/109/head
Sergey Semushin 7 years ago committed by Anders Jenbo
parent
commit
a87f1450e7
  1. 6
      Source/engine.cpp

6
Source/engine.cpp

@ -2094,6 +2094,12 @@ void engine_draw_pixel(int sx, int sy)
// * global variable instead of reverse flag // * global variable instead of reverse flag
// * condition for pixels_left < 0 removed // * condition for pixels_left < 0 removed
/*
Symmetric Double Step Line Algorithm
by Brian Wyvill
from "Graphics Gems", Academic Press, 1990
*/
#define GG_SWAP(A, B) \ #define GG_SWAP(A, B) \
{ \ { \
(A) ^= (B); \ (A) ^= (B); \

Loading…
Cancel
Save