charcoal/OpenGLEngine/MyBasicShaderProgram.cpp

13 lines
362 B
C++
Raw Normal View History

2018-09-11 05:18:17 +00:00
#include "MyBasicShaderProgram.h"
#include "Util.h"
MyBasicShaderProgram::MyBasicShaderProgram()
: ShaderProgram(),
m_vertex_shader(Util::load_file(SHADER_PATH "MyBasicVS.glsl"), VERTEX_SHADER),
m_fragment_shader(Util::load_file(SHADER_PATH "MyBasicFS.glsl"), FRAGMENT_SHADER)
2018-09-11 05:18:17 +00:00
{
attach_shader(m_vertex_shader);
attach_shader(m_fragment_shader);
link();
}