#ifndef TXS_GLOBALS_GUARD #define TXS_GLOBALS_GUARD #include "../mathlib/mathlib.h" #include "../ADFCreator_debug_flags.h" #include #include using namespace std; typedef double TXS_REAL; // these values are tuned for the tetrus #define UNITS_PER_PIXEL 0.001 // texture scale #define NHOOD_PIXELS 17 // some odd number // the number of Gaussian pyramid levels to use // Wei&Levoy use 4 #define NUM_PYLEVS 4 char* get_time_tag(); namespace TXS { template typename _T::iterator nextIterWrapped(_T &l, typename _T::iterator iter); template typename _T::iterator nextNextIterWrapped(_T &l, typename _T::iterator iter); } #define TEST_ASSERT(x, fail_msg) { \ bool res = (x); \ if(res == false) { \ __ERROR__("Test assertion failed: " << fail_msg); \ } \ } // from PointJitterer double random_unit(); #endif /* TXS_GLOBALS_GUARD */