-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using prefix OGL instead of namespace qopengl
- Loading branch information
Showing
39 changed files
with
287 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/waveform/renderers/qopengl/oglwaveformrenderbackground.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma once | ||
|
||
#include <QColor> | ||
#include <QImage> | ||
|
||
#include "util/class.h" | ||
#include "waveform/renderers/qopengl/oglwaveformrenderer.h" | ||
|
||
class QDomNode; | ||
class SkinContext; | ||
|
||
class OGLWaveformRenderBackground : public OGLWaveformRenderer { | ||
public: | ||
explicit OGLWaveformRenderBackground(WaveformWidgetRenderer* waveformWidgetRenderer); | ||
~OGLWaveformRenderBackground() override; | ||
|
||
void setup(const QDomNode& node, const SkinContext& context) override; | ||
void renderGL() override; | ||
|
||
private: | ||
void generateImage(); | ||
|
||
QString m_backgroundPixmapPath; | ||
QColor m_backgroundColor; | ||
QImage m_backgroundImage; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(OGLWaveformRenderBackground); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "waveform/renderers/qopengl/oglwaveformrenderer.h" | ||
|
||
#include "waveform/widgets/qopengl/oglwaveformwidget.h" | ||
|
||
OGLWaveformRenderer::OGLWaveformRenderer(WaveformWidgetRenderer* widget) | ||
: WaveformRendererAbstract(widget) { | ||
} | ||
|
||
OGLWaveformRenderer::~OGLWaveformRenderer() = default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
|
||
#include <QOpenGLFunctions> | ||
|
||
#include "waveform/renderers/qopengl/ioglwaveformrenderer.h" | ||
#include "waveform/renderers/waveformrendererabstract.h" | ||
|
||
class WaveformWidgetRenderer; | ||
|
||
class OGLWaveformRenderer : public WaveformRendererAbstract, public IOGLWaveformRenderer { | ||
public: | ||
explicit OGLWaveformRenderer(WaveformWidgetRenderer* widget); | ||
~OGLWaveformRenderer(); | ||
|
||
void draw(QPainter* painter, QPaintEvent* event) override { | ||
} | ||
|
||
IOGLWaveformRenderer* qopenglWaveformRenderer() override { | ||
return this; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.