a8c4b05d2f
This commit gets creates the ObjectOriented scene and gets it working. The current test program swaps a triangle from small to large with the 1 and 2 keys on the keyboard. (1 for small and 2 for large). The small triangle is rendered by the simple scene and the large one is rendered by the object oriented one.
13 lines
497 B
C++
13 lines
497 B
C++
#include "MyShaderProgram.h"
|
|
|
|
#include "Util.h"
|
|
|
|
MyShaderProgram::MyShaderProgram()
|
|
// TEMP Hardcode in the path. (Should Use Relative Path to General Shader Dir)
|
|
: m_vertex_shader(Util::load_file("D:\\Development\\C++\\OpenGLEngine\\OpenGLEngine\\MyVertexShader.glsl"), VERTEX_SHADER),
|
|
m_fragment_shader(Util::load_file("D:\\Development\\C++\\OpenGLEngine\\OpenGLEngine\\MyFragmentShader.glsl"), FRAGMENT_SHADER)
|
|
{
|
|
attach_shader(m_vertex_shader);
|
|
attach_shader(m_fragment_shader);
|
|
link();
|
|
} |