19 #ifndef INCLUDE_GUI_GLSHADERSIMPLE_H_ 20 #define INCLUDE_GUI_GLSHADERSIMPLE_H_ 23 #include <QOpenGLFunctions> 27 class QOpenGLShaderProgram;
38 void drawPoints(
const QMatrix4x4& transformMatrix,
const QVector4D& color, GLfloat *vertices,
int nbVertices);
39 void drawPolyline(
const QMatrix4x4& transformMatrix,
const QVector4D& color, GLfloat *vertices,
int nbVertices);
40 void drawSegments(
const QMatrix4x4& transformMatrix,
const QVector4D& color, GLfloat *vertices,
int nbVertices);
41 void drawContour(
const QMatrix4x4& transformMatrix,
const QVector4D& color, GLfloat *vertices,
int nbVertices);
42 void drawSurface(
const QMatrix4x4& transformMatrix,
const QVector4D& color, GLfloat *vertices,
int nbVertices);
46 void draw(
unsigned int mode,
const QMatrix4x4& transformMatrix,
const QVector4D& color, GLfloat *vertices,
int nbVertices);
static const QString m_fragmentShaderSourceColored
static const QString m_vertexShaderSourceSimple
QOpenGLShaderProgram * m_program