90bac19849
Finally got a 3D cube to be rendered. While doing it, fixed a bug in MeshFactory that caused it to allocate the incorrect amount of memory for each mesh.
13 lines
362 B
C++
13 lines
362 B
C++
#include "MyBasicShaderProgram.h"
|
|
|
|
#include "Util.h"
|
|
|
|
MyBasicShaderProgram::MyBasicShaderProgram()
|
|
: ShaderProgram(),
|
|
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();
|
|
} |