24 lines
353 B
C++
24 lines
353 B
C++
#ifndef SIMPLEQUAD_H
|
|
#define SIMPLEQUAD_H
|
|
|
|
#include <QOpenGLFunctions_4_5_Core>
|
|
|
|
#include "shader.h"
|
|
|
|
|
|
class SimpleQuad: protected QOpenGLFunctions_4_5_Core
|
|
{
|
|
private:
|
|
Shader* m_program;
|
|
GLuint m_vao;
|
|
GLuint m_vbo;
|
|
|
|
public:
|
|
SimpleQuad();
|
|
~SimpleQuad();
|
|
void initGl(Shader* program);
|
|
void render();
|
|
};
|
|
|
|
#endif // SIMPLEQUAD_H
|