charcoal/OpenGLEngine/VertexFragmentShaderProgram.cpp
elipzer 991b52b233 Almost Finished Builtin
Builtin general structure created. Added a builtin::BasicScene
class for quick general testing of the engine on different systems.
The builtin::BasicScene class greatly reduces the amount of code
needed to be handled by the developer by offering a pre-made way
to handle it. It even includes pre-made shaders!
2018-09-13 00:51:47 -04:00

16 lines
475 B
C++

#include "VertexFragmentShaderProgram.h"
#include "Util.h"
namespace charcoal
{
VertexFragmentShaderProgram::VertexFragmentShaderProgram(const std::string& vertex_shader_path, const std::string& fragment_shader_path)
: ShaderProgram(),
m_vertex_shader(Util::load_file(vertex_shader_path), VERTEX_SHADER),
m_fragment_shader(Util::load_file(fragment_shader_path), FRAGMENT_SHADER)
{
attach_shader(m_vertex_shader);
attach_shader(m_fragment_shader);
link();
}
}