worked on android port
opengl1 -> es
This commit is contained in:
33
mapview/3D/misc/Shader.h
Normal file
33
mapview/3D/misc/Shader.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef SHADER_H
|
||||
#define SHADER_H
|
||||
|
||||
#include <QOpenGLShaderProgram>
|
||||
|
||||
class Shader : public QOpenGLShaderProgram {
|
||||
|
||||
public:
|
||||
|
||||
Shader();
|
||||
|
||||
void setModelMatrix(const QMatrix4x4& m);
|
||||
|
||||
void setViewMatrix(const QMatrix4x4& m);
|
||||
|
||||
void setProjectionMatrix(const QMatrix4x4& m);
|
||||
|
||||
void setColor(const float r, const float g, const float b);
|
||||
void setColor(const float r, const float g, const float b, const float a);
|
||||
|
||||
void setVertices(const float*);
|
||||
void unsetVertices();
|
||||
|
||||
void setNormals(const float*);
|
||||
void unsetNormals();
|
||||
|
||||
int getUniform(const char*);
|
||||
int getAttribute(const char*);
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // SHADER_H
|
||||
Reference in New Issue
Block a user