36 #ifndef OPENPSTD_GRIDLAYER_H 37 #define OPENPSTD_GRIDLAYER_H 48 std::unique_ptr<QOpenGLShaderProgram> program;
52 std::unique_ptr<std::vector<float>> positions;
53 unsigned int positionsBuffer;
56 QMatrix4x4 viewMatrix;
61 virtual void InitializeGL(QObject *context, std::unique_ptr<QOpenGLFunctions,
void (*)(
void *)>
const &f);
63 virtual void PaintGL(QObject *context, std::unique_ptr<QOpenGLFunctions,
void (*)(
void *)>
const &f);
65 virtual void UpdateScene(std::shared_ptr<Model>
const &m,
66 std::unique_ptr<QOpenGLFunctions,
void (*)(
void *)>
const &f);
70 float CalcIdealSpacing();
75 #endif //OPENPSTD_GRIDLAYER_H This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
Definition: Viewer2D.h:115
Definition: Viewer2D.h:57
Definition: GridLayer.h:45