From abb96210803ad8489dc2698e703e1b386268b812 Mon Sep 17 00:00:00 2001 From: MitchellHansen Date: Sat, 23 Sep 2017 13:50:04 -0700 Subject: [PATCH] Added main.cpp header --- src/main.cpp | 78 ++++++++++++++++++---------------------------------- 1 file changed, 27 insertions(+), 51 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index eab7923..4699ec5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,57 +1,33 @@ -#ifdef linux -#include -#include + +/** + * + * Title: Voxel Raycaster + * Author: Mitchell Hansen + * License: Apache 2.0 + * + * A little help from: + * John Amanatides & Andrew Woo: A Fast Voxel Traversal Algorithm forRay Tracing + * Samuli Laine & Tero Karras: Efficient Sparse Voxel Octrees + * + * This project should not be viewed as a product or really anything other than + * a cool little example on how real time volumetric ray marching is becoming + * very possible on todays hardware. Don't expect this program to work on your hardware, + * preform as expected, have documentation, walk your dog, etc. + * + */ + +/** + * TODO: + * - Inconsistent lighting constants. GUI manipulation + * Ancillary settings buffer and memory controller + * - Attachment lookup and aux buffer, contour lookup & masking + * - Traversal algorithm + related stacks and data structures + * - Octree, Map interface with the GPU + * - Octree, Map refactoring + */ -#elif defined _WIN32 -// Good lord, windows.h overwrote the std::min() max() definitions -#define NOMINMAX -#include - -// As if hardware is ever going to move away from 1.2 -#define CL_USE_DEPRECATED_OPENCL_1_2_APIS -#include -#include - -#elif defined TARGET_OS_MAC -#include -#include -#include -#include -#include -#endif - -#include "util.hpp" -#include -#include -#include -#include -#include "map/Old_Map.h" -#include "CLCaster.h" -#include "Vector4.hpp" -#include "Camera.h" -#include "Input.h" -#include "Pub_Sub.h" -#include "LightController.h" -#include "LightHandle.h" -#include "imgui/imgui-SFML.h" -#include "imgui/imgui.h" -#include "map/Map.h" - -// Srsly people who macro error codes are the devil -#undef ERROR -#include "Logger.h" #include "Application.h" - -// TODO: -// - Inconsistent lighting constants. GUI manipulation -// Ancillary settings buffer and memory controller -// - Attachment lookup and aux buffer, contour lookup & masking -// - Traversal algorithm + related stacks and data structures -// - Octree, Map interface with the GPU -// - Octree, Map refactoring - - int main() { Application application;