|
|
@ -1,4 +1,8 @@
|
|
|
|
#pragma once
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// As if hardware is ever going to move away from 1.2
|
|
|
|
|
|
|
|
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef linux
|
|
|
|
#ifdef linux
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <CL/opencl.h>
|
|
|
|
#include <CL/opencl.h>
|
|
|
@ -7,9 +11,6 @@
|
|
|
|
// Good lord, windows.h overwrote the std::min() max() definitions
|
|
|
|
// Good lord, windows.h overwrote the std::min() max() definitions
|
|
|
|
#define NOMINMAX
|
|
|
|
#define NOMINMAX
|
|
|
|
#include <windows.h>
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
|
|
|
|
// As if hardware is ever going to move away from 1.2
|
|
|
|
|
|
|
|
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
|
|
|
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <CL/opencl.h>
|
|
|
|
#include <CL/opencl.h>
|
|
|
|
|
|
|
|
|
|
|
@ -20,17 +21,15 @@
|
|
|
|
#include <OpenCL/cl_gl_ext.h>
|
|
|
|
#include <OpenCL/cl_gl_ext.h>
|
|
|
|
#include <OpenCL/cl_ext.h>
|
|
|
|
#include <OpenCL/cl_ext.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "util.hpp"
|
|
|
|
#include <chrono>
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
//#include "CLCaster.h"
|
|
|
|
|
|
|
|
#include "Camera.h"
|
|
|
|
#include "Camera.h"
|
|
|
|
#include "Input.h"
|
|
|
|
#include "Input.h"
|
|
|
|
#include "LightController.h"
|
|
|
|
#include "LightController.h"
|
|
|
|
#include "LightHandle.h"
|
|
|
|
#include "LightHandle.h"
|
|
|
|
#include "map/Map.h"
|
|
|
|
#include "map/Map.h"
|
|
|
|
#include <chrono>
|
|
|
|
#include "util.hpp"
|
|
|
|
#include "imgui/imgui-SFML.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Srsly people who macro error codes are the devil
|
|
|
|
// Srsly people who macro error codes are the devil
|
|
|
|
#undef ERROR
|
|
|
|
#undef ERROR
|
|
|
|