9d37a3007f
This allows computers that do not have my personal directory setup to use visual studio macros to get to the shader dir.
13 lines
424 B
C++
13 lines
424 B
C++
#include "MyBasicShaderProgram.h"
|
|
|
|
#include "Util.h"
|
|
|
|
MyBasicShaderProgram::MyBasicShaderProgram()
|
|
// TEMP Hardcode in the path. (Should Use Relative Path to General Shader Dir)
|
|
: m_vertex_shader(Util::load_file(SHADER_PATH "MyBasicVS.glsl"), VERTEX_SHADER),
|
|
m_fragment_shader(Util::load_file(SHADER_PATH "MyBasicFS.glsl"), FRAGMENT_SHADER)
|
|
{
|
|
attach_shader(m_vertex_shader);
|
|
attach_shader(m_fragment_shader);
|
|
link();
|
|
} |