paysages3d/src/render/opengl/OpenGLSkybox.h

34 lines
701 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
2013-12-21 22:48:54 +00:00
{
public:
OpenGLSkybox(OpenGLRenderer* renderer);
virtual ~OpenGLSkybox();
virtual void initialize() override;
virtual void update() override;
virtual void render() override;
virtual void nodeChanged(const DefinitionNode *node, const DefinitionDiff *diff) override;
2013-12-21 22:48:54 +00:00
private:
void setVertex(int i, float x, float y, float z);
OpenGLShaderProgram* program;
float* vertices;
};
}
}
#endif // OPENGLSKYBOX_H