Would help if I added the files

This commit is contained in:
MitchellHansen
2016-11-04 04:18:34 -07:00
parent 5f24a4cf3f
commit b2988f0e13
2 changed files with 331 additions and 0 deletions

31
include/Software_Caster.h Normal file
View File

@@ -0,0 +1,31 @@
#include "RayCaster.h"
class Software_Caster : public RayCaster
{
public:
Software_Caster();
virtual ~Software_Caster();
int init() override;
// In interop mode, this will create a GL texture that we share
// Otherwise, it will create the pixel buffer and pass that in as an image, retrieving it each draw
// Both will create the view matrix, view res buffer
void create_viewport(int width, int height, float v_fov, float h_fov) override;
void assign_lights(std::vector<Light> lights) override;
void assign_map(Old_Map *map) override;
void assign_camera(Camera *camera) override;
void validate() override;
// draw will abstract the gl sharing and software rendering
// methods of retrieving the screen buffer
void compute() override;
void draw(sf::RenderWindow* window) override;
private:
void cast_rays();
};