Add screenspacerenderables at runtime

This commit is contained in:
Sebastian Piwell
2016-03-10 17:41:10 -05:00
parent 540f7821b8
commit f01299fe69
6 changed files with 40 additions and 14 deletions
+4 -2
View File
@@ -31,7 +31,7 @@ namespace openspace {
class ScreenSpaceImage : public ScreenSpaceRenderable {
public:
ScreenSpaceImage();
ScreenSpaceImage(std::string texturePath);
~ScreenSpaceImage();
void render() override;
@@ -41,8 +41,10 @@ public:
bool isReady() const override;
private:
void loadTexture();
static int id();
std::unique_ptr<ghoul::opengl::Texture> _texture; // The image to render
};
// int ScreenSpaceImage::id = 0;
} //namespace openspace
#endif //__SCREENSPACEIMAGE_H__