2018-09-05 06:49:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ShaderProgram.h"
|
|
|
|
#include "Shader.h"
|
2018-09-05 20:26:50 +00:00
|
|
|
#include "Renderable.h"
|
2018-09-05 06:49:02 +00:00
|
|
|
|
|
|
|
class MyShaderProgram : public ShaderProgram
|
|
|
|
{
|
|
|
|
public:
|
2018-09-05 23:10:38 +00:00
|
|
|
struct VertexType
|
2018-09-05 06:49:02 +00:00
|
|
|
{
|
2018-09-05 23:10:38 +00:00
|
|
|
VertexType(float x, float y, float z)
|
|
|
|
: x(x), y(y), z(z)
|
|
|
|
{
|
|
|
|
}
|
2018-09-05 06:49:02 +00:00
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
float z;
|
|
|
|
};
|
2018-09-05 23:10:38 +00:00
|
|
|
typedef unsigned int IndexType;
|
|
|
|
typedef Renderable<VertexType, IndexType> RenderableType;
|
2018-09-05 15:47:09 +00:00
|
|
|
|
2018-09-05 06:49:02 +00:00
|
|
|
MyShaderProgram();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Shader m_vertex_shader;
|
|
|
|
Shader m_fragment_shader;
|
|
|
|
};
|