charcoal/OpenGLEngine/MyBatch.h

24 lines
350 B
C
Raw Normal View History

#pragma once
#include "Batch.h"
#include "Renderable.h"
#include "MyTriangle.h"
class MyBatch : public Batch<MyTriangle>
{
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;
};