charcoal/charcoal-builtin/BasicBatch.h
2022-08-01 19:07:37 -05:00

30 lines
565 B
C++

#pragma once
#include "BasicTypes.h"
#include "PoseableBatch.h"
namespace charcoal
{
namespace builtin
{
namespace basic
{
class Batch : public PoseableBatch<Vertex, Index, 1>
{
public:
using PoseableBatch<Vertex, Index, 1>::PoseableBatch;
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);
}
};
}
}
}