mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user