Working more on the lights. Trying to get around the packing requirements for passing data to CL
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <Map.h>
|
||||
#include "Old_Map.h"
|
||||
#include "Camera.h"
|
||||
#include "Light.h"
|
||||
#include "LightController.h"
|
||||
|
||||
|
||||
class RayCaster {
|
||||
@@ -25,7 +25,7 @@ public:
|
||||
virtual void assign_map(Old_Map *map) = 0;
|
||||
virtual void assign_camera(Camera *camera) = 0;
|
||||
virtual void create_viewport(int width, int height, float v_fov, float h_fov) = 0;
|
||||
virtual void assign_lights(std::vector<Light> *lights) = 0;
|
||||
virtual void assign_lights(std::vector<LightController> *lights) = 0;
|
||||
virtual void validate() = 0;
|
||||
|
||||
// draw will abstract the gl sharing and software rendering
|
||||
@@ -40,7 +40,7 @@ protected:
|
||||
|
||||
Old_Map * map = nullptr;
|
||||
Camera *camera = nullptr;
|
||||
std::vector<Light> *lights;
|
||||
std::vector<LightController::Light> *lights;
|
||||
int light_count = 0;
|
||||
sf::Uint8 *viewport_image = nullptr;
|
||||
sf::Vector4f *viewport_matrix = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user