14 lines
543 B
C++
14 lines
543 B
C++
|
#include "MyBatchTestShaderProgram.h"
|
||
|
|
||
|
#include "Util.h"
|
||
|
|
||
|
MyBatchTestShaderProgram::MyBatchTestShaderProgram()
|
||
|
// TEMP Hardcode in the path. (Should Use Relative Path to General Shader Dir)
|
||
|
: m_vertex_shader(Util::load_file("D:\\Development\\C++\\OpenGLEngine\\OpenGLEngine\\MyBatchTestVertexShader.glsl"), VERTEX_SHADER),
|
||
|
m_fragment_shader(Util::load_file("D:\\Development\\C++\\OpenGLEngine\\OpenGLEngine\\MyBatchTestFragmentShader.glsl"), FRAGMENT_SHADER)
|
||
|
{
|
||
|
attach_shader(m_vertex_shader);
|
||
|
attach_shader(m_fragment_shader);
|
||
|
link();
|
||
|
}
|