#ifndef FISH_VIEWER_H #define FISH_VIEWER_H #include "fish.h" #include #include #include #include #include class FishPainter { QOpenGLVertexArrayObject vao; QOpenGLBuffer vbo; QOpenGLShaderProgram program; public: void create(QOpenGLExtraFunctions *glf); void paint(QOpenGLExtraFunctions *glf, const QMatrix4x4 &projection, const QMatrix4x4 &view, const std::vector fishes); }; #endif