Still wrestling with a good way to hide the packing

This commit is contained in:
MitchellHansen
2017-02-03 18:06:29 -08:00
parent effed8a2bf
commit a01b089d12
8 changed files with 71 additions and 156 deletions

View File

@@ -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<LightController> *lights) = 0;
virtual void assign_lights(std::vector<LightController::PackedData> *data) = 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<LightController::Light> *lights;
std::vector<LightController::PackedData> *lights;
int light_count = 0;
sf::Uint8 *viewport_image = nullptr;
sf::Vector4f *viewport_matrix = nullptr;