991b52b233
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!
16 lines
475 B
C++
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();
|
|
}
|
|
} |