2013-12-21 22:48:54 +00:00
|
|
|
#ifndef OPENGLSKYBOX_H
|
|
|
|
#define OPENGLSKYBOX_H
|
|
|
|
|
|
|
|
#include "opengl_global.h"
|
|
|
|
|
|
|
|
#include "OpenGLPart.h"
|
2015-08-18 18:31:11 +00:00
|
|
|
#include "DefinitionWatcher.h"
|
2013-12-21 22:48:54 +00:00
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace opengl {
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
class OPENGLSHARED_EXPORT OpenGLSkybox : public OpenGLPart, public DefinitionWatcher {
|
|
|
|
public:
|
|
|
|
OpenGLSkybox(OpenGLRenderer *renderer);
|
2013-12-21 22:48:54 +00:00
|
|
|
virtual ~OpenGLSkybox();
|
|
|
|
|
|
|
|
virtual void initialize() override;
|
|
|
|
virtual void update() override;
|
|
|
|
virtual void render() override;
|
|
|
|
|
2015-08-18 18:31:11 +00:00
|
|
|
virtual void nodeChanged(const DefinitionNode *node, const DefinitionDiff *diff) override;
|
2015-12-13 18:56:00 +00:00
|
|
|
virtual void floatNodeChanged(const string &path, double new_value, double old_value) override;
|
2015-11-09 21:30:46 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
OpenGLShaderProgram *program;
|
2015-12-07 22:32:55 +00:00
|
|
|
OpenGLVertexArray *vertices;
|
2013-12-21 22:48:54 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // OPENGLSKYBOX_H
|