Cleaned up includes, fixed compiler warning

master
mitchellhansen 7 years ago
parent bb8f87267b
commit fb6557fba2

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

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

@ -1,11 +1,14 @@
#pragma once #pragma once
#include <SFML/Graphics.hpp> #include <iostream>
#include <list> #include <list>
#include "Event.hpp"
#include <memory> #include <memory>
#include <string>
#include <SFML/Graphics.hpp>
#include "Event.hpp"
#include "Pub_Sub.h" #include "Pub_Sub.h"
#include "Gui.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::Keyboard::Key> held_keys;
std::vector<sf::Mouse::Button> held_mouse_buttons; 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: private:

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

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

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

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

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

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

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

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

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

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

@ -21,7 +21,7 @@ Application::~Application() {
if (window.unique()) if (window.unique())
window.reset(); window.reset();
else { 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_handle->~LightHandle();
//light_controller->~LightController(); //light_controller->~LightController();

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

Loading…
Cancel
Save