24 lines
303 B
C++
24 lines
303 B
C++
#pragma once
|
|
|
|
#include "ShaderProgram.h"
|
|
#include "Shader.h"
|
|
|
|
class MyShaderProgram : public ShaderProgram
|
|
{
|
|
public:
|
|
struct Vertex
|
|
{
|
|
float x;
|
|
float y;
|
|
float z;
|
|
};
|
|
|
|
MyShaderProgram();
|
|
|
|
protected:
|
|
GLuint gen_vao() const override;
|
|
|
|
private:
|
|
Shader m_vertex_shader;
|
|
Shader m_fragment_shader;
|
|
}; |