charcoal/CharcoalBuiltin/BasicBatch.h

30 lines
536 B
C
Raw Normal View History

#pragma once
2018-09-19 07:52:42 +00:00
#include "BasicTypes.h"
#include "PoseableBatch.h"
namespace charcoal
{
namespace builtin
{
2018-09-19 07:52:42 +00:00
namespace basic
{
class Batch : public PoseableBatch<Vertex, Index, 1>
2018-09-19 07:52:42 +00:00
{
public:
using PoseableBatch<Vertex, Index, 1>::PoseableBatch;
2018-09-19 07:52:42 +00:00
protected:
void setup_vao_vertex() override
{
glBindBuffer(GL_ARRAY_BUFFER, m_vertex_vbo);
glEnableVertexAttribArray(0);
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex), NULL);
glVertexAttribDivisor(0, 0);
}
2018-09-19 07:52:42 +00:00
};
}
}
}