2018-09-05 15:47:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Batch.h"
|
|
|
|
|
2018-09-05 20:26:50 +00:00
|
|
|
#include "Renderable.h"
|
|
|
|
|
|
|
|
#include "MyTriangle.h"
|
|
|
|
|
|
|
|
class MyBatch : public Batch<MyTriangle>
|
2018-09-05 15:47:09 +00:00
|
|
|
{
|
2018-09-05 20:26:50 +00:00
|
|
|
public:
|
|
|
|
MyBatch(const MyTriangle& triangle);
|
|
|
|
|
|
|
|
void render() const override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void populate_vbos() override;
|
|
|
|
void setup_vao() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
const MyTriangle* m_triangle;
|
|
|
|
GLuint m_vbo;
|
|
|
|
GLuint m_vao;
|
2018-09-05 15:47:09 +00:00
|
|
|
};
|