cleaned up an unused file, added check for sharing
This commit is contained in:
26
src/main.cpp
26
src/main.cpp
@@ -25,7 +25,6 @@
|
||||
#include <OpenCL/cl_ext.h>
|
||||
|
||||
#endif
|
||||
#include "TestPlatform.cpp"
|
||||
#include "Map.h"
|
||||
#include "Curses.h"
|
||||
#include "util.hpp"
|
||||
@@ -65,21 +64,14 @@ sf::Texture window_texture;
|
||||
|
||||
int main() {
|
||||
|
||||
|
||||
CL_Wrapper c;
|
||||
|
||||
Map m(sf::Vector3i (50, 50, 50));
|
||||
m.generate_octree();
|
||||
//Map m(sf::Vector3i (50, 50, 50));
|
||||
//m.generate_octree();
|
||||
return 1;
|
||||
|
||||
//sf::RenderWindow window(sf::VideoMode(WINDOW_X, WINDOW_Y), "SFML");
|
||||
|
||||
//// Setup CL, instantiate and pass in values to the kernel
|
||||
//CL_Wrapper c;
|
||||
//query_platform_devices();
|
||||
//c.acquire_platform_and_device();
|
||||
//c.create_shared_context();
|
||||
//c.create_command_queue();
|
||||
|
||||
//if (c.compile_kernel("../kernels/ray_caster_kernel.cl", true, "min_kern") < 0) {
|
||||
// std::cin.get();
|
||||
// return -1;
|
||||
@@ -320,15 +312,15 @@ int main() {
|
||||
// // ==== DELTA TIME LOCKED ====
|
||||
// }
|
||||
|
||||
// float l[] = {
|
||||
// light[9] * sin(delta_time / 1) + light[7] * cos(delta_time / 1),
|
||||
// light[8],
|
||||
// light[9] * cos(delta_time / 1) - light[7] * sin(delta_time / 1)
|
||||
// float l[] = {
|
||||
// light[9] * sin(delta_time / 1) + light[7] * cos(delta_time / 1),
|
||||
// light[8],
|
||||
// light[9] * cos(delta_time / 1) - light[7] * sin(delta_time / 1)
|
||||
// };
|
||||
|
||||
// float l2[] = {
|
||||
// l[0] * cos(delta_time) - l[2] * sin(delta_time),
|
||||
// l[0] * sin(delta_time) + l[2] * cos(delta_time),
|
||||
// l[0] * cos(delta_time) - l[2] * sin(delta_time),
|
||||
// l[0] * sin(delta_time) + l[2] * cos(delta_time),
|
||||
// l[2]
|
||||
// };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user