charcoal/OpenGLEngine/MyShaderProgram.h

24 lines
361 B
C
Raw Normal View History

2018-09-05 06:49:02 +00:00
#pragma once
#include "ShaderProgram.h"
#include "Shader.h"
#include "Renderable.h"
2018-09-05 06:49:02 +00:00
class MyShaderProgram : public ShaderProgram
{
public:
struct Vertex
{
float x;
float y;
float z;
};
typedef unsigned int Index;
typedef Renderable<Vertex, Index> RenderableType;
2018-09-05 06:49:02 +00:00
MyShaderProgram();
private:
Shader m_vertex_shader;
Shader m_fragment_shader;
};