paysages3d/src/render/opengl/OpenGLSkybox.h

33 lines
706 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:
2013-12-21 22:48:54 +00:00
void setVertex(int i, float x, float y, float z);
OpenGLShaderProgram *program;
float *vertices;
2013-12-21 22:48:54 +00:00
};
}
}
#endif // OPENGLSKYBOX_H