Cleaned up includes, fixed compiler warning

master
mitchellhansen 7 years ago
parent bb8f87267b
commit fb6557fba2

@ -1,4 +1,5 @@
#pragma once
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
#include <Vector4.hpp>
#include <vector>
#include <iostream>

@ -1,7 +1,7 @@
#pragma once
#include <list>
#include <mutex>
#include <Logger.h>
#include <list>
/**
*

@ -1,11 +1,14 @@
#pragma once
#include <SFML/Graphics.hpp>
#include <iostream>
#include <list>
#include "Event.hpp"
#include <memory>
#include <string>
#include <SFML/Graphics.hpp>
#include "Event.hpp"
#include "Pub_Sub.h"
#include "Gui.h"
#include <string>
#include "Logger.h"
#include "LightHandle.h"
/**
*
@ -47,9 +50,6 @@ private:
std::vector<sf::Keyboard::Key> held_keys;
std::vector<sf::Mouse::Button> held_mouse_buttons;
// TODO: What the hell was I using these for?
std::vector<bool> keyboard_flags;
std::vector<bool> mouse_flags;
private:

@ -2,10 +2,10 @@
#include <SFML/System/Vector3.hpp>
#include <list>
#include <numeric>
#include "util.hpp"
#include "Pub_Sub.h"
#include "CLCaster.h"
#include "LightHandle.h"
#include "Pub_Sub.h"
#include "util.hpp"
/**
* Light Handle :

@ -1,10 +1,10 @@
#pragma once
#include <SFML/Graphics.hpp>
#include <util.hpp>
#include <memory>
#include <SFML/Graphics.hpp>
#include "Gui.h"
#include "Pub_Sub.h"
#include "util.hpp"
#include "Vector4.hpp"
#include "Gui.h"
struct LightPrototype;

@ -1,6 +1,6 @@
#pragma once
#include <iostream>
#include <fstream>
#include <iostream>
#undef ERROR
class Logger {

@ -1,8 +1,9 @@
#include <SFML/Network.hpp>
#pragma once
#include <list>
#include <thread>
#include <SFML/Network.hpp>
#include "Event.hpp"
#include "Pub_Sub.h"
#include <list>
/**
*

@ -1,23 +1,17 @@
#pragma once
#include <SFML/Graphics.hpp>
#include <iostream>
#include "Event.hpp"
#include <memory>
#include <set>
#include <SFML/Graphics.hpp>
#include "Event.hpp"
class VrEventPublisher;
/**
*
* VrEventSubscriber
*
*/
class VrEventSubscriber {
public:
virtual ~VrEventSubscriber();
@ -32,7 +26,6 @@ public:
// Looks for the publisher ptr and event type in the subscriptions map. If there, Removes them
void unsubscribe(VrEventPublisher* publisher, vr::Event::EventType type);
void unsubscribe_all(VrEventPublisher* publisher);
void unsubscribe_all();
protected:

@ -1,6 +1,6 @@
#pragma once
#include <SFML/Graphics.hpp>
#include <iostream>
#include <SFML/Graphics.hpp>
#include "map/Map.h"
class Ray {

@ -1,9 +1,9 @@
#pragma once
#include<SFML/Graphics.hpp>
#include <algorithm>
#include "util.hpp"
#include <random>
#include <functional>
#include <random>
#include<SFML/Graphics.hpp>
#include "util.hpp"
class ArrayMap {

@ -1,13 +1,13 @@
#pragma once
#include <SFML/System/Vector3.hpp>
#include <SFML/System/Clock.hpp>
#include <functional>
#include <bitset>
#include <functional>
#include <queue>
#include "util.hpp"
#include "map/Octree.h"
#include <time.h>
#include <SFML/System/Clock.hpp>
#include <SFML/System/Vector3.hpp>
#include "util.hpp"
#include "map/ArrayMap.h"
#include "map/Octree.h"
#define _USE_MATH_DEFINES
#include <math.h>

@ -1,8 +1,9 @@
#pragma once
#include <SFML/System/Vector3.hpp>
#include <tuple>
#include <vector>
#include <SFML/System/Vector3.hpp>
#include "util.hpp"
#include <tuple>
struct OctState {

@ -1,16 +1,16 @@
#pragma once
#include <SFML/System/Vector3.hpp>
#include <SFML/System/Vector2.hpp>
#include <algorithm>
#include <bitset>
#include <iostream>
#include <cmath>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <imgui/imgui.h>
#include <cmath>
#include <SFML/Graphics/Texture.hpp>
#include <algorithm>
#include <tuple>
#include <SFML/System/Vector3.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <imgui/imgui.h>
#include "Vector4.hpp"
const double PI = 3.141592653589793238463;

@ -21,7 +21,7 @@ Application::~Application() {
if (window.unique())
window.reset();
else {
Logger::log("Can't release window, shared_ptr coun : " + window.use_count(), Logger::LogLevel::WARN);
Logger::log("Can't release window, shared_ptr count : " + window.use_count(), Logger::LogLevel::WARN);
}
//light_handle->~LightHandle();
//light_controller->~LightController();

@ -1,15 +1,9 @@
#pragma once
#include <imgui/imgui-SFML.h>
#include "Input.h"
#include <iostream>
#include <memory>
#include "Logger.h"
#include "LightHandle.h"
#include "imgui/imgui-SFML.h"
Input::Input() :
keyboard_flags(sf::Keyboard::Key::KeyCount, false),
mouse_flags(sf::Mouse::Button::ButtonCount, false){
Input::Input() {
}
@ -166,7 +160,7 @@ void Input::render_gui() {
for (auto i : held_keys) {
if (i < 0)
continue;
ImGui::Text(key_strings.at(i).c_str());
ImGui::Text("%s", key_strings.at(i).c_str());
ImGui::NextColumn();
}

Loading…
Cancel
Save