40617c8953
to specify the batch pipeline specified at StackOverflow See https://stackoverflow.com/questions/8923174/opengl-vao-best-practices#8923298
20 lines
258 B
C++
20 lines
258 B
C++
#pragma once
|
|
|
|
#include "Renderable.h"
|
|
|
|
#include "MyShaderProgram.h"
|
|
|
|
class MyTriangle : public Renderable<MyShaderProgram::Vertex, MyShaderProgram::Index>
|
|
{
|
|
public:
|
|
MyTriangle();
|
|
~MyTriangle();
|
|
|
|
protected:
|
|
GLuint gen_vbo() const override;
|
|
|
|
private:
|
|
|
|
};
|
|
|