charcoal/CharcoalBuiltin/BasicBatch.h
elipzer 94de35536a Got it working but its not working...
The UVs are off for some reason but I'm not 100% sure why. Possibly
caused by some sort of offset not being accounted for.
2018-10-14 21:19:38 -04:00

30 lines
536 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);
}
};
}
}
}