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 <glshadertextured.h>
Public Member Functions | |
GLShaderTextured () | |
~GLShaderTextured () | |
void | initializeGL () |
void | initTexture (const QImage &image, QOpenGLTexture::WrapMode wrapMode=QOpenGLTexture::Repeat) |
void | subTexture (int xOffset, int yOffset, int width, int height, const void *pixels) |
void | drawSurface (const QMatrix4x4 &transformMatrix, GLfloat *textureCoords, GLfloat *vertices, int nbVertices) |
void | cleanup () |
Private Member Functions | |
void | draw (unsigned int mode, const QMatrix4x4 &transformMatrix, GLfloat *textureCoords, GLfloat *vertices, int nbVertices) |
Private Attributes | |
QOpenGLShaderProgram * | m_program |
QOpenGLTexture * | m_texture |
int | m_matrixLoc |
int | m_textureLoc |
Static Private Attributes | |
static const QString | m_vertexShaderSourceTextured |
static const QString | m_fragmentShaderSourceTextured |
Definition at line 35 of file glshadertextured.h.
GLShaderTextured::GLShaderTextured | ( | ) |
Definition at line 29 of file glshadertextured.cpp.
GLShaderTextured::~GLShaderTextured | ( | ) |
Definition at line 36 of file glshadertextured.cpp.
References cleanup().
void GLShaderTextured::cleanup | ( | ) |
Definition at line 117 of file glshadertextured.cpp.
References m_fragmentShaderSourceTextured, m_program, m_texture, and m_vertexShaderSourceTextured.
Referenced by GLScope::cleanup(), GLSpectrum::cleanup(), and ~GLShaderTextured().
|
private |
Definition at line 96 of file glshadertextured.cpp.
References m_matrixLoc, m_program, m_texture, and m_textureLoc.
Referenced by drawSurface().
void GLShaderTextured::drawSurface | ( | const QMatrix4x4 & | transformMatrix, |
GLfloat * | textureCoords, | ||
GLfloat * | vertices, | ||
int | nbVertices | ||
) |
Definition at line 91 of file glshadertextured.cpp.
References draw().
Referenced by GLScope::drawChannelOverlay(), GLScope::paintGL(), and GLSpectrum::paintGL().
void GLShaderTextured::initializeGL | ( | ) |
Definition at line 41 of file glshadertextured.cpp.
References m_fragmentShaderSourceTextured, m_matrixLoc, m_program, m_textureLoc, and m_vertexShaderSourceTextured.
Referenced by GLScope::initializeGL(), and GLSpectrum::initializeGL().
void GLShaderTextured::initTexture | ( | const QImage & | image, |
QOpenGLTexture::WrapMode | wrapMode = QOpenGLTexture::Repeat |
||
) |
Definition at line 66 of file glshadertextured.cpp.
References m_texture.
Referenced by GLSpectrum::applyChanges(), GLScope::drawChannelOverlay(), GLScope::setHorizontalDisplays(), GLScope::setPolarDisplays(), GLScope::setUniqueDisplays(), and GLScope::setVerticalDisplays().
void GLShaderTextured::subTexture | ( | int | xOffset, |
int | yOffset, | ||
int | width, | ||
int | height, | ||
const void * | pixels | ||
) |
Definition at line 79 of file glshadertextured.cpp.
References m_texture.
Referenced by GLSpectrum::paintGL().
|
staticprivate |
Definition at line 55 of file glshadertextured.h.
Referenced by cleanup(), and initializeGL().
|
private |
Definition at line 52 of file glshadertextured.h.
Referenced by draw(), and initializeGL().
|
private |
Definition at line 50 of file glshadertextured.h.
Referenced by cleanup(), draw(), and initializeGL().
|
private |
Definition at line 51 of file glshadertextured.h.
Referenced by cleanup(), draw(), initTexture(), and subTexture().
|
private |
Definition at line 53 of file glshadertextured.h.
Referenced by draw(), and initializeGL().
|
staticprivate |
Definition at line 54 of file glshadertextured.h.
Referenced by cleanup(), and initializeGL().