paysages3d/src/render/opengl/OpenGLWater.h

34 lines
695 B
C
Raw Normal View History

2013-12-21 23:41:19 +00:00
#ifndef OPENGLWATER_H
#define OPENGLWATER_H
#include "opengl_global.h"
#include "OpenGLPart.h"
#include "DefinitionWatcher.h"
2013-12-21 23:41:19 +00:00
namespace paysages {
namespace opengl {
class OPENGLSHARED_EXPORT OpenGLWater: public OpenGLPart, public DefinitionWatcher
2013-12-21 23:41:19 +00:00
{
public:
OpenGLWater(OpenGLRenderer* renderer);
virtual ~OpenGLWater();
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 23:41:19 +00:00
private:
void setVertex(int i, float x, float y, float z);
OpenGLShaderProgram* program;
float* vertices;
};
}
}
#endif // OPENGLWATER_H