![]() |
SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <glshadersimple.h>
Public Member Functions | |
| GLShaderSimple () | |
| ~GLShaderSimple () | |
| void | initializeGL () |
| void | drawPoints (const QMatrix4x4 &transformMatrix, const QVector4D &color, GLfloat *vertices, int nbVertices) |
| void | drawPolyline (const QMatrix4x4 &transformMatrix, const QVector4D &color, GLfloat *vertices, int nbVertices) |
| void | drawSegments (const QMatrix4x4 &transformMatrix, const QVector4D &color, GLfloat *vertices, int nbVertices) |
| void | drawContour (const QMatrix4x4 &transformMatrix, const QVector4D &color, GLfloat *vertices, int nbVertices) |
| void | drawSurface (const QMatrix4x4 &transformMatrix, const QVector4D &color, GLfloat *vertices, int nbVertices) |
| void | cleanup () |
Private Member Functions | |
| void | draw (unsigned int mode, const QMatrix4x4 &transformMatrix, const QVector4D &color, GLfloat *vertices, int nbVertices) |
Private Attributes | |
| QOpenGLShaderProgram * | m_program |
| int | m_matrixLoc |
| int | m_colorLoc |
Static Private Attributes | |
| static const QString | m_vertexShaderSourceSimple |
| static const QString | m_fragmentShaderSourceColored |
Definition at line 31 of file glshadersimple.h.
| GLShaderSimple::GLShaderSimple | ( | ) |
Definition at line 28 of file glshadersimple.cpp.
| GLShaderSimple::~GLShaderSimple | ( | ) |
Definition at line 34 of file glshadersimple.cpp.
References cleanup().
Here is the call graph for this function:| void GLShaderSimple::cleanup | ( | ) |
Definition at line 104 of file glshadersimple.cpp.
References m_fragmentShaderSourceColored, m_program, and m_vertexShaderSourceSimple.
Referenced by GLScope::cleanup(), GLSpectrum::cleanup(), and ~GLShaderSimple().
Here is the caller graph for this function:
|
private |
Definition at line 88 of file glshadersimple.cpp.
References m_colorLoc, m_matrixLoc, and m_program.
Referenced by drawContour(), drawPoints(), drawPolyline(), drawSegments(), and drawSurface().
Here is the caller graph for this function:| void GLShaderSimple::drawContour | ( | const QMatrix4x4 & | transformMatrix, |
| const QVector4D & | color, | ||
| GLfloat * | vertices, | ||
| int | nbVertices | ||
| ) |
Definition at line 78 of file glshadersimple.cpp.
References draw().
Referenced by GLScope::paintGL(), and GLSpectrum::paintGL().
Here is the call graph for this function:
Here is the caller graph for this function:| void GLShaderSimple::drawPoints | ( | const QMatrix4x4 & | transformMatrix, |
| const QVector4D & | color, | ||
| GLfloat * | vertices, | ||
| int | nbVertices | ||
| ) |
Definition at line 63 of file glshadersimple.cpp.
References draw().
Referenced by GLScope::paintGL().
Here is the call graph for this function:
Here is the caller graph for this function:| void GLShaderSimple::drawPolyline | ( | const QMatrix4x4 & | transformMatrix, |
| const QVector4D & | color, | ||
| GLfloat * | vertices, | ||
| int | nbVertices | ||
| ) |
Definition at line 68 of file glshadersimple.cpp.
References draw().
Referenced by GLScope::paintGL(), and GLSpectrum::paintGL().
Here is the call graph for this function:
Here is the caller graph for this function:| void GLShaderSimple::drawSegments | ( | const QMatrix4x4 & | transformMatrix, |
| const QVector4D & | color, | ||
| GLfloat * | vertices, | ||
| int | nbVertices | ||
| ) |
Definition at line 73 of file glshadersimple.cpp.
References draw().
Referenced by GLScope::paintGL(), and GLSpectrum::paintGL().
Here is the call graph for this function:
Here is the caller graph for this function:| void GLShaderSimple::drawSurface | ( | const QMatrix4x4 & | transformMatrix, |
| const QVector4D & | color, | ||
| GLfloat * | vertices, | ||
| int | nbVertices | ||
| ) |
Definition at line 83 of file glshadersimple.cpp.
References draw().
Referenced by GLSpectrum::paintGL().
Here is the call graph for this function:
Here is the caller graph for this function:| void GLShaderSimple::initializeGL | ( | ) |
Definition at line 39 of file glshadersimple.cpp.
References m_colorLoc, m_fragmentShaderSourceColored, m_matrixLoc, m_program, and m_vertexShaderSourceSimple.
Referenced by GLScope::initializeGL(), and GLSpectrum::initializeGL().
Here is the caller graph for this function:
|
private |
Definition at line 50 of file glshadersimple.h.
Referenced by draw(), and initializeGL().
|
staticprivate |
Definition at line 52 of file glshadersimple.h.
Referenced by cleanup(), and initializeGL().
|
private |
Definition at line 49 of file glshadersimple.h.
Referenced by draw(), and initializeGL().
|
private |
Definition at line 48 of file glshadersimple.h.
Referenced by cleanup(), draw(), and initializeGL().
|
staticprivate |
Definition at line 51 of file glshadersimple.h.
Referenced by cleanup(), and initializeGL().
1.8.13