doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
Lib.h File Reference
#include "Heap.h"
#include "containers/List.h"
#include "math/Simd.h"
#include "math/Math.h"
#include "math/Random.h"
#include "math/Complex.h"
#include "math/Vector.h"
#include "math/Matrix.h"
#include "math/Angles.h"
#include "math/Quat.h"
#include "math/Rotation.h"
#include "math/Plane.h"
#include "math/Pluecker.h"
#include "math/Polynomial.h"
#include "math/Extrapolate.h"
#include "math/Interpolate.h"
#include "math/Curve.h"
#include "math/Ode.h"
#include "math/Lcp.h"
#include "bv/Sphere.h"
#include "bv/Bounds.h"
#include "bv/Box.h"
#include "bv/Frustum.h"
#include "geometry/DrawVert.h"
#include "geometry/JointTransform.h"
#include "geometry/Winding.h"
#include "geometry/Winding2D.h"
#include "geometry/Surface.h"
#include "geometry/Surface_Patch.h"
#include "geometry/Surface_Polytope.h"
#include "geometry/Surface_SweptSpline.h"
#include "geometry/TraceModel.h"
#include "Str.h"
#include "Token.h"
#include "Lexer.h"
#include "Parser.h"
#include "Base64.h"
#include "CmdArgs.h"
#include "containers/BTree.h"
#include "containers/BinSearch.h"
#include "containers/HashIndex.h"
#include "containers/HashTable.h"
#include "containers/StaticList.h"
#include "containers/LinkList.h"
#include "containers/Hierarchy.h"
#include "containers/Queue.h"
#include "containers/Stack.h"
#include "containers/StrList.h"
#include "containers/StrPool.h"
#include "containers/VectorSet.h"
#include "containers/PlaneSet.h"
#include "hashing/CRC32.h"
#include "hashing/MD4.h"
#include "hashing/MD5.h"
#include "Dict.h"
#include "LangDict.h"
#include "BitMsg.h"
#include "MapFile.h"
#include "Timer.h"

Go to the source code of this file.

Classes

class  idLib
 
class  idException
 

Macros

#define NULL   ((void *)0)
 
#define BIT(num)   ( 1 << ( num ) )
 
#define MAX_STRING_CHARS   1024
 
#define MAX_WORLD_COORD   ( 128 * 1024 )
 
#define MIN_WORLD_COORD   ( -128 * 1024 )
 
#define MAX_WORLD_SIZE   ( MAX_WORLD_COORD - MIN_WORLD_COORD )
 

Typedefs

typedef unsigned char byte
 
typedef unsigned short word
 
typedef unsigned int dword
 
typedef unsigned int uint
 
typedef unsigned long ulong
 
typedef int qhandle_t
 

Functions

dword PackColor (const idVec3 &color)
 
void UnpackColor (const dword color, idVec3 &unpackedColor)
 
dword PackColor (const idVec4 &color)
 
void UnpackColor (const dword color, idVec4 &unpackedColor)
 
short BigShort (short l)
 
short LittleShort (short l)
 
int BigLong (int l)
 
int LittleLong (int l)
 
float BigFloat (float l)
 
float LittleFloat (float l)
 
void BigRevBytes (void *bp, int elsize, int elcount)
 
void LittleRevBytes (void *bp, int elsize, int elcount)
 
void LittleBitField (void *bp, int elsize)
 
void Swap_Init (void)
 
bool Swap_IsBigEndian (void)
 
void SixtetsForInt (byte *out, int src)
 
int IntForSixtets (byte *in)
 
template<class T >
ID_INLINE T Max (T x, T y)
 
template<class T >
ID_INLINE T Min (T x, T y)
 

Variables

idVec4 colorBlack
 
idVec4 colorWhite
 
idVec4 colorRed
 
idVec4 colorGreen
 
idVec4 colorBlue
 
idVec4 colorYellow
 
idVec4 colorMagenta
 
idVec4 colorCyan
 
idVec4 colorOrange
 
idVec4 colorPurple
 
idVec4 colorPink
 
idVec4 colorBrown
 
idVec4 colorLtGrey
 
idVec4 colorMdGrey
 
idVec4 colorDkGrey
 

