added main menu added debug display many debug widgets for plotting live data worked on android live sensors added offline-data sensor feeding some dummy data sensors worked on the map display added ui debug for grid-points, particles and weights added a cool dude to display the estimation added real filtering based on the Indoor components c++11 fixes for android compilation online and offline filtering support new resampling technique for testing map loading via dialog
32 lines
651 B
C++
32 lines
651 B
C++
#ifndef SHADER_H
|
|
#define SHADER_H
|
|
|
|
#include <QOpenGLShaderProgram>
|
|
|
|
/**
|
|
* just some helper methods
|
|
*/
|
|
class Shader {
|
|
|
|
private:
|
|
|
|
QOpenGLShaderProgram program;
|
|
|
|
public:
|
|
|
|
/** get the underlying program */
|
|
QOpenGLShaderProgram* getProgram() {return &program;}
|
|
|
|
/** helper method to build the shader */
|
|
void loadShaderFromFile(const QString& vertex, const QString& fragment) {
|
|
if (!program.addShaderFromSourceFile(QOpenGLShader::Vertex, vertex)) {throw "1";}
|
|
if (!program.addShaderFromSourceFile(QOpenGLShader::Fragment, fragment)) {throw "2";}
|
|
if (!program.link()) {throw "3";}
|
|
if (!program.bind()) {throw "4";}
|
|
}
|
|
|
|
|
|
};
|
|
|
|
#endif // SHADER_H
|