News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

tnlTypes.h File Reference

tnlTypes.h File Reference

#include <stdlib.h>
#include <new>

Namespaces

namespace  TNL

GeneralMath Math Helpers

Some general numeric utility functions.

#define DeclareTemplatizedMinMax(type)

Defines

#define NULL   0
#define __EQUAL_CONST_F   F32(0.000001)
 Constant float epsilon used for F32 comparisons.

#define BIT(x)   (1 << (x))


Define Documentation

#define NULL   0
 

#define DeclareTemplatizedMinMax type   ) 
 

Value:

inline type getMin(type a, type b) { return a > b ? b : a; } \
 inline type getMax(type a, type b) { return a > b ? a : b; }

#define BIT  )     (1 << (x))