MythTV
master
mythtv
libs
libmythtv
visualisations
opengl
mythvisualmonoscopeopengl.h
Go to the documentation of this file.
1
#ifndef MYTHVISUALMONOSCOPEOPENGL_H
2
#define MYTHVISUALMONOSCOPEOPENGL_H
3
4
// MythTV
5
#include "
libmythui/opengl/mythrenderopengl.h
"
6
#include "
visualisations/videovisualmonoscope.h
"
7
8
// Vertex buffer + Hue,Alpha,Zoom
9
using
VertexStateGL
= std::pair<QOpenGLBuffer*, std::array<float,3>>;
10
using
VertexStatesGL
= QVector<VertexStateGL>;
11
using
Vertices
= std::vector<float>;
12
13
class
MythVisualMonoScopeOpenGL
:
public
VideoVisualMonoScope
14
{
15
public
:
16
MythVisualMonoScopeOpenGL
(
AudioPlayer
* Audio,
MythRender
* Render,
bool
Fade);
17
~MythVisualMonoScopeOpenGL
()
override
;
18
19
void
Draw
(QRect Area,
MythPainter
*
/*Painter*/
, QPaintDevice*
/*Device*/
)
override
;
20
21
private
:
22
MythRenderOpenGL
*
Initialise
(QRect Area);
23
void
TearDown
();
24
25
bool
m_bufferMaps
{
false
};
26
QOpenGLShaderProgram*
m_openglShader
{
nullptr
};
27
VertexStatesGL
m_vbos
;
28
Vertices
m_vertices
;
29
};
30
31
#endif
videovisualmonoscope.h
MythVisualMonoScopeOpenGL::m_vertices
Vertices m_vertices
Definition:
mythvisualmonoscopeopengl.h:28
AudioPlayer
Definition:
audioplayer.h:22
MythVisualMonoScopeOpenGL::m_openglShader
QOpenGLShaderProgram * m_openglShader
Definition:
mythvisualmonoscopeopengl.h:26
MythVisualMonoScopeOpenGL::MythVisualMonoScopeOpenGL
MythVisualMonoScopeOpenGL(AudioPlayer *Audio, MythRender *Render, bool Fade)
Definition:
mythvisualmonoscopeopengl.cpp:5
MythVisualMonoScopeOpenGL::~MythVisualMonoScopeOpenGL
~MythVisualMonoScopeOpenGL() override
Definition:
mythvisualmonoscopeopengl.cpp:10
mythrenderopengl.h
MythVisualMonoScopeOpenGL::Draw
void Draw(QRect Area, MythPainter *, QPaintDevice *) override
Definition:
mythvisualmonoscopeopengl.cpp:30
VertexStateGL
std::pair< QOpenGLBuffer *, std::array< float, 3 > > VertexStateGL
Definition:
mythvisualmonoscopeopengl.h:9
MythRenderOpenGL
Definition:
mythrenderopengl.h:96
VideoVisualMonoScope
Definition:
videovisualmonoscope.h:11
Vertices
std::vector< float > Vertices
Definition:
mythvisualmonoscopeopengl.h:11
MythVisualMonoScopeOpenGL::m_vbos
VertexStatesGL m_vbos
Definition:
mythvisualmonoscopeopengl.h:27
MythRender
Definition:
mythrender_base.h:23
MythVisualMonoScopeOpenGL::m_bufferMaps
bool m_bufferMaps
Definition:
mythvisualmonoscopeopengl.h:25
MythPainter
Definition:
mythpainter.h:34
MythVisualMonoScopeOpenGL
Definition:
mythvisualmonoscopeopengl.h:13
VertexStatesGL
QVector< VertexStateGL > VertexStatesGL
Definition:
mythvisualmonoscopeopengl.h:10
MythVisualMonoScopeOpenGL::Initialise
MythRenderOpenGL * Initialise(QRect Area)
Definition:
mythvisualmonoscopeopengl.cpp:125
MythVisualMonoScopeOpenGL::TearDown
void TearDown()
Definition:
mythvisualmonoscopeopengl.cpp:15
Generated on Mon Nov 25 2024 03:16:13 for MythTV by
1.8.17