charcoal/OpenGLEngine/Batch.h

24 lines
307 B
C
Raw Normal View History

#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;
};