mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-06 11:28:30 -05:00
OpenGL modernization: more GL_DEPRECATED blocks
This commit is contained in:
parent
f78206defc
commit
2720969a84
@ -15,8 +15,8 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef INCLUDE_GUI_GLSHADERSIMPLEPOLYLINE_H_
|
||||
#define INCLUDE_GUI_GLSHADERSIMPLEPOLYLINE_H_
|
||||
#ifndef INCLUDE_GUI_GLSHADERSIMPLE_H_
|
||||
#define INCLUDE_GUI_GLSHADERSIMPLE_H_
|
||||
|
||||
#include <QString>
|
||||
|
||||
@ -47,4 +47,4 @@ private:
|
||||
static const QString m_fragmentShaderSourceColored;
|
||||
};
|
||||
|
||||
#endif /* INCLUDE_GUI_GLSHADERSIMPLEPOLYLINE_H_ */
|
||||
#endif /* INCLUDE_GUI_GLSHADERSIMPLE_H_ */
|
||||
|
@ -3,6 +3,7 @@
|
||||
// written by Edouard Griffiths //
|
||||
// //
|
||||
// See: http://glslstudio.com/primer/#gl2frag //
|
||||
// https://gitlab.com/pteam/korvins-qtbase/blob/5.4/examples/opengl/cube/mainwidget.cpp //
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or modify //
|
||||
// it under the terms of the GNU General Public License as published by //
|
||||
|
@ -73,8 +73,10 @@ public:
|
||||
private:
|
||||
struct ChannelMarkerState {
|
||||
ChannelMarker* m_channelMarker;
|
||||
#ifdef GL_DEPRECATED
|
||||
QRectF m_glRect;
|
||||
QRectF m_glRectDsb;
|
||||
#endif
|
||||
QMatrix4x4 m_glMatrixWaterfall;
|
||||
QMatrix4x4 m_glMatrixDsbWaterfall;
|
||||
QMatrix4x4 m_glMatrixFreqScale;
|
||||
@ -84,9 +86,11 @@ private:
|
||||
QRect m_rect;
|
||||
|
||||
ChannelMarkerState(ChannelMarker* channelMarker) :
|
||||
m_channelMarker(channelMarker),
|
||||
m_channelMarker(channelMarker)
|
||||
#ifdef GL_DEPRECATED
|
||||
m_glRect(),
|
||||
m_glRectDsb()
|
||||
#endif
|
||||
{ }
|
||||
};
|
||||
QList<ChannelMarkerState*> m_channelMarkerStates;
|
||||
|
@ -1774,20 +1774,14 @@ void GLSpectrum::applyChanges()
|
||||
}
|
||||
|
||||
|
||||
// draw the effective BW rectangle
|
||||
dv->m_glRect.setRect(
|
||||
m_frequencyScale.getPosFromValue(xc + nw) / (float)(width() - leftMargin - rightMargin),
|
||||
0,
|
||||
(pw-nw) / (float)m_sampleRate,
|
||||
1);
|
||||
|
||||
// draw the DSB rectangle
|
||||
#ifdef GL_DEPRECATED
|
||||
dv->m_glRectDsb.setRect(
|
||||
m_frequencyScale.getPosFromValue(xc - (dsbw/2)) / (float)(width() - leftMargin - rightMargin),
|
||||
0,
|
||||
dsbw / (float)m_sampleRate,
|
||||
1);
|
||||
|
||||
#endif
|
||||
QMatrix4x4 glMatrixDsb;
|
||||
glMatrixDsb.setToIdentity();
|
||||
glMatrixDsb.translate(
|
||||
@ -1829,6 +1823,14 @@ void GLSpectrum::applyChanges()
|
||||
(float) frequencyScaleHeight / (float) height()
|
||||
);
|
||||
|
||||
// draw the effective BW rectangle
|
||||
#ifdef GL_DEPRECATED
|
||||
dv->m_glRect.setRect(
|
||||
m_frequencyScale.getPosFromValue(xc + nw) / (float)(width() - leftMargin - rightMargin),
|
||||
0,
|
||||
(pw-nw) / (float)m_sampleRate,
|
||||
1);
|
||||
#endif
|
||||
QMatrix4x4 glMatrix;
|
||||
glMatrix.setToIdentity();
|
||||
glMatrix.translate(
|
||||
|
Loading…
Reference in New Issue
Block a user