|
|
@ -1,4 +1,4 @@
|
|
|
|
#ifdef linux
|
|
|
|
#ifdef linux
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <CL/cl.h>
|
|
|
|
#include <CL/opencl.h>
|
|
|
|
#include <CL/opencl.h>
|
|
|
|
|
|
|
|
|
|
|
@ -129,7 +129,7 @@ int main() {
|
|
|
|
c.create_buffer("view_matrix_buffer", sizeof(float) * 4 * view_res.x * view_res.y, view_matrix);
|
|
|
|
c.create_buffer("view_matrix_buffer", sizeof(float) * 4 * view_res.x * view_res.y, view_matrix);
|
|
|
|
|
|
|
|
|
|
|
|
Camera camera(
|
|
|
|
Camera camera(
|
|
|
|
sf::Vector3f(70, 60, 50),
|
|
|
|
sf::Vector3f(0, 0, 0),
|
|
|
|
sf::Vector2f(0.0f, 1.00f)
|
|
|
|
sf::Vector2f(0.0f, 1.00f)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
@ -211,8 +211,8 @@ int main() {
|
|
|
|
//RayCaster ray_caster(map, map_dim, view_res);
|
|
|
|
//RayCaster ray_caster(map, map_dim, view_res);
|
|
|
|
|
|
|
|
|
|
|
|
sf::Vector2f *dp = camera.get_direction_pointer();
|
|
|
|
sf::Vector2f *dp = camera.get_direction_pointer();
|
|
|
|
debug_text cam_text_x(1, 30, &dp->x, "X: ");
|
|
|
|
debug_text cam_text_x(1, 30, &dp->x, "incli: ");
|
|
|
|
debug_text cam_text_y(2, 30, &dp->y, "Y: ");
|
|
|
|
debug_text cam_text_y(2, 30, &dp->y, "asmth: ");
|
|
|
|
|
|
|
|
|
|
|
|
sf::Vector3f *mp = camera.get_movement_pointer();
|
|
|
|
sf::Vector3f *mp = camera.get_movement_pointer();
|
|
|
|
debug_text cam_text_mov_x(4, 30, &mp->x, "X: ");
|
|
|
|
debug_text cam_text_mov_x(4, 30, &mp->x, "X: ");
|
|
|
|