Added a quick printout of the hardware info. Running into a problem choosing between platforms, going to abstract CL out into it's own class and hide all that logic
This commit is contained in:
146
src/Map.cpp
146
src/Map.cpp
@@ -1,73 +1,73 @@
|
||||
#pragma once
|
||||
#include "Map.h"
|
||||
#include <iostream>
|
||||
#include <SFML/System/Vector3.hpp>
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include "util.hpp"
|
||||
|
||||
sf::Vector3i Map::getDimensions() {
|
||||
return dimensions;
|
||||
}
|
||||
|
||||
void Map::moveLight(sf::Vector2f in) {
|
||||
|
||||
sf::Vector3f light_spherical = CartToSphere(global_light);
|
||||
|
||||
light_spherical.y += in.y;
|
||||
light_spherical.x += in.x;
|
||||
|
||||
global_light = SphereToCart(light_spherical);
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
//void Map::GenerateFloor(){
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
#include "Map.h"
|
||||
#include <iostream>
|
||||
#include <SFML/System/Vector3.hpp>
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include "util.hpp"
|
||||
|
||||
sf::Vector3i Map::getDimensions() {
|
||||
return dimensions;
|
||||
}
|
||||
|
||||
void Map::moveLight(sf::Vector2f in) {
|
||||
|
||||
sf::Vector3f light_spherical = CartToSphere(global_light);
|
||||
|
||||
light_spherical.y += in.y;
|
||||
light_spherical.x += in.x;
|
||||
|
||||
global_light = SphereToCart(light_spherical);
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
//void Map::GenerateFloor(){
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user