Macro Definition Documentation

#define BIT (   num)    ( 1 << ( num ) )

Definition at line 92 of file Lib.h.

#define MAX_STRING_CHARS   1024

Definition at line 95 of file Lib.h.

#define MAX_WORLD_COORD   ( 128 * 1024 )

Definition at line 98 of file Lib.h.

#define MAX_WORLD_SIZE   ( MAX_WORLD_COORD - MIN_WORLD_COORD )

Definition at line 100 of file Lib.h.

#define MIN_WORLD_COORD   ( -128 * 1024 )

Definition at line 99 of file Lib.h.

#define NULL   ((void *)0)

Definition at line 88 of file Lib.h.

Typedef Documentation

typedef unsigned char byte

Definition at line 75 of file Lib.h.

typedef unsigned int dword

Definition at line 77 of file Lib.h.

typedef int qhandle_t

Definition at line 81 of file Lib.h.

typedef unsigned int uint

Definition at line 78 of file Lib.h.

typedef unsigned long ulong

Definition at line 79 of file Lib.h.

typedef unsigned short word

Definition at line 76 of file Lib.h.

Function Documentation

float BigFloat ( float  l)

Definition at line 282 of file Lib.cpp.

int BigLong ( int  l)

Definition at line 280 of file Lib.cpp.

void BigRevBytes ( void bp,
int  elsize,
int  elcount 
)

Definition at line 284 of file Lib.cpp.

short BigShort ( short  l)

Definition at line 278 of file Lib.cpp.

int IntForSixtets ( byte in)

Definition at line 289 of file Lib.cpp.

void LittleBitField ( void bp,
int  elsize 
)

Definition at line 286 of file Lib.cpp.

float LittleFloat ( float  l)

Definition at line 283 of file Lib.cpp.

int LittleLong ( int  l)

Definition at line 281 of file Lib.cpp.

void LittleRevBytes ( void bp,
int  elsize,
int  elcount 
)

Definition at line 285 of file Lib.cpp.

short LittleShort ( short  l)

Definition at line 279 of file Lib.cpp.

template<class T >
ID_INLINE T Max ( T  x,
T  y 
)

Definition at line 158 of file Lib.h.

template<class T >
ID_INLINE T Min ( T  x,
T  y 
)

Definition at line 159 of file Lib.h.

dword PackColor ( const idVec3 color)

Definition at line 190 of file Lib.cpp.

dword PackColor ( const idVec4 color)

Definition at line 147 of file Lib.cpp.

void SixtetsForInt ( byte out,
int  src 
)

Definition at line 288 of file Lib.cpp.

void Swap_Init ( void  )

Definition at line 525 of file Lib.cpp.

bool Swap_IsBigEndian ( void  )

Definition at line 563 of file Lib.cpp.

void UnpackColor ( const dword  color,
idVec3 unpackedColor 
)

Definition at line 211 of file Lib.cpp.

void UnpackColor ( const dword  color,
idVec4 unpackedColor 
)

Definition at line 169 of file Lib.cpp.

Variable Documentation

idVec4 colorBlack

Definition at line 115 of file Lib.cpp.

idVec4 colorBlue

Definition at line 119 of file Lib.cpp.

idVec4 colorBrown

Definition at line 126 of file Lib.cpp.

idVec4 colorCyan

Definition at line 122 of file Lib.cpp.

idVec4 colorDkGrey

Definition at line 129 of file Lib.cpp.

idVec4 colorGreen

Definition at line 118 of file Lib.cpp.

idVec4 colorLtGrey

Definition at line 127 of file Lib.cpp.

idVec4 colorMagenta

Definition at line 121 of file Lib.cpp.

idVec4 colorMdGrey

Definition at line 128 of file Lib.cpp.

idVec4 colorOrange

Definition at line 123 of file Lib.cpp.

idVec4 colorPink

Definition at line 125 of file Lib.cpp.

idVec4 colorPurple

Definition at line 124 of file Lib.cpp.

idVec4 colorRed

Definition at line 117 of file Lib.cpp.

idVec4 colorWhite

Definition at line 116 of file Lib.cpp.

idVec4 colorYellow

Definition at line 120 of file Lib.cpp.