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
307 B
C++
24 lines
307 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include <vector>
|
|
|
|
#include "ShaderProgram.h"
|
|
|
|
template <typename RenderableType>
|
|
class Batch
|
|
{
|
|
public:
|
|
void init()
|
|
{
|
|
populate_vbos();
|
|
setup_vao();
|
|
}
|
|
|
|
virtual void render() const = 0;
|
|
|
|
protected:
|
|
virtual void populate_vbos() = 0;
|
|
virtual void setup_vao() = 0;
|
|
}; |