b494f68d0c
Now using GLFW3 instead of the custom window class. This library looks like it will make development much simpler and will make it so that I am less worried about my windows code breaking. Currently setup the http://antongerdelan.net/opengl/hellotriangle.html tutorial in the MySimpleScene. Will probably create another scene file to try to get the object oriented stuff working.
24 lines
361 B
C++
24 lines
361 B
C++
#pragma once
|
|
|
|
#include "ShaderProgram.h"
|
|
#include "Shader.h"
|
|
#include "Renderable.h"
|
|
|
|
class MyShaderProgram : public ShaderProgram
|
|
{
|
|
public:
|
|
struct Vertex
|
|
{
|
|
float x;
|
|
float y;
|
|
float z;
|
|
};
|
|
typedef unsigned int Index;
|
|
typedef Renderable<Vertex, Index> RenderableType;
|
|
|
|
MyShaderProgram();
|
|
|
|
private:
|
|
Shader m_vertex_shader;
|
|
Shader m_fragment_shader;
|
|
}; |