glanalyzer.h

来自「Amarok是一款在LINUX或其他类UNIX操作系统中运行的音频播放器软件。 」· C头文件 代码 · 共 63 行

H
63
字号
/***************************************************************************                          gloscope.h  -  description                             -------------------    begin                : Jan 17 2004    copyright            : (C) 2004 by Adam Pigg    email                : adam@piggz.co.uk ***************************************************************************//*************************************************************************** *                                                                         * *   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  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef GLOSCOPE_H#define GLOSCOPE_H#include <config.h>#ifdef HAVE_QGLWIDGET#include "analyzerbase.h"/** *@author piggz */typedef struct{  float level;  uint delay;}peak_tx;class GLAnalyzer : public Analyzer::Base3D{private:  std::vector<float> m_oldy;  std::vector<peak_tx> m_peaks;  void drawCube();  void drawFrame();  void drawBar(float xPos, float height);  void drawPeak(float xPos, float ypos);  void drawFloor();  GLfloat x, y;public:  GLAnalyzer(QWidget *);  ~GLAnalyzer();  void analyze( const Scope & );  protected:  void initializeGL();  void resizeGL( int w, int h );  void paintGL();};#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?