2018-09-05 06:49:02 +00:00
|
|
|
#include "MyShaderProgram.h"
|
|
|
|
|
|
|
|
#include "Util.h"
|
|
|
|
|
|
|
|
MyShaderProgram::MyShaderProgram()
|
2018-09-05 23:10:38 +00:00
|
|
|
// TEMP Hardcode in the path. (Should Use Relative Path to General Shader Dir)
|
2018-09-05 15:47:09 +00:00
|
|
|
: m_vertex_shader(Util::load_file("D:\\Development\\C++\\OpenGLEngine\\OpenGLEngine\\MyVertexShader.glsl"), VERTEX_SHADER),
|
|
|
|
m_fragment_shader(Util::load_file("D:\\Development\\C++\\OpenGLEngine\\OpenGLEngine\\MyFragmentShader.glsl"), FRAGMENT_SHADER)
|
2018-09-05 06:49:02 +00:00
|
|
|
{
|
|
|
|
attach_shader(m_vertex_shader);
|
|
|
|
attach_shader(m_fragment_shader);
|
|
|
|
link();
|
|
|
|
}
|