paysages3d/src/render/opengl/OpenGLSkybox.h

31 lines
663 B
C
Raw Normal View History

2013-12-21 22:48:54 +00:00
#ifndef OPENGLSKYBOX_H
#define OPENGLSKYBOX_H
#include "opengl_global.h"
#include "OpenGLPart.h"
#include "DefinitionWatcher.h"
2013-12-21 22:48:54 +00:00
namespace paysages {
namespace opengl {
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;
virtual void nodeChanged(const DefinitionNode *node, const DefinitionDiff *diff) override;
private:
OpenGLShaderProgram *program;
2015-12-07 22:32:55 +00:00
OpenGLVertexArray *vertices;
2013-12-21 22:48:54 +00:00
};
}
}
#endif // OPENGLSKYBOX_H