charcoal/OpenGLEngine/MyShaderProgram.cpp

13 lines
497 B
C++
Raw Normal View History

2018-09-05 06:49:02 +00:00
#include "MyShaderProgram.h"
#include "Util.h"
MyShaderProgram::MyShaderProgram()
// TEMP Hardcode in the path. (Should Use Relative Path to General Shader Dir)
: 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();
}