src/common.h
author Radek Brich <radek.brich@devl.cz>
Fri, 30 Nov 2007 00:44:51 +0100
branchpyrit
changeset 21 79b516a3803d
parent 20 f22952603f29
permissions -rw-r--r--
naive color driven sub-sampling slightly optimized KdTree::nearest_intersection fixed bug in Box::intersect fixed stripes on spheres in spheres_ao.py (was caused by AO distance) new KdTree property: max_depth minor changes in realtime.py

#ifndef COMMON_H
#define COMMON_H

#include <stdio.h>
#include <stdarg.h>
#include <float.h>

#define Eps 1e-6
#define Inf FLT_MAX

inline void infomsg(const char *format, ...)
{
#ifndef PYRIT_QUITE
	va_list ap;
	va_start(ap, format);
	vprintf(format, ap);
	va_end(ap);
#endif
}

#endif