2014-07-08 03:11:14 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Precompiled header file. Place all system includes here with appropriate #defines for different operating systems and compilers.
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
#define NOMINMAX
|
|
|
|
#define _USE_MATH_DEFINES
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define basename(x) _strdup(x)
|
|
|
|
#define snprintf _snprintf
|
|
|
|
#define snprintf_s _snprintf_s
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#define EMBER_OS "WIN"
|
|
|
|
|
|
|
|
#include <SDKDDKVer.h>
|
|
|
|
#include <windows.h>
|
|
|
|
#elif __APPLE__
|
|
|
|
#define EMBER_OS "OSX"
|
|
|
|
#else
|
|
|
|
#include <libgen.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#define EMBER_OS "LNX"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//Standard headers.
|
|
|
|
#include <algorithm>
|
2014-09-01 00:25:15 -04:00
|
|
|
#include <chrono>
|
2014-07-08 03:11:14 -04:00
|
|
|
#include <complex>
|
2014-09-01 00:25:15 -04:00
|
|
|
#include <cstdint>
|
2014-07-08 03:11:14 -04:00
|
|
|
#include <fstream>
|
|
|
|
#include <functional>
|
2014-09-01 00:25:15 -04:00
|
|
|
#include <inttypes.h>
|
2014-07-08 03:11:14 -04:00
|
|
|
#include <iostream>
|
|
|
|
#include <iomanip>
|
|
|
|
#include <limits>
|
|
|
|
#include <malloc.h>
|
|
|
|
#include <math.h>
|
2014-09-01 00:25:15 -04:00
|
|
|
#include <memory>
|
2014-07-08 03:11:14 -04:00
|
|
|
#include <numeric>
|
|
|
|
#include <ostream>
|
|
|
|
#include <sstream>
|
|
|
|
#include <sys/types.h>
|
2014-09-01 00:25:15 -04:00
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <thread>
|
2014-07-08 03:11:14 -04:00
|
|
|
#include <time.h>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
//Third party headers.
|
2014-09-01 00:25:15 -04:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include "libxml/parser.h"
|
|
|
|
#else
|
|
|
|
#include "libxml2/libxml/parser.h"
|
|
|
|
#endif
|
2014-07-08 03:11:14 -04:00
|
|
|
|
|
|
|
//Intel's Threading Building Blocks is what's used for all threading.
|
|
|
|
#include "tbb/task_group.h"
|
|
|
|
#include "tbb/parallel_for.h"
|
|
|
|
#include "tbb/task_scheduler_init.h"
|
|
|
|
|
|
|
|
#define GLM_FORCE_RADIANS
|
|
|
|
|
|
|
|
//glm is what's used for matrix math.
|
|
|
|
#include "glm/glm.hpp"
|
2014-12-06 00:05:09 -05:00
|
|
|
#include "glm/detail/type_int.hpp"
|
2014-07-08 03:11:14 -04:00
|
|
|
#include "glm/gtc/matrix_transform.hpp"
|
|
|
|
#include "glm/gtc/type_ptr.hpp"
|
|
|
|
#include "glm/gtx/string_cast.hpp"
|
|
|
|
|
|
|
|
using namespace tbb;
|
|
|
|
using namespace std;
|
2014-09-01 00:25:15 -04:00
|
|
|
using namespace std::chrono;
|
2014-12-06 00:05:09 -05:00
|
|
|
using glm::uint;
|
|
|
|
using glm::uint16;
|