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

Go to the source code of this file.

Macros

#define CM_SetTrmEdgeSidedness(edge, bpl, epl, bitNum)
 
#define CM_SetTrmPolygonSidedness(v, plane, bitNum)
 

Macro Definition Documentation

#define CM_SetTrmEdgeSidedness (   edge,
  bpl,
  epl,
  bitNum 
)
Value:
{ \
if ( !(edge->sideSet & (1<<bitNum)) ) { \
float fl; \
fl = (bpl).PermutedInnerProduct( epl ); \
edge->side = (edge->side & ~(1<<bitNum)) | (FLOATSIGNBITSET(fl) << bitNum); \
edge->sideSet |= (1 << bitNum); \
} \
}
case const float
Definition: Callbacks.cpp:62
#define FLOATSIGNBITSET(f)
Definition: Math.h:68
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID

Definition at line 120 of file CollisionModel_contents.cpp.

#define CM_SetTrmPolygonSidedness (   v,
  plane,
  bitNum 
)
Value:
{ \
if ( !((v)->sideSet & (1<<bitNum)) ) { \
float fl; \
fl = plane.Distance( (v)->p ); \
/* cannot use float sign bit because it is undetermined when fl == 0.0f */ \
if ( fl < 0.0f ) { \
(v)->side |= (1 << bitNum); \
} \
else { \
(v)->side &= ~(1 << bitNum); \
} \
(v)->sideSet |= (1 << bitNum); \
} \
}
const GLdouble * v
Definition: glext.h:2936
case const float
Definition: Callbacks.cpp:62
tuple f
Definition: idal.py:89
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID
GLfloat GLfloat p
Definition: glext.h:4674

Definition at line 134 of file CollisionModel_contents.cpp.