mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 09:20:26 -05:00
Cleaning up abuffer classes
Make ABuffer type selectable in openspace.cfg
This commit is contained in:
@@ -33,19 +33,19 @@ class ABufferFixed: public ABuffer {
|
||||
public:
|
||||
|
||||
ABufferFixed();
|
||||
virtual ~ABufferFixed();
|
||||
virtual bool initialize();
|
||||
~ABufferFixed();
|
||||
bool initialize() override;
|
||||
|
||||
virtual void clear();
|
||||
virtual void preRender();
|
||||
virtual void postRender();
|
||||
void clear() override;
|
||||
void preRender() override;
|
||||
void postRender() override;
|
||||
|
||||
std::vector<fragmentData> pixelData() override;
|
||||
|
||||
std::vector<fragmentData> pixelData();
|
||||
protected:
|
||||
virtual bool reinitializeInternal();
|
||||
virtual bool reinitializeInternal() override;
|
||||
|
||||
private:
|
||||
|
||||
GLuint *_data;
|
||||
GLuint _anchorPointerTexture;
|
||||
GLuint _anchorPointerTextureInitializer;
|
||||
@@ -53,11 +53,8 @@ private:
|
||||
GLuint _atomicCounterTexture;
|
||||
GLuint _fragmentBuffer;
|
||||
GLuint _fragmentTexture;
|
||||
|
||||
|
||||
|
||||
|
||||
}; // ABufferFixed
|
||||
|
||||
} // openspace
|
||||
|
||||
#endif // __ABUFFERFIXED_H__
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
RenderEngine();
|
||||
~RenderEngine();
|
||||
|
||||
bool initialize();
|
||||
bool initialize(const std::string& renderingMethod);
|
||||
|
||||
void setSceneGraph(Scene* sceneGraph);
|
||||
Scene* scene();
|
||||
@@ -113,6 +113,7 @@ private:
|
||||
Camera* _mainCamera;
|
||||
Scene* _sceneGraph;
|
||||
ABuffer* _abuffer;
|
||||
int _abufferImplementation;
|
||||
ScreenLog* _log;
|
||||
|
||||
bool _showInfo;
|
||||
|
||||
Reference in New Issue
Block a user