ABuffer uses sampler files

- RenderableVolumeGL provides a filepath to sampler
- ABuffer reloads all sampler files for each recompilation
- ABuffer has mostly private members
This commit is contained in:
Jonas Strandstedt
2014-06-24 11:31:06 -04:00
parent 3fe447274f
commit fe701ddc5a
6 changed files with 69 additions and 25 deletions
+9 -3
View File
@@ -43,10 +43,15 @@ namespace openspace {
class ABuffer: public ABuffer_I {
public:
ABuffer();
virtual ~ABuffer() {};
virtual ~ABuffer();
virtual void resolve();
void addVolume(const std::string& tag,ghoul::opengl::Texture* volume);
void addTransferFunction(const std::string& tag,ghoul::opengl::Texture* transferFunction);
void addSamplerfile(const std::string& filename);
protected:
virtual std::string settings() = 0;
@@ -60,6 +65,8 @@ protected:
std::string openspaceSamplers();
unsigned int _width, _height, _totalPixels;
private:
GLuint _screenQuad;
bool _validShader;
@@ -69,10 +76,9 @@ protected:
std::vector<std::pair<std::string,ghoul::opengl::Texture*> > _volumes;
std::vector<std::pair<std::string,ghoul::opengl::Texture*> > _transferFunctions;
std::vector<ghoul::filesystem::File*> _samplerFiles;
std::vector<std::string> _samplers;
private:
}; // ABuffer