6 #include <QOpenGLShaderProgram>
7 #include <QOpenGLShader>
8 #include <QOpenGLBuffer>
Base class for objects in OpenGL scene.
Definition: sceneobject.h:22
void initShaders()
load the shaders
void setColor(QColor color)
set the color
QColor m_color
color of grid
Definition: grid.h:102
void colorChanged(QColor color)
signal that the color of has changed
const QColor & getColor() const
get color
virtual void draw()
perform OpenGL drawing operations
void drawFallback()
render function
bool m_shader1OK
shader1 ok to use
Definition: grid.h:105
Widget to view Langmuir Simulation in real time.
Definition: langmuirviewer.h:47
Grid(LangmuirViewer &viewer, QObject *parent=0)
create the Grid
void gridChanged()
signal that the grid has changed
QOpenGLBuffer * m_verticesVBO
vertices buffer
Definition: grid.h:96
A class to represent simulation grid.
Definition: grid.h:17
QOpenGLShaderProgram m_shader1
OpenGL shading pipeline.
Definition: grid.h:93
void setDimensions(int xsize, int ysize, int zsize)
create the grid using dimensions
virtual void init()
initialize object
unsigned int m_numPoints
total number of points (# vertices / 3)
Definition: grid.h:99
virtual void makeConnections()
make signal/slot connections
void drawGrid()
render function