doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
CDIB.cpp File Reference
#include "../../idlib/precompiled.h"
#include "math.h"
#include "CDIB.h"

Go to the source code of this file.

Macros

#define BIG_DISTANCE   10000000L
 
#define DIST(r1, g1, b1, r2, g2, b2)
 

Macro Definition Documentation

#define BIG_DISTANCE   10000000L

Definition at line 42 of file CDIB.cpp.

#define DIST (   r1,
  g1,
  b1,
  r2,
  g2,
  b2 
)
Value:
(long) (3L*(long)((r1)-(r2))*(long)((r1)-(r2)) + \
4L*(long)((g1)-(g2))*(long)((g1)-(g2)) + \
2L*(long)((b1)-(b2))*(long)((b1)-(b2)))
Definition: eax4.h:1413

Definition at line 44 of file CDIB.cpp.