You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amarok/amarok/src/analyzers/glanalyzer3.h

81 lines
2.1 KiB

/***************************************************************************
glanalyzer3.h - description
-------------------
begin : Feb 16 2004
copyright : (C) 2004 by Enrico Ros
email : eros.kde@email.it
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#include <config.h>
#ifdef HAVE_TQGLWIDGET
#ifndef GLBOUNCER_H
#define GLBOUNCER_H
#include "analyzerbase.h"
#include <tqstring.h>
#include <tqptrlist.h>
class TQWidget;
class Ball;
class Paddle;
class GLAnalyzer3 : public Analyzer::Base3D
{
public:
GLAnalyzer3(TQWidget *);
~GLAnalyzer3();
void analyze( const Scope & );
void paused();
protected:
void initializeGL();
void resizeGL( int w, int h );
void paintGL();
private:
struct ShowProperties {
double timeStamp;
double dT;
float colorK;
float gridScrollK;
float gridEnergyK;
float camRot;
float camRoll;
float peakEnergy;
} show;
struct FrameProperties {
bool silence;
float energy;
float dEnergy;
} frame;
static const int NUMBER_OF_BALLS = 16;
TQPtrList<Ball> balls;
Paddle * leftPaddle, * rightPaddle;
float unitX, unitY;
GLuint ballTexture;
GLuint gridTexture;
void drawDot3s( float x, float y, float z, float size );
void drawHFace( float y );
void drawScrollGrid( float scroll, float color[4] );
bool loadTexture(TQString file, GLuint& textureID);
void freeTexture(GLuint& textureID);
};
#endif
#endif