$search
00001 #pragma once 00002 00003 #ifndef _HEADERS_H_ 00004 #define _HEADERS_H_ 00005 00006 #ifdef WIN32 00007 #ifndef WIN32_LEAN_AND_MEAN 00008 #define WIN32_LEAN_AND_MEAN 00009 #endif 00010 #ifndef _WIN32_WINNT 00011 #define _WIN32_WINNT 0x0500 00012 #endif 00013 #define NOMINMAX 00014 #include <windows.h> 00015 #else 00016 #include <time.h> 00017 #include <sys/time.h> 00018 #endif 00019 00020 #ifdef WIN32 00021 #include <GL/glew.h> 00022 #include <GL/gl.h> 00023 #include <GL/glu.h> 00024 #else 00025 #include <GL/gl.h> 00026 #include <GL/glu.h> 00027 #include <GL/glext.h> 00028 #endif 00029 00030 // OpenCV2.x include has extra directory level 00031 #include <opencv/highgui.h> 00032 00033 #include <stdio.h> 00034 #include <stdlib.h> 00035 #include <stddef.h> 00036 #include <string.h> 00037 #include <math.h> 00038 #include <vector> 00039 #include <algorithm> 00040 #include <stdexcept> 00041 00042 #ifdef WIN32 00043 #define snprintf _snprintf 00044 template <typename TYPE> inline TYPE round(TYPE a) { 00045 return ::floor(a + (TYPE)0.5); 00046 } 00047 #endif 00048 00049 #endif // _HEADERS_H